:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --line: #d7d7d7;
  --link: #0645ad;
  --link-hover: #0b0080;
  --surface: #f7f7f7;
  --surface-strong: #e8e8e8;
  --accent: #444444;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Linux Biolinum", "Linux Biolinum O", "Libertinus Sans", Arial, Helvetica, sans-serif;
  line-height: 1.46;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--link-hover);
}

.site-header {
  font-family: "Linux Biolinum", "Linux Biolinum O", "Libertinus Sans", Arial, Helvetica, sans-serif;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.site-title {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  justify-content: flex-end;
  font-size: 0.95rem;
}

nav a {
  color: var(--link);
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.9rem;
  letter-spacing: 0;
}

h2 {
  margin-top: 2rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 1.28rem;
}

h3 {
  font-size: 1rem;
}

p,
ul,
ol,
pre,
blockquote,
table,
.entry,
.callout {
  margin-top: 1rem;
  margin-bottom: 0;
}

.anchor {
  color: var(--muted);
  text-decoration: none;
}

h2:hover .anchor {
  color: var(--link);
}

.entry {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
}

.entry h3 + p {
  margin-top: 0.18rem;
}

.entry h3 {
  font-weight: 600;
}

.entry-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.entry-row time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.muted,
.entry-links {
  color: var(--muted);
}

.callout {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

code {
  font-family: inherit;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

th,
td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 0;
}

figure {
  margin: 1.8rem 0 0;
}

figure img {
  margin-top: 0;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.callout-title {
  margin-top: 0;
  color: var(--text);
  font-weight: 600;
}

.compression-widget,
.card,
.alert {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border-radius: 2px !important;
}

.compression-widget {
  padding: 1rem !important;
}

.compression-layout,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.compression-column,
.col-md-7,
.col-md-5,
.col-12 {
  flex: 1 1 260px;
  min-width: 0;
}

.card-body {
  padding: 1rem;
}

.compression-bar-background {
  background: var(--surface-strong) !important;
}

.dataset-bar {
  background: #8f8f8f !important;
}

.model-bar {
  background: #555555 !important;
}

.compression-bias-caption,
.text-muted,
.small {
  color: var(--muted) !important;
}

.btn {
  display: inline-block;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: transparent;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}

.btn:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

.form-range {
  width: 100%;
}

canvas {
  display: block;
  max-width: 100%;
  background: #ffffff;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  nav {
    justify-content: flex-start;
  }

  main {
    padding-top: 2rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  .entry-row {
    display: block;
  }
}
