/* RadContext — project homepage (light mode only, Plus Jakarta Sans throughout, upright text only) */

/* Plus Jakarta Sans, self-hosted (variable weight 200-800, upright only) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pink: #e44b7c;
  --pink-deep: #c9295c;
  --pink-soft: #f4a3bd;
  --pink-wash: #fdeef3;
  --link: #c9295c;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --rule: #d9d9d9;
  --bg: #ffffff;
  --dark-block: #3a3a3a;
  --radius: 4px;
  --maxw: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (max-width: 860px) { html { scroll-padding-top: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

em, i, cite, address, dfn, var { font-style: normal; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-drag: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.accent { color: var(--pink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ----------
   The header bar is the top row of the hero frame: same outer borders, and its
   column divider sits on the same grid line as the hero's text/art divider. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  padding-top: 24px;
}
.header-bar {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch;
  height: 60px; background: var(--bg);
  border: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 19px/1 var(--font); letter-spacing: -0.03em; }
.header-bar .brand { padding: 0 36px; border-right: 1px solid var(--rule); transition: opacity .25s; }
.site-header.at-top .header-bar .brand > * { opacity: 0; visibility: hidden; }
.header-bar .brand > * { transition: opacity .25s, visibility .25s; }
.brand img { width: 54px; height: auto; }
.nav { display: flex; align-items: stretch; font-size: 14px; font-weight: 600; }
.nav a { flex: 1 1 auto; min-width: 0; display: grid; place-items: center; padding: 0 4px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .15s; }
.nav a + a { border-left: 1px solid var(--rule); }
.nav a:hover { color: var(--pink); }
@media (max-width: 1180px) {
  .nav a[href="#problem"] { display: none; }
  .nav a[href="#problem"] + a { border-left: 0; }
}
/* On small screens the nav does not fit and the hero already shows the name and logo,
   so the header is dropped and the hero frame closes itself at the top. */
@media (max-width: 860px) {
  .site-header { display: none; }
}

/* ---------- Hero ----------
   Row 1: logo + wordmark lockup across the full frame.
   Row 2: intro and paper links side by side, split on the same line as the header's divider. */
.hero { padding: 0; }
.hero-frame {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid var(--rule); border-top: 0;
}
.hero-lockup {
  grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px);
  padding: 36px; border-bottom: 1px solid var(--rule);
}
.hero-logo { flex: none; display: block; height: clamp(54px, 8vw, 100px); width: auto; user-select: none; -webkit-user-select: none; }
.hero-cell { padding: 32px 36px; }
.hero-intro { border-right: 1px solid var(--rule); }

.wordmark { font: 800 clamp(46px, 7.4vw, 100px)/0.9 var(--font); letter-spacing: -0.045em; margin: 0; }
.tagline { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--font); letter-spacing: -0.02em; }
.hero-lede { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.eyebrow { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--font); letter-spacing: -0.02em; color: var(--pink); margin-bottom: 14px; }

.venue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.venue-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .15s, color .15s;
}
.venue-list a:hover { border-color: var(--pink); }
.venue-list strong { font-weight: 700; display: block; }
.venue-list span { color: var(--muted); font-size: 14px; }
.venue-list .arrow { color: var(--pink); display: grid; place-items: center; }
/* A venue with more than one paper: one bordered card, a ruled row per paper. */
.venue-list .venue-group { border: 1px solid var(--rule); border-radius: var(--radius); }
.venue-group > strong { padding: 12px 14px 10px; }
.venue-list .venue-group a { border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 10px 14px; }
.venue-list .venue-group a:hover { color: var(--pink); }
.venue-list .venue-group .sub { color: inherit; font-size: 14.5px; font-weight: 500; }

