:root {
  color-scheme: light dark;
  --bg: #f4f7f9;
  --surface: #fff;
  --tint: #eaf2f5;
  --ink: #172c3a;
  --muted: #496172;
  --rule: #cddbe2;
  --link: #006477;
  --link-hover: #004955;
  --focus: #007f9b;
  --hero: #102835;
  --hero-edge: #315460;
  --hero-ink: #f2f9fb;
  --hero-muted: #b9d0d9;
  --hero-accent: #8ee0e0;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1c26;
    --surface: #142633;
    --tint: #1b3342;
    --ink: #ecf4f8;
    --muted: #b0c5d0;
    --rule: #334e5c;
    --link: #8ee0e0;
    --link-hover: #b9f2f0;
    --focus: #8ee0e0;
    --hero: #0c202d;
    --hero-edge: #315460;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  overflow-wrap: anywhere;
}

a { color: var(--link); text-underline-offset: .19em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }
code { font-size: .92em; }
p, ul, ol, dl, figure { margin: 0; }
p + p, p + ul, p + ol, p + pre, ul + p, figure + p { margin-top: 1rem; }
ul, ol { padding-inline-start: 1.35em; }
li + li { margin-top: .45em; }

.shell { width: calc(100% - 32px); max-width: 74rem; margin-inline: auto; }
.measure { max-width: 73ch; }

.skip {
  position: fixed;
  top: .75rem;
  left: 1rem;
  z-index: 2;
  padding: .5rem .8rem;
  transform: translateY(-200%);
  background: var(--surface);
}
.skip:focus { transform: translateY(0); }

