:root {
  --ink: #111318;
  --paper: #fbfaf6;
  --ivory: #f3f0e8;
  --yellow: #e4be16;
  --muted: #5d5f65;
  --line: rgba(17, 19, 24, .2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Arial, sans-serif;
  --shell: min(1240px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.62 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 4px;
}
img, svg { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: var(--yellow); color: var(--ink); font-weight: 800; }
.skip:focus { left: 1rem; top: 1rem; }

.site-header { position: relative; z-index: 20; background: var(--ink); color: var(--paper); border-bottom: 1px solid rgba(251,250,246,.18); }
.header-row { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: baseline; gap: .7rem; font-family: var(--serif); font-size: 1.75rem; }
.brand-mark { color: var(--yellow); }
.brand small { color: #bbb7ad; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.menu-button { display: none; border: 1px solid rgba(251,250,246,.45); background: transparent; color: var(--paper); padding: .7rem .9rem; font: 800 .85rem var(--sans); }
.nav { display: flex; align-items: center; gap: .25rem 1.4rem; font-size: .88rem; font-weight: 800; }
.nav a { padding: .75rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--yellow); }
.nav .bank-link { padding: .7rem .85rem; border: 1px solid var(--yellow); }

.hero { background: var(--ink); color: var(--paper); padding: clamp(5rem, 9vw, 8.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; }
.kicker, .index, .eyebrow { margin: 0 0 1.8rem; font-size: .77rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.kicker { color: #d5d1c8; }
.kicker::before { content: ""; display: inline-block; width: 2.8rem; height: 4px; margin: 0 .8rem 3px 0; background: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.hero h1 { max-width: 950px; margin-bottom: 2rem; font-size: clamp(3.55rem, 7vw, 6.7rem); line-height: .96; letter-spacing: -.057em; }
.hero-lead { max-width: 830px; margin: 0; color: #d5d1c8; font-size: clamp(1.14rem, 1.7vw, 1.45rem); line-height: 1.5; }
.hero-aside { padding-top: 1.6rem; border-top: 1px solid rgba(251,250,246,.35); }
.hero-aside strong { display: block; margin-bottom: .8rem; color: var(--yellow); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-aside p { margin: 0; color: #d5d1c8; }
.status { display: inline-block; margin-top: 1.4rem; padding: .45rem .65rem; border: 1px solid rgba(251,250,246,.3); font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .8rem 1.15rem; border: 1px solid var(--yellow); background: var(--yellow); color: var(--ink); font-weight: 900; cursor: pointer; }
.button.secondary { background: transparent; color: var(--paper); border-color: rgba(251,250,246,.5); }
.button.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.subhero { padding: clamp(4.5rem, 8vw, 7.5rem) 0; background: var(--ink); color: var(--paper); }
.subhero h1 { max-width: 980px; margin-bottom: 1.5rem; font-size: clamp(3rem, 6vw, 5.8rem); line-height: 1; }
.subhero p { max-width: 800px; margin-bottom: 0; color: #d5d1c8; font-size: 1.25rem; }

.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section.ivory { background: var(--ivory); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.yellow { background: var(--yellow); }
.section-head { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(2rem, 6vw, 6rem); margin-bottom: 4rem; }
.section h2 { max-width: 900px; margin: 0; font-size: clamp(2.75rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.05em; }
.section h3 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1.12; }
.intro { max-width: 800px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.18rem; }
.dark .intro, .dark .muted { color: #c7c2b8; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prose { max-width: 780px; }
.prose.wide { max-width: 920px; }
.prose p { margin-bottom: 1.3rem; }
.muted { color: var(--muted); }
.text-link { display: inline-block; margin-top: 1.4rem; padding-bottom: .15rem; border-bottom: 2px solid var(--yellow); font-weight: 900; }

.thesis { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--yellow); }
.thesis-grid { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(2rem, 6vw, 6rem); }
.thesis blockquote { margin: 0; padding-left: clamp(1.6rem, 4vw, 3.2rem); border-left: 4px solid var(--paper); font: 400 clamp(2.5rem, 5vw, 4.9rem)/1.07 var(--serif); letter-spacing: -.045em; }
.thesis .explain { max-width: 850px; margin: 2rem 0 0; padding-left: clamp(1.8rem, 4vw, 3.45rem); font-size: 1.18rem; }

.pathways { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pathway { min-height: 330px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pathway .label { display: block; margin-bottom: 5.2rem; color: var(--muted); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.pathway p { color: var(--muted); }
.pathway a { display: inline-block; margin-top: .75rem; border-bottom: 2px solid var(--yellow); font-weight: 900; }

.levels { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.level { min-height: 380px; padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.level .num { display: block; margin-bottom: 4.4rem; color: var(--muted); font-size: .76rem; font-weight: 900; }
.level p { color: var(--muted); }
.level:last-child { background: var(--yellow); }
.level:last-child p { color: var(--ink); }

.dimensions { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(251,250,246,.25); border-left: 1px solid rgba(251,250,246,.25); }
.dimension { min-height: 300px; padding: 1.55rem; border-right: 1px solid rgba(251,250,246,.25); border-bottom: 1px solid rgba(251,250,246,.25); }
.dimension span { display: block; margin-bottom: 4rem; color: var(--yellow); font-size: .75rem; font-weight: 900; }
.dimension h3 { font-size: 1.7rem; }
.dimension p { color: #c7c2b8; font-size: .94rem; }

.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 1fr 3fr 6fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.step-num { color: var(--muted); font-size: .75rem; font-weight: 900; }
.step h3, .step p { margin: 0; }
.step p { color: var(--muted); }

.window-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.window { min-height: 310px; padding: 2rem; background: var(--paper); }
.window time, .window .when { display: block; margin-bottom: 4.2rem; color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.window p { color: var(--muted); }

.bank-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.big-number { font: 400 clamp(7rem, 15vw, 13rem)/.78 var(--serif); letter-spacing: -.07em; }
.big-number span { display: block; margin-top: 1.5rem; font: 900 .75rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.family-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2rem; border-top: 1px solid var(--line); }
.family-list div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.family-list div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }

.notice { padding: 1.5rem; border-left: 4px solid var(--yellow); background: var(--ivory); }
.dark .notice { background: #1a1c22; }
.notice strong { display: block; margin-bottom: .35rem; }
.notice p { margin: 0; }

.worksheet { background: var(--ivory); }
.worksheet-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 2rem; align-items: start; }
.form-card, .summary-card { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); background: var(--paper); }
.summary-card { position: sticky; top: 1rem; background: var(--ink); color: var(--paper); }
.field { margin-bottom: 1.45rem; }
.field label { display: block; margin-bottom: .45rem; font-weight: 900; }
.field small { display: block; margin-top: .4rem; color: var(--muted); }
input, textarea, select { width: 100%; min-height: 50px; border: 1px solid rgba(17,19,24,.45); background: #fff; color: var(--ink); padding: .75rem; font: inherit; }
textarea { min-height: 105px; resize: vertical; }
.summary-card h2 { font-size: 2.4rem; }
.summary-row { padding: 1rem 0; border-top: 1px solid rgba(251,250,246,.22); }
.summary-row strong { display: block; margin-bottom: .35rem; color: var(--yellow); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.summary-row p { margin: 0; color: #d5d1c8; }
.summary-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.summary-actions .button { font: inherit; font-weight: 900; }

.citation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.citation-card { padding: 2rem; border: 1px solid var(--line); background: var(--ivory); }
.citation-card p { margin-bottom: 0; color: var(--muted); overflow-wrap: anywhere; }
.timeline { border-top: 1px solid rgba(251,250,246,.24); }
.moment { display: grid; grid-template-columns: 3fr 7fr 2fr; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(251,250,246,.24); }
.moment time { color: var(--yellow); font-weight: 900; }
.moment p { margin: 0; color: #d5d1c8; }
.moment a { justify-self: end; border-bottom: 1px solid var(--yellow); font-weight: 900; }

.closing { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--yellow); }
.closing-grid { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(2rem, 6vw, 6rem); }
.closing h2 { max-width: 900px; margin-bottom: 1.5rem; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.02; }
.closing p { max-width: 800px; font-size: 1.15rem; }
.institution-note { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(17,19,24,.35); font-size: .92rem !important; }

.footer { padding: 3.5rem 0; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 2rem; align-items: end; }
.footer-brand { font: 400 2rem var(--serif); }
.footer p { margin: .4rem 0 0; color: #bbb7ad; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.footer-meta { color: #bbb7ad; text-align: right; font-size: .85rem; }

@media (max-width: 1020px) {
  :root { --shell: min(100% - 44px, 1240px); }
  .menu-button { display: block; }
  .header-row { min-height: 78px; flex-wrap: wrap; }
  .nav { display: none; width: 100%; padding: 0 0 1.4rem; }
  .nav.open { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-grid, .section-head, .thesis-grid, .bank-grid, .closing-grid { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .dimensions { grid-template-columns: repeat(2, 1fr); }
  .dimensions .dimension:last-child { grid-column: span 2; }
  .worksheet-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 700px) {
  :root { --shell: calc(100% - 32px); }
  body { font-size: 16px; }
  .brand small { display: none; }
  .hero h1 { font-size: 3.25rem; }
  .actions { flex-direction: column; }
  .two-col, .three-col, .pathways, .levels, .dimensions, .window-grid, .family-list, .citation-grid { grid-template-columns: 1fr; }
  .dimensions .dimension:last-child { grid-column: auto; }
  .pathway, .level, .dimension, .window { min-height: auto; }
  .pathway .label, .level .num, .dimension span, .window .when { margin-bottom: 2.3rem; }
  .step { grid-template-columns: 48px 1fr; }
  .step h3, .step p { grid-column: 2; }
  .family-list div:nth-child(even) { padding-left: 0; border-left: 0; }
  .moment { grid-template-columns: 1fr; gap: .5rem; }
  .moment a { justify-self: start; }
}

@media print {
  .site-header, .footer, .subhero, .worksheet .section-head, .form-card, .summary-actions { display: none !important; }
  body { background: white; color: black; }
  .worksheet { background: white; padding: 0; }
  .worksheet-layout { display: block; }
  .summary-card { border: 0; background: white; color: black; padding: 0; }
  .summary-card h2 { font-size: 2rem; }
  .summary-row { border-color: #aaa; }
  .summary-row strong, .summary-row p { color: black; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