@media (max-width: 860px) {
  section.hero { padding-top: 16px; }
  .hero-frame { grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
  .hero-lockup { padding: 24px 20px; gap: 12px; }
  .hero-logo { height: clamp(34px, 10vw, 54px); }
  .wordmark { font-size: clamp(30px, 10vw, 46px); }
  .hero-cell { padding: 24px 20px; }
  .hero-intro { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Sections ---------- */
/* Every section continues the hero frame: shared side rules, one horizontal rule between sections. */
section.block { padding: 0; }
.frame { border: 1px solid var(--rule); border-top: 0; padding: 72px 36px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; max-width: 22ch; }
.section-head .intro { color: var(--ink-2); margin-top: 14px; max-width: 68ch; }
@media (max-width: 860px) {
  .frame { padding: 48px 20px; }
  .section-head { margin-bottom: 28px; }
}


/* problem examples */
.indication-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); }
.indication-demo > div { padding: 22px 24px; }
.indication-demo .exam-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.indication-demo .exam-label { font: 600 14px/1.3 var(--font); color: var(--muted); }
.indication-demo .exam-name { font: 700 22px/1.2 var(--font); letter-spacing: -0.02em; }
.indication-demo .ind-ai { border-left: 1px solid var(--rule); }
.indication-demo .label { font: 600 14px/1.3 var(--font); color: var(--muted); margin-bottom: 10px; }
.indication-demo .label.ai { color: var(--pink); }
.indication-demo .orig { font: 500 18px/1.45 var(--font); color: var(--ink-2); }
.indication-demo .gen { font-weight: 600; font-size: 17px; line-height: 1.5; }
@media (max-width: 720px) {
  .indication-demo { grid-template-columns: 1fr; }
  .indication-demo .ind-ai { border-left: 0; border-top: 1px solid var(--rule); }
  .indication-demo .exam-head { padding: 16px 24px; gap: 4px 14px; }
}


/* problem statistics: large figures in a ruled two-cell row */
.big-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }
.big-stat { padding: 24px 28px 26px; }
.big-stat + .big-stat { border-left: 1px solid var(--rule); }
.big-num { font: 800 clamp(44px, 5vw, 60px)/1 var(--font); letter-spacing: -0.04em; color: var(--pink); }
.big-stat p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.big-stats-source { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) {
  .big-stats { grid-template-columns: 1fr; }
  .big-stat { padding: 24px 20px; }
  .big-stat + .big-stat { border-left: 0; border-top: 1px solid var(--rule); }
}

/* figures */
figure { margin: 0; }
.figure-card { margin: 0; }
.figure-card img { margin: 0 auto; }

/* Diagrams are inline SVG that flow straight on from the section text. */
.diagram-band { margin: 40px 0 0; padding: 0; }
/* a band that ends its section closes onto the section rule instead of drawing a second line */
.diagram-scroll { display: flex; justify-content: center; }
svg.diagram { display: block; width: 100%; max-width: 860px; height: auto; user-select: none; -webkit-user-select: none; }
svg.diagram image { pointer-events: none; }
.diagram-band figcaption { margin: 0 auto 28px; max-width: 860px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.diagram-band figcaption b { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .diagram-band { margin-top: 32px; }
}
/* wide diagrams scroll sideways on small screens instead of shrinking past legibility */
@media (max-width: 720px) {
  .diagram-scroll { overflow-x: auto; justify-content: flex-start; }
  svg.diagram { min-width: 560px; }
  .arch-wrap { min-width: 560px; }
}

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); }
.stage { padding: 28px 26px; position: relative; }
.stage + .stage { border-left: 1px solid var(--rule); }
.stage .step { font: 600 14px/1.2 var(--font); color: var(--muted); }
.stage h3 { font-size: 22px; font-weight: 700; margin: 12px 0 6px; }
.stage .venue { font-size: 14px; font-weight: 600; color: var(--pink); margin-bottom: 14px; }
.stage ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.stage li + li { margin-top: 6px; }
.stage .badge { display: inline-block; margin: 16px 6px 0 0; font: 600 12px/1 var(--font); padding: 6px 8px; border: 1px solid var(--pink); color: var(--pink); border-radius: 3px; text-decoration: none; transition: background .15s, color .15s; }
.stage .badge:hover, .stage .badge:focus-visible { background: var(--pink); color: #fff; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .stage + .stage { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Architecture figure: hover, focus or tap a component to read about it below the diagram.
   The selected component stays in full colour with a pink marker; the others fade back. */
.diagram-band { position: relative; }
.arch-wrap { position: relative; width: 100%; max-width: 860px; }
.arch-wrap svg.diagram { max-width: none; min-width: 0; }
.hotspot { position: absolute; padding: 0; margin: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
/* only the icon and label shapes of each component fade, never the arrows */
.arch-wrap .arc { transition: opacity .2s; }
.arch-wrap.has-active .arc:not(.is-on) { opacity: .5; }
.hotspot:focus { outline: none; }
.hotspot:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
/* The selected component's description sits as a sidenote beside the section intro,
   so the diagram below can use the full width. */
.section-head.with-note { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; }
.arch-figure .arch-wrap { max-width: 980px; }
.arch-detail { padding-left: 24px; border-left: 3px solid var(--pink); }
.arch-copy { min-height: 9.5em; }
.arch-copy h4 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--pink); }
.arch-copy p { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0; }
@media (max-width: 960px) {
  .section-head.with-note { grid-template-columns: 1fr; gap: 24px; }
  .arch-detail { padding: 16px 0 0; border-left: 0; border-top: 3px solid var(--pink); }
  .arch-copy { min-height: 0; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); }
