@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("site_assets/source-serif-4-latin.woff2") format("woff2");
}

:root {
  --ink: #222725;
  --mute: #5e6562;
  --rule: #dce4df;
  --band: #f4f8f5;
  --mint: #98e6c5;
  --mint-ink: #216954;
  --mint-wash: #f8fcfa;
  --pink: #f3c5e5;
  --pink-ink: #ad358b;
  --pink-wash: #fdfafb;
  --lime: #dcea74;
  --lavender: #c5b8d9;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--ink); }

html {
  font-family: var(--serif);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { margin: 0; color: var(--ink); background: #fff; line-height: 1.5; }
.results-page { isolation: isolate; }
.results-page::before, .results-page::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.results-page::before {
  background:
    radial-gradient(ellipse 55% 44% at 5% 18%, rgba(243, 190, 222, 0.16), rgba(244, 205, 232, 0.06) 48%, transparent 82%),
    radial-gradient(ellipse 40% 48% at 24% 18%, rgba(250, 216, 230, 0.1), transparent 78%),
    radial-gradient(ellipse 58% 64% at 100% 44%, rgba(144, 223, 193, 0.15), transparent 80%),
    radial-gradient(ellipse 45% 36% at 88% 64%, rgba(191, 238, 219, 0.09), transparent 80%),
    radial-gradient(ellipse 55% 48% at -5% 84%, rgba(192, 184, 220, 0.07), transparent 80%),
    radial-gradient(ellipse 46% 40% at 14% 103%, rgba(220, 234, 160, 0.09), transparent 82%);
}
.results-page::after {
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
}

.wrap { width: min(1100px, calc(100% - 3rem)); margin: 0 auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 20; padding: 0.6rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }

nav.top { position: sticky; top: 0; z-index: 10; background: #fff; }
nav.top .wrap {
  width: calc(100% - 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1rem 0;
}
nav.top .brand { font-size: 1.35rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
nav.top .links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-family: var(--sans); font-size: 0.78rem; }
nav.top .links a { padding: 0.3rem 0; color: var(--ink); text-decoration: none; }
nav.top .links a:hover { color: var(--mint-ink); text-decoration: underline; }

header.hero {
  padding: 3.5rem 0 5rem;
  text-align: center;
}
.study-map {
  display: grid;
  grid-template-columns: repeat(81, minmax(0, 1fr));
  justify-items: center;
  row-gap: 10px;
  width: 100%;
  margin: 0 auto 2rem;
}
.study-map span { width: 5px; height: 5px; border: 1px solid var(--mint-ink); border-radius: 50%; }
.study-map .solved { background: var(--mint-ink); }
.study-map .unsolved { background: #fff; border-color: var(--pink-ink); }
header.hero .eyebrow { margin: 0 0 1rem; font-family: var(--sans); font-size: 0.75rem; color: var(--mute); }
header.hero h1 {
  margin: 0 auto 1.4rem;
  max-width: 44rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
header.hero h1 span { display: block; }
header.hero .meta { margin: 1.8rem 0 0; font-size: 0.75rem; }
.action-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem; margin-top: 1.8rem; font-family: var(--sans); font-size: 0.84rem; }
.action-links a { padding: 0.35rem 0; text-decoration: none; border-bottom: 2px solid var(--mint); }
.action-links a:nth-child(2) { border-color: var(--pink); }
.action-links a:nth-child(3) { border-color: var(--lime); }
.action-links a:hover { color: var(--mint-ink); border-color: currentColor; }
.action-links .link-arrow { width: 0.85em; height: 0.85em; margin-left: 0.3rem; vertical-align: -0.02em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.meta, .caption { font-family: var(--sans); color: var(--mute); font-size: 0.82rem; line-height: 1.55; }
.caption { margin: 1rem 0 0; }

main.wrap { padding-bottom: 2rem; }
.result-section { margin-bottom: 5rem; scroll-margin-top: 6rem; }
.section-heading { margin: 0 auto 2.5rem; text-align: center; }
.section-heading h2, .explore h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 2.8vw, 2rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
.section-heading p { max-width: 34rem; margin: 0 auto; color: var(--mute); font-family: var(--sans); font-size: 0.9rem; text-wrap: balance; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 3rem 0; }
.curve-layout { max-width: 46rem; margin: 0 auto; display: grid; gap: 1.5rem; }
.breakdown-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.two.even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.two > *, .criteria-grid > * { min-width: 0; }
.panel { min-width: 0; padding: 1.5rem; background: var(--mint-wash); border-radius: 0.35rem; }
.panel:nth-child(2) { background: var(--pink-wash); }
.landing h3 { margin: 0 0 1rem; font-size: 1.2rem; font-weight: 400; line-height: 1.3; }
.panel th, .panel td { padding-left: 0.5rem; padding-right: 0.5rem; }
.panel table { font-size: 0.8rem; }
.source-table { min-width: 42rem; }
.criteria-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.criteria-grid article { padding-top: 1rem; border-top: 3px solid var(--mint); }
.criteria-grid article:nth-child(2) { border-color: var(--pink); }
.criteria-grid article:nth-child(3) { border-color: var(--lime); }
.criteria-grid article:nth-child(4) { border-color: var(--lavender); }
.criteria-grid h3 { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; }
.criteria-grid p { margin: 0; font-family: var(--sans); color: var(--mute); font-size: 0.85rem; line-height: 1.6; }
.protocol-grid { margin-top: 3rem; }
.protocol-grid p { margin: 0 0 1rem; }
.explore { padding: 1rem 0 5rem; text-align: center; }

.card {
  border-top: 1px solid var(--rule);
  padding: 1.65rem 0 0;
  min-width: 0;
}

.card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card p { margin: 0 0 0.8rem; }
.card ol, .card ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.card li { margin-bottom: 0.3rem; }

.figure-card { padding: 0 1rem; border-top: 0; text-align: center; }
.figure { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: lining-nums tabular-nums; }
.figure span { font-size: 1rem; margin-left: 0.1rem; }
.figure-card .caption { margin: 0.7rem 0 0; font-size: 0.75rem; }
.figure-card .caption span { overflow-wrap: anywhere; }
.figure-card:first-child .figure { color: var(--mint-ink); }
.figure-card:nth-child(2) .figure { color: var(--pink-ink); }

/* tables */

.scroll { min-width: 0; max-width: 100%; overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
th, td { padding: 0.75rem 0.6rem; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
thead th { border-bottom: 1px solid #999; font-weight: 400; font-size: 0.75rem; color: var(--mute); }
tbody tr:last-child td { border-bottom: 1px solid #999; }
table.board tbody tr:hover { background: var(--band); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.readout .board, .curve-layout .board { background: rgba(255, 255, 255, 0.9); }
.readout .board th, .readout .board td { padding-left: 0.6rem; padding-right: 0.6rem; }
.readout .board thead th, .curve-layout .board thead th { background: rgba(152, 230, 197, 0.035); color: var(--mint-ink); border-bottom-color: var(--rule); }
.readout .board .primary { background: rgba(152, 230, 197, 0.04); color: var(--mint-ink); }
.num { text-align: right; }
.rank { width: 1.5rem; color: var(--mute); }
.model { font-weight: 500; }
.model-lab { display: none; }
.lab { color: var(--mute); }
.strong { font-weight: 700; }
.mute { color: var(--mute); }
th .n { display: block; font-size: 0.68rem; color: var(--mute); }


.band { width: 46%; }
.stack { display: flex; width: 100%; height: 7px; background: var(--pink); }
.seg { display: block; height: 100%; }
.seg.always { background: var(--mint-ink); }
.seg.sometimes { background: var(--mint); }
.seg.never { background: var(--pink); }

dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.45rem 1rem; margin: 0; font-family: var(--sans); font-size: 0.86rem; }
dt { color: var(--mute); }
dd { margin: 0; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: var(--mint-ink); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 4px; }

.chart-figure { min-width: 0; margin: 0; }
.chart { display: block; width: 100%; height: auto; margin: 0; font-family: var(--sans); }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .frame { fill: none; stroke: #999; stroke-width: 1; }
.chart .tick { font-size: 12px; fill: var(--mute); }
.chart-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 0.82rem; }
.chart-key li { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.key-line { display: block; flex: 0 0 2.5rem; width: 2.5rem; height: 0.5rem; }

footer.wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 1rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.75rem; color: var(--mute); }

/* trace pages */

main.wide { padding-top: 3rem; }
.crumb { margin: 0 0 1.5rem; font-family: var(--sans); font-size: 0.82rem; color: var(--mute); overflow-wrap: anywhere; }
h1.study { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 400; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.study-meta { margin: 0 0 2.5rem; }
.study-meta.lede { font-size: 1.05rem; color: var(--ink); }

.card.section { margin-bottom: 2.5rem; }
.card.section h2 .marks { font-family: var(--sans); font-size: 0.95rem; vertical-align: middle; }

pre.prompt, pre.reply {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  background: var(--band);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre.reply { max-height: 34rem; overflow: auto; }
pre.reasoning { background: #fff; color: #555; }

.marks, .att { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; white-space: nowrap; }
.marks { margin-left: 0.6rem; }
th.att, td.att { text-align: center; }
.ok { color: var(--mint-ink); }
.ko { color: var(--pink-ink); }
table.traces td.model a { text-decoration: none; }
table.traces td.model a:hover { text-decoration: underline; }

details.attempt { margin: 0 0 0.6rem; border: 1px solid var(--rule); }
details.attempt summary { padding: 0.6rem 0.9rem; cursor: pointer; font-family: var(--sans); font-size: 0.86rem; list-style: none; }
details.attempt summary::-webkit-details-marker { display: none; }
details.attempt[open] summary { border-bottom: 1px solid var(--rule); }
details.attempt .body { padding: 0.7rem 0.9rem 1rem; }
.tag { display: inline-block; min-width: 2.6rem; margin-right: 0.6rem; padding: 0.05rem 0.4rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; border: 1px solid var(--ink); }
.tag.pass { background: var(--mint-wash); color: var(--mint-ink); border-color: var(--mint-ink); }
.tag.fail { background: var(--pink-wash); color: var(--pink-ink); border-color: var(--pink-ink); }
.why { color: var(--mute); }
.why code, table.checks code { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); }
.meta-inline { color: var(--mute); font-size: 0.78rem; margin-left: 0.4rem; }
.label { margin: 0.9rem 0 0.3rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
details.inner { margin: 0.4rem 0 0; }
details.inner summary { cursor: pointer; font-family: var(--sans); font-size: 0.82rem; color: var(--mute); padding: 0.2rem 0; }
details.inner pre.prompt, details.inner pre.reply { margin-top: 0.4rem; }

table.checks { width: auto; font-size: 0.8rem; margin: 0.3rem 0 0.6rem; }
table.checks td { padding: 0.25rem 0.7rem 0.25rem 0; border-bottom: 0; white-space: normal; }
table.checks tbody tr:last-child td { border-bottom: 0; }
table.checks td.mark { width: 1rem; padding-right: 0.4rem; }
table.checks td.mark.ko { color: var(--pink-ink); }
p.nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--sans); font-size: 0.85rem; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .two.even { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .study-map { grid-template-columns: repeat(27, minmax(0, 1fr)); row-gap: 6px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2rem); }
  nav.top .wrap { width: calc(100% - 2rem); flex-wrap: wrap; padding: 1rem 0; gap: 0.85rem; }
  nav.top .links { gap: 0.5rem 1rem; font-size: 0.72rem; }
  .readout .board { font-size: 0.8rem; }
  .readout .board th, .readout .board td { padding: 0.75rem 0.3rem; }
  .readout .board th { font-size: 0.68rem; white-space: normal; }
  .readout .board .rank { width: 1.2rem; }
  .readout .board .model { white-space: normal; }
  .readout .board .lab { display: none; }
  .readout .model-lab { display: block; margin-top: 0.15rem; font-size: 0.7rem; font-weight: 400; color: var(--mute); }
  header.hero { padding: 2.5rem 0 4.5rem; }
  .study-map { margin-bottom: 1.5rem; }
  header.hero .meta { font-size: 0.72rem; }
  .result-section { margin-bottom: 4.5rem; scroll-margin-top: 7.5rem; }
  .section-heading { margin-bottom: 2rem; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.75rem; margin: 2.5rem 0; }
  .figure-card { min-width: 0; padding: 0 0.4rem; }
  .figure-card:last-child { grid-column: 1 / -1; }
  .panel { padding: 1.2rem; }
  .criteria-grid { gap: 1.75rem 1.25rem; }
  .protocol-grid { margin-top: 2.5rem; }
  .explore { padding-bottom: 3rem; }
  .figure { font-size: 1.7rem; }
  .figure span { font-size: 0.9rem; }
  .figure-card .caption { font-size: 0.7rem; line-height: 1.4; }
  .card h2 { font-size: 1.25rem; }
  .chart .tick { font-size: 20px; }
  dl { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.6rem 0.8rem; }
  .meta-inline { display: block; margin: 0.4rem 0 0; }
  details.attempt summary, table.checks { overflow-wrap: anywhere; }
}