.site-header, .site-footer { background: var(--surface); }
.site-header { border-bottom: 1px solid var(--rule); }
.site-footer { border-top: 1px solid var(--rule); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  flex-wrap: wrap;
}
.header-inner { min-height: 4.5rem; padding-block: .65rem; }
.footer-inner { padding-block: 1.35rem; color: var(--muted); font-size: .9rem; }
.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -.025em;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.site-nav, .footer-nav, .actions, .jump-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  padding: 0;
  list-style: none;
}
.site-nav li, .footer-nav li, .actions li, .jump-links li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .65rem;
  border-radius: .35rem;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--link);
  background: var(--tint);
}
.site-nav a[aria-current="page"] { text-decoration: underline; }
.footer-nav { column-gap: 1.1rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.hero {
  background-color: var(--hero);
  background-image:
    linear-gradient(90deg, #8ee0e00a 1px, transparent 1px),
    linear-gradient(#8ee0e00a 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--hero-ink);
  border-bottom: 1px solid var(--hero-edge);
  padding-block: clamp(2.6rem, 7vw, 5.25rem);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.hero p { color: var(--hero-muted); }
.hero .tagline { font-size: clamp(1.04rem, 2vw, 1.24rem); max-width: 48ch; }
.hero a { color: var(--hero-accent); }
.hero :focus-visible { outline-color: var(--hero-accent); }

.eyebrow {
  color: var(--link);
  font: 600 .875rem/1.45 var(--mono);
  letter-spacing: .03em;
}
.hero .eyebrow { color: var(--hero-accent); }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 7vw, 4.1rem); }
.hero h1 { font-size: clamp(3.1rem, 9vw, 6rem); }
h2 { font-size: clamp(1.6rem, 4.1vw, 2.25rem); }
h3 { font-size: 1.18rem; letter-spacing: -.018em; }
h1 + p, h2 + p, h3 + p { margin-top: .65rem; }
.eyebrow + h1, .eyebrow + h2 { margin-top: .6rem; }

.actions { gap: .65rem; margin-top: 1.35rem; }
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .45rem .85rem;
  border: 1px solid var(--link);
  border-radius: .35rem;
  background: var(--link);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { color: var(--surface); background: var(--link-hover); }
.button.secondary { background: transparent; color: var(--link); }
.button.secondary:hover { background: var(--tint); }
.hero a.button { color: #102835; background: var(--hero-accent); border-color: var(--hero-accent); }
.hero a.button:hover { background: #cff6f3; border-color: #cff6f3; }
.hero a.button.secondary { color: var(--hero-ink); background: transparent; border-color: #6e9aa4; }
.hero a.button.secondary:hover { background: #203f4d; }

.bench-panel {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: #132f3d;
  border: 1px solid var(--hero-edge);
  border-top: 3px solid var(--hero-accent);
  border-radius: .45rem;
}
.bench-panel h2 { font-size: 1.34rem; }
.bench-panel .bench-note { font-size: .9rem; }
.bench-metrics { margin-block: .9rem; }
.bench-metrics div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding-block: .55rem;
  border-block-start: 1px solid var(--hero-edge);
}
.bench-metrics dt { font-size: .9rem; color: var(--hero-muted); }
.bench-metrics dd { margin: 0; font: 650 clamp(1.2rem, 3vw, 1.6rem)/1.2 var(--mono); color: var(--hero-ink); }

.page-head { padding-block: clamp(2.1rem, 5vw, 3.7rem) clamp(1.6rem, 4vw, 3rem); }
.page-head > p { color: var(--muted); font-size: 1.09rem; }
.content { padding-bottom: clamp(2.35rem, 6vw, 4.8rem); }
.home-content { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section + .section { margin-top: clamp(2.25rem, 5vw, 4rem); }
.section h2 { margin-bottom: .7rem; }
.section h3 + ul, .section p + .actions { margin-top: .7rem; }
.panel, .method-card, .resource, .paper-figure, .disclosure {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .4rem;
}
.panel, .method-card, .resource { padding: clamp(.95rem, 2.5vw, 1.5rem); }
.panel + .panel { margin-top: 1.2rem; }
.grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .split > * { min-width: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.resource p, .method-card p, .small { color: var(--muted); }
.resource h3 a { text-decoration-thickness: 1px; }
.resource p { margin-top: .4rem; }
.section-title { padding-bottom: .7rem; border-bottom: 1px solid var(--rule); }
.section-title + .grid, .section-title + .split, .section-title + .panel { margin-top: 1rem; }

.jump-links { margin-top: 1.1rem; }
.jump-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .25rem .68rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .3rem;
  font-size: .89rem;
  font-weight: 650;
}
.section[id] { scroll-margin-top: 1rem; }

.table-box {
  margin-top: .9rem;
  border: 1px solid var(--rule);
  border-radius: .4rem;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
caption { padding: .8rem .85rem; text-align: left; font-weight: 700; }
thead { background: var(--tint); }
th, td { padding: .63rem .75rem; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { font-weight: 700; }
td span { display: inline-block; }
td .cell-label { display: none; }
.num { text-align: right; }
.matrix th:first-child { width: 7%; }
.matrix td .ratio { display: block; color: var(--link); font-weight: 650; }
.history .model { width: 27%; }
.case-table .configuration { width: 38%; }
.identity-table .comparison { width: 55%; }
.fit-note { margin-top: .75rem; font-size: .9rem; color: var(--muted); }

.disclosure { margin-top: .85rem; }
.disclosure summary { padding: .85rem 1rem; cursor: pointer; font-weight: 700; color: var(--link); }
.disclosure[open] summary { border-bottom: 1px solid var(--rule); }
.disclosure-body { padding: 1rem; }
.disclosure-body .table-box:first-child { margin-top: 0; }
.paper-figure { margin-top: .95rem; overflow: clip; }
.paper-figure img { width: 100%; }
.paper-figure figcaption { padding: .75rem .9rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.figure-content { max-width: 52rem; margin-inline: auto; }
.figure-content h3 { margin-top: 1.25rem; }

pre {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: .4rem;
  background: var(--tint);
  font-size: .9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
pre code { font-size: inherit; }
.step-list { padding-left: 1.35em; }
.step-list li + li { margin-top: .7rem; }
.link-list { columns: 2; column-gap: 1.7rem; }
.link-list li { break-inside: avoid; }

@media (max-width: 50rem) {
  .hero-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table, tbody, tr, th, td { display: block; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  tbody tr { padding: .3rem .8rem .55rem; border-top: 1px solid var(--rule); }
  tbody tr:nth-child(odd) { background: var(--tint); }
  tbody tr:last-child { border-radius: 0 0 .35rem .35rem; }
  tbody td, tbody th { border-top: 0; padding: .33rem 0; }
  tbody th, .matrix tbody th:first-child { width: auto; font-size: 1rem; }
  tbody td, tbody td.num {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: .45rem;
    text-align: right;
  }
  td .cell-label { display: block; color: var(--muted); text-align: left; }
  caption { display: block; }
  .matrix td .ratio { display: inline; }
}

@media (max-width: 36rem) {
  .header-inner { gap: .2rem; padding-block: .45rem; }
  .site-nav { gap: .15rem .25rem; }
  .site-nav a { padding-inline: .5rem; }
  .grid, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .link-list { columns: 1; }
}

@media (max-width: 28rem) {
  .header-inner nav { width: 100%; }
  .site-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav a { justify-content: center; width: 100%; padding-inline: .3rem; }
}

/* brand: the mark and the word in Sora Bold; the header shrinks after scrolling (assets/header.js) */
@font-face { font-family: "Sora"; src: url("assets/fonts/Sora.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
.site-header { position: sticky; top: 0; z-index: 10; transition: box-shadow .25s ease; }
.header-inner { transition: min-height .25s ease, padding .25s ease; }
.brand { gap: .7rem; }
.brand-mark { width: 2.75rem; height: 2.75rem; display: block; transition: width .25s ease, height .25s ease; }
.brand-word { font-family: "Sora", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
  display: inline-block; overflow: hidden; white-space: nowrap; max-width: 8em;
  transition: max-width .3s ease, opacity .2s ease, font-size .25s ease; }
.site-header.compact { box-shadow: 0 1px 10px rgba(0,0,0,.08); }
.site-header.compact .header-inner { min-height: 3.25rem; padding-block: .3rem; }
.site-header.compact .brand-mark { width: 2rem; height: 2rem; }
.site-header.compact .brand-word { max-width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-inner, .brand-mark, .brand-word { transition: none; }
}
.hero h1 { font-family: "Sora", system-ui, sans-serif; font-weight: 700; letter-spacing: .005em; }
