:root {
  --paper: #f7f6f1;
  --white: #ffffff;
  --ink: #142b38;
  --muted: #53636a;
  --blue: #235b76;
  --orange: #b8512e;
  --line: #d9ddd9;
  --soft-blue: #eaf0f2;
  --soft-orange: #f6ece5;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 20px; background: white; padding: 8px 16px; z-index: 10; }
.skip-link:focus { top: 8px; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.03em; }
.wordmark span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.masthead nav { display: flex; gap: 26px; }
.masthead nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.masthead nav a:hover { color: var(--blue); }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; color: var(--blue); margin: 0 0 18px; }
.hero { display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: 64px; padding-block: 78px 64px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 4.2vw, 4rem); max-width: 660px; margin-bottom: 26px; }
h1 em { font-style: normal; color: var(--blue); }
.hero-copy { max-width: 610px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; margin-bottom: 24px; }
.byline { font-size: .9rem; margin-bottom: 24px; }
.byline span { display: block; color: var(--muted); font-size: .83rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 11px 17px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 550; }
.button.primary { color: white; background: var(--ink); }
.button:hover { color: white; background: var(--blue); border-color: var(--blue); }
.hero-visual { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.visual-top { display: flex; justify-content: space-between; gap: 12px; font-size: .66rem; color: var(--muted); letter-spacing: .08em; margin-bottom: 23px; text-transform: uppercase; }
.visual-top .live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; margin-right: 7px; }
.visual-question { font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; margin-bottom: 30px; }
.mini-stage { margin-bottom: 20px; }
.mini-stage-label { display: flex; justify-content: space-between; gap: 12px; font-size: .73rem; margin-bottom: 9px; }
.mini-stage-label span { color: var(--muted); }
.film { height: 30px; background: repeating-linear-gradient(90deg, var(--soft-blue) 0 16px, var(--line) 16px 17px, transparent 17px 19px); position: relative; }
.film::after { content: ""; position: absolute; background: rgba(184,81,46,.14); border: 1px solid var(--orange); height: 36px; top: -3px; width: 24%; left: 49%; }
.film.medium { width: 77%; margin-inline: auto; }
.film.medium::after { width: 10%; left: 54%; }
.film.narrow { width: 54%; margin-inline: auto; background: repeating-linear-gradient(90deg, var(--soft-orange) 0 8px, #d4ab96 8px 9px, transparent 9px 11px); }
.film.narrow::after { width: 3px; left: 59%; background: var(--orange); }
.visual-answer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.visual-answer code { font-size: 1.6rem; color: var(--orange); }
.visual-answer span { font-size: .7rem; color: var(--muted); }
.skill-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill-strip div { padding: 22px 20px; border-right: 1px solid var(--line); }
.skill-strip div:first-child { padding-left: 0; }
.skill-strip div:last-child { border-right: 0; }
.skill-strip strong { display: block; font-size: .85rem; font-weight: 600; }
.skill-strip span { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; }
.section { padding-block: 70px; border-bottom: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 34px; }
.section-intro .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(2.2rem, 3.2vw, 3rem); margin-bottom: 0; }
.section-intro > p { color: var(--muted); margin-bottom: 4px; font-size: .94rem; }
.repo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.repo-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px; }
.repo-index { font-size: .68rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.repo-card h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: -.025em; margin-bottom: 14px; }
.repo-card > p { color: var(--muted); font-size: .9rem; }
.repo-spec { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 25px; }
.repo-spec span { color: var(--blue); background: var(--soft-blue); font-size: .73rem; padding: 4px 8px; border-radius: 3px; }
.text-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .83rem; }
.figure { margin: 0; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.figure figcaption { color: var(--muted); font-size: .77rem; margin-top: 16px; }
.figure-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: .78rem; margin-top: 14px; }
.training-notes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 28px; }
.training-notes h3 { font-size: .91rem; margin-bottom: 10px; }
.training-notes p { color: var(--muted); font-size: .84rem; margin-bottom: 0; }
.demo { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.demo-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.demo-title h3 { font-size: .94rem; font-weight: 550; margin: 0; }
.demo-title span { font-size: .72rem; color: var(--muted); }
.stage-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.stage-controls button { cursor: pointer; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); font-size: .81rem; padding: 8px 13px; }
.stage-controls button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.demo-track { width: 100%; height: auto; display: block; }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 18px; }
.demo-stats strong { display: block; font-size: 1.3rem; font-weight: 500; color: var(--blue); line-height: 1.3; }
.demo-stats span { font-size: .71rem; color: var(--muted); }
.demo-explanation { font-size: .84rem; color: var(--muted); margin: 22px 0 0; max-width: 800px; }
.note { border-left: 3px solid var(--orange); padding: 8px 0 8px 18px; color: var(--muted); font-size: .82rem; margin: 24px 0 0; }
.table-wrap { overflow-x: auto; margin-top: 26px; }
table { border-collapse: collapse; width: 100%; font-size: .83rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; font-weight: 550; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }
.score { border-top: 2px solid var(--ink); padding-top: 14px; }
.score strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; display: block; letter-spacing: -.04em; }
.score span { display: block; color: var(--muted); font-size: .75rem; }
.score-label { font-size: .8rem; color: var(--muted); margin: 28px 0 0; }
.release-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; }
.release-list { list-style: none; margin: 0; padding: 0; }
.release-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.release-list strong { display: block; font-size: .86rem; }
.release-list span { display: block; color: var(--muted); font-size: .8rem; }
.release-links { background: var(--soft-blue); border-radius: 6px; padding: 30px; }
.release-links h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.release-links p { font-size: .86rem; color: var(--muted); }
.release-links a { display: block; padding: 8px 0; font-size: .86rem; }
.fine-print { color: var(--muted); font-size: .75rem; margin: 24px 0 0; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 28px; font-size: .77rem; color: var(--muted); }
footer p { margin: 0; }
details { margin-top: 22px; font-size: .85rem; }
summary { cursor: pointer; color: var(--blue); margin-bottom: 14px; }
@media (max-width: 920px) {
  .hero { gap: 32px; padding-block: 48px; }
  h1 { font-size: 3rem; }
  .hero-visual { padding: 22px; }
  .section-intro { gap: 28px; }
  .release-grid { gap: 28px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: 70px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  .masthead nav { gap: 16px; }
  .masthead nav a { font-size: .74rem; }
  .wordmark { font-size: .88rem; }
  .wordmark span { margin-left: 4px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
  h1 { font-size: 2.85rem; max-width: 520px; }
  .hero-copy { font-size: .96rem; }
  .hero-visual { padding: 25px; }
  .skill-strip { grid-template-columns: 1fr 1fr; }
  .skill-strip div, .skill-strip div:first-child { padding: 14px 12px; }
  .skill-strip div:nth-child(2) { border-right: 0; }
  .skill-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding-block: 42px; }
  .section-intro, .repo-grid, .training-notes, .release-grid { grid-template-columns: 1fr; gap: 24px; }
  .repo-card { padding: 25px; }
  .section-intro > p { font-size: .88rem; }
  .figure { padding: 12px; }
  .figure img { min-width: 0; }
  .training-notes { gap: 18px; }
  .demo { padding: 20px; }
  .demo-title { align-items: start; gap: 12px; }
  .demo-title h3 { font-size: .82rem; }
  .demo-title span { font-size: .62rem; max-width: 90px; text-align: right; }
  .stage-controls { gap: 6px; }
  .stage-controls button { font-size: .72rem; padding: 7px 9px; }
  .demo-stats strong { font-size: 1.08rem; }
  .demo-stats span { font-size: .65rem; }
  .scores { gap: 14px; }
  .score strong { font-size: 1.7rem; }
  .score span { font-size: .69rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
