:root {
  color-scheme: light;
  --ink: #292624; --muted: #625e5b; --accent: #8c1515; --accent-dark: #6b1010;
  --accent-soft: #f8ebeb; --accent-line: #d9b6b6;
  --line: #e6e2df; --surface: #f8f6f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px; color: var(--ink); background: #fff;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; }
body [hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 5px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
p { line-height: 1.7; }
h1, h2, h3 { font-weight: 650; margin: 0; text-wrap: balance; }
.container { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 96px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 30; padding: 12px 18px; background: #fff; color: var(--accent); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 20; background: #ffffffed; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: -.035em; line-height: 1.25; }
.brand img { width: 48px; flex: none; }
nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 550; }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover, .text-link:hover, .footer-links a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; padding-block: 80px 70px; }
.hero-copy { padding-bottom: 8px; }
h1 { font-size: clamp(76px, 7.2vw, 104px); letter-spacing: -.065em; line-height: 1.02; }
.title-period { color: var(--accent); }
.hero-subtitle { max-width: 570px; font-size: 26px; font-weight: 450; letter-spacing: -.025em; line-height: 1.45; margin: 28px 0 18px; text-wrap: pretty; }
.hero-description { color: var(--muted); font-size: 19px; max-width: 530px; margin: 0; text-wrap: pretty; }
.hero-figure, .hero-figure img { width: 100%; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; border-radius: 9px; padding: 15px 22px; font-size: 16px; line-height: 1.45; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.text-link { font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link span { margin-left: 7px; }
.publication-note { font-size: 15px; color: var(--muted); margin: 22px 0 0; }
.project-links { display: flex; gap: 36px; align-items: center; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); }
.github-link { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 14px 20px; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.github-link > span:last-child { flex: none; }
.github-link:hover { color: var(--accent-dark); background: #f3dddd; border-color: var(--accent); }
.stanford { flex: none; padding: 14px 0 14px 16px; }
.stanford img { width: 165px; }
.overview { background: var(--surface); border-block: 1px solid var(--line); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 64px; }
h2 { font-size: clamp(40px, 3.8vw, 54px); line-height: 1.13; letter-spacing: -.045em; }
.section-description { max-width: 515px; margin: 0 0 3px; color: var(--muted); font-size: 18px; }
.motivation { display: grid; grid-template-columns: 220px 1fr; gap: 36px; margin-block: 38px; padding: 28px 0; border-block: 1px solid var(--line); }
.motivation h3 { color: var(--accent); font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
.motivation p { margin: 0; color: var(--muted); font-size: 18px; max-width: 860px; }
.architecture { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.figure-heading { padding: 22px 28px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.figure-image { margin: 28px; }
.figure-image img { width: 100%; }
.architecture figcaption { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0 28px; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.architecture figcaption p { margin: 0; font-size: 16px; color: var(--muted); }
.architecture figcaption strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.panel-label { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 650; margin-right: 5px; border-radius: 5px; }
.research-intro { align-items: center; }
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 48px; }
.findings article { border-top: 2px solid var(--accent-line); padding-top: 24px; }
.finding-index { color: var(--accent); text-transform: uppercase; font-size: 13px; letter-spacing: .07em; font-weight: 650; margin: 0 0 22px; }
.findings h3 { font-size: 31px; line-height: 1.25; letter-spacing: -.04em; }
.findings article > p:last-child { font-size: 18px; color: var(--muted); margin: 18px 0 0; }
.research-note { font-size: 16px; color: var(--muted); margin: 34px 0 0; max-width: 850px; }
.try-section { background: var(--surface); border-block: 1px solid var(--line); }
.try-grid { display: grid; grid-template-columns: 1fr 490px; gap: 88px; align-items: center; max-width: 1180px; }
.try-copy .eyebrow { margin-bottom: 18px; }
.try-copy > p:not(.eyebrow) { color: var(--muted); font-size: 19px; max-width: 480px; margin-block: 24px; }
.example-question { border-left: 3px solid var(--accent-line); padding-left: 22px; margin-block: 32px; max-width: 460px; }
.example-question > span { font-size: 13px; color: var(--accent); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.example-question > p { font-size: 22px; font-weight: 450; line-height: 1.55; letter-spacing: -.02em; margin: 10px 0 0; }
.try-copy > .account-note { font-size: 16px !important; }
.account-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: 0 10px 36px #172c3806; }
.account-card .eyebrow { font-size: 13px; margin-bottom: 12px; }
.account-card h3 { font-size: 36px; letter-spacing: -.04em; }
.form-intro { font-size: 17px; color: var(--muted); margin: 10px 0 24px; }
label { display: block; font-size: 16px; font-weight: 550; margin-bottom: 20px; }
input { display: block; width: 100%; min-height: 50px; font-size: 18px; font-weight: 400; border: 1px solid #c7beb9; border-radius: 8px; padding: 12px 14px; margin-top: 8px; background: #fff; color: var(--ink); }
input[readonly] { background: var(--surface); color: var(--muted); }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#challenge { margin-block: 6px; min-width: 0; }
#submit { width: 100%; margin-top: 10px; min-height: 52px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.account-actions { display: flex; flex-wrap: wrap; gap: 0 22px; }
#resend, #change-email { border: 0; background: none; padding: 14px 0 3px; color: var(--accent); font-size: 16px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
#status { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
#status:empty { display: none; }
#status[data-state="error"] { color: #9a2929; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding-block: 38px; align-items: center; }
.footer-brand { font-size: 17px; font-weight: 600; text-decoration: none; }
.site-footer p { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.footer-links { display: flex; gap: 28px; font-size: 16px; }
.footer-links a { text-decoration: none; }
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 22px; padding-top: 64px; }
  h1 { font-size: 80px; }
  .section-intro { gap: 36px; }
  .section-description { max-width: 460px; }
  .try-grid { grid-template-columns: 1fr 450px; gap: 48px; }
  .findings { gap: 28px; }
}
@media (max-width: 850px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; gap: 16px; }
  .brand { font-size: 19px; gap: 10px; }
  .brand img { width: 42px; }
  nav { gap: 24px; }
  nav a[href="#overview"] { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 58px 32px; gap: 28px; }
  .hero-copy { max-width: 650px; }
  h1 { font-size: clamp(72px, 12vw, 98px); }
  .hero-subtitle { max-width: 610px; }
  .hero-description { max-width: 590px; }
  .hero-figure { max-width: 660px; justify-self: center; }
  .project-links { gap: 24px; padding-block: 28px; }
  .stanford img { width: 142px; }
  .section-space { padding-block: 68px; }
  .section-intro { align-items: start; flex-direction: column; gap: 26px; }
  .section-description { max-width: 680px; }
  h2 { font-size: 44px; }
  .motivation { grid-template-columns: 1fr; gap: 14px; margin-block: 32px; }
  .figure-image { margin: 20px; }
  .figure-heading { padding: 20px; }
  .architecture figcaption { gap: 22px; margin-inline: 20px; }
  .findings { gap: 26px; margin-top: 36px; }
  .findings h3 { font-size: 29px; }
  .findings h3 br { display: none; }
  .try-grid { grid-template-columns: 1fr; gap: 36px; max-width: 650px; }
  .account-card { padding: 34px; width: 100%; max-width: 550px; justify-self: center; }
  .try-copy h2 br { display: none; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 100px; }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand { font-size: 18px; }
  .brand span { max-width: 180px; }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(68px, 13vw, 82px); }
  .hero-subtitle { font-size: 25px; margin-top: 26px; }
  .hero-description { font-size: 18px; }
  .hero-actions { gap: 24px; margin-top: 28px; }
  .project-links { flex-direction: column; align-items: start; gap: 16px; }
  .stanford { padding: 12px 0; }
  .section-space { padding-block: 58px; }
  .eyebrow { margin-bottom: 18px; }
  h2 { font-size: 41px; }
  .figure-heading { font-size: 16px; }
  .figure-image { margin: 12px; }
  .architecture figcaption { grid-template-columns: 1fr; gap: 22px; padding-block: 24px; }
  .findings { grid-template-columns: 1fr; gap: 36px; }
  .finding-index { margin-bottom: 18px; }
  .findings h3 { font-size: 31px; }
  .findings article > p:last-child { margin-top: 14px; }
  .try-grid { gap: 34px; }
  .try-copy { max-width: 520px; }
  .account-card { padding: 30px 24px; }
  .site-footer { align-items: start; flex-direction: column; gap: 26px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 17px; gap: 8px; }
  .brand span { max-width: 135px; }
  .brand img { width: 36px; }
  h1 { font-size: 66px; }
  h2 { font-size: 38px; }
  .account-card { padding-inline: 22px; }
  .names { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