.stat { padding: 24px 22px; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat .num { font: 800 clamp(30px, 3.6vw, 42px)/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .lbl { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* bar chart */
/* Both questions share one ruled box, stacked, so neither chart is left half empty. */
.charts { margin-top: 28px; border: 1px solid var(--rule); }
.chart { padding: 24px; }
.chart + .chart { border-top: 1px solid var(--rule); }
.chart h4 { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 16px; }
.chart h4 .q { color: var(--pink); font-weight: 800; font-size: 13px; margin-right: 6px; }
.bar-row { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; margin-bottom: 10px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row .cat { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.bar-track { display: flex; align-items: center; gap: 8px; height: 26px; min-width: 0; }
.bar { height: 100%; width: 0; flex: none; border-radius: 0 3px 3px 0; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.bar.good { background: linear-gradient(90deg, var(--pink-deep), var(--pink)); }
.bar.mild { background: #8a5468; }
.bar.bad { background: var(--ink); }
.bar-val { flex: none; font: 700 13px/1 var(--font); white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 14px; }
}

.callout { border-left: 3px solid var(--pink); padding: 4px 0 4px 18px; font-size: 15px; color: var(--ink-2); margin-top: 24px; }
.callout b { color: var(--ink); }

/* figure + text split */
.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; gap: 20px; } }

/* feedback quotes */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.quotes h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
blockquote { margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
blockquote::before { content: "\201C"; font: 800 28px/0 var(--font); color: var(--pink); vertical-align: -10px; margin-right: 4px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* roadmap */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); }
.roadmap li { padding: 22px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.roadmap li:nth-child(3n) { border-right: 0; }
.roadmap li:nth-last-child(-n+3) { border-bottom: 0; }
.roadmap h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.roadmap p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { border-right: 0; border-bottom: 1px solid var(--rule) !important; }
  .roadmap li:last-child { border-bottom: 0 !important; }
}

/* publications */
.pubs { display: grid; gap: 20px; }
.pub { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 26px; border: 1px solid var(--rule); }
.pub-venue { border-right: 1px solid var(--rule); padding-right: 20px; }
.pub-venue .yr { font: 800 30px/1 var(--font); letter-spacing: -0.03em; color: var(--pink); }
.pub-venue .v { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.pub-venue .t { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pub h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.pub .authors { font-size: 14.5px; color: var(--ink-2); margin: 10px 0 6px; }
.pub .meta { font-size: 14px; color: var(--muted); }
.pub .summary { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font: 600 13.5px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--rule); background: var(--bg); color: var(--ink);
}
.btn:hover { border-color: var(--pink); color: var(--pink); }
.btn.primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn.primary:hover { background: var(--pink-deep); color: #fff; }
details.bib { margin-top: 14px; }
details.bib summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.bib summary::-webkit-details-marker { display: none; }
details.bib summary::before { content: "+"; font-weight: 800; color: var(--pink); }
details.bib[open] summary::before { content: "\2212"; }
.bib-box { position: relative; margin-top: 10px; }
.bib-box pre { margin: 0; padding: 16px; border: 1px solid var(--rule); overflow-x: auto; font: 12.5px/1.6 var(--font); color: var(--ink-2); }
.bib-box .copy { position: absolute; top: 8px; right: 8px; padding: 5px 10px; font-size: 12px; }
@media (max-width: 720px) {
  .pub { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .pub-venue { border-right: 0; border-bottom: 1px solid var(--rule); padding: 0 0 12px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
  .pub-venue .v, .pub-venue .t { margin-top: 0; }
}

/* poster */
.poster { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.poster a.thumb { display: block; border: 1px solid var(--rule); }
.poster a.thumb:hover { border-color: var(--pink); }
@media (max-width: 720px) { .poster { grid-template-columns: 1fr; } .poster a.thumb { max-width: 280px; } }

/* contact + footer */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); }
.contact-list li { padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-list li + li { border-top: 1px solid var(--rule); }
.contact-list .who { font-weight: 700; }
.contact-list .who span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 24px; } }

.site-footer { padding: 0 0 48px; font-size: 13.5px; color: var(--muted); }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; border: 1px solid var(--rule); border-top: 0; padding: 22px 36px; }
@media (max-width: 860px) { .footer-bar { padding: 20px; } }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 44px; }
