:root {
  --paper: #fff9ea;
  --paper-2: #f3ead7;
  --ink: #211a1e;
  --plum: #421d35;
  --plum-2: #2f1426;
  --yellow: #f4c44e;
  --green: #90c7b2;
  --red: #d9543f;
  --blue: #9fc9e5;
  --muted: #6f6368;
  --line: #d5c7b6;
  --white: #fffefa;
  --ok: #165c48;
  --danger: #9f2d24;
  --shadow: 0 18px 50px rgb(47 20 38 / 12%);
  --step-1: clamp(.84rem, .8rem + .12vw, .94rem);
  --step-0: clamp(1rem, .96rem + .16vw, 1.12rem);
  --step-1p: clamp(1.18rem, 1.08rem + .42vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.28rem + .9vw, 2.15rem);
  --step-3: clamp(2rem, 1.55rem + 1.8vw, 3.3rem);
  --step-4: clamp(2.75rem, 2rem + 3vw, 5.4rem);
  --radius: 1.15rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .62; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  transform: translateY(-180%); padding: .7rem 1rem;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .75rem; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 65ch; font-size: var(--step-1p); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.tiny { font-size: .84rem; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.education-strip {
  background: var(--plum-2); color: var(--paper); padding: .55rem 1rem;
  text-align: center; font-size: .8rem; letter-spacing: .035em;
}
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 249 234 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-grid { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand-mark { position: relative; width: 42px; height: 42px; flex: 0 0 42px; border: 3px solid var(--plum); background: var(--yellow); box-shadow: 6px 6px 0 var(--green); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--plum); }
.brand-mark::before { width: 3px; inset: 5px auto 5px 12px; }
.brand-mark::after { height: 3px; inset: 20px 5px auto 5px; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: .88rem; letter-spacing: .055em; }
.brand-copy small { margin-top: .27rem; color: var(--muted); font-size: .7rem; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: .25rem; }
.main-nav a { padding: .68rem .8rem; text-decoration: none; font-size: .9rem; font-weight: 700; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--red); }
.header-action { display: inline-flex; align-items: center; justify-content: center; padding: .72rem .95rem; background: var(--plum); color: white; text-decoration: none; font-size: .87rem; font-weight: 800; border: 2px solid var(--plum); }
.menu-button { display: none; width: 46px; height: 46px; background: var(--paper); border: 2px solid var(--ink); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: .75rem 1rem 1rem; }
.mobile-nav[data-open="true"] { display: grid; }
.mobile-nav a { padding: .75rem; font-weight: 780; text-decoration: none; border-bottom: 1px solid var(--line); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0 32%, transparent 58%), repeating-linear-gradient(0deg, transparent 0 31px, rgb(66 29 53 / 5%) 32px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 700px; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 5.5rem 2rem 5rem 0; }
.hero h1 { max-width: 10ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: var(--step-4); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--red); font-style: italic; font-weight: 400; }
.hero-copy .lede { max-width: 35rem; color: var(--ink); }
.hero-art { align-self: stretch; display: flex; align-items: center; }
.hero-art img { width: 100%; max-height: 700px; object-fit: cover; object-position: center; border-left: 1px solid var(--line); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.15rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; font-weight: 850; box-shadow: 4px 4px 0 var(--ink); transition: transform .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--yellow); }
.btn--dark { background: var(--plum); border-color: var(--plum); color: white; box-shadow-color: var(--green); }
.btn--soft { background: var(--green); }
.hero-note { margin: 1.1rem 0 0; font-size: .88rem; color: var(--muted); }

.identity-rail { background: var(--plum); color: var(--paper); }
.identity-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.identity-grid div { padding: 1.35rem; border-right: 1px solid rgb(255 255 255 / 18%); }
.identity-grid span { display: block; margin-bottom: .3rem; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.identity-grid strong { font-size: .9rem; }

.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.section--plum { background: var(--plum); color: var(--paper); }
.section--green { background: var(--green); }
.section--yellow { background: var(--yellow); }
.section--paper2 { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.66fr); align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 15ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: var(--step-3); line-height: 1.08; letter-spacing: -.025em; }
.section-head p:last-child { margin: 0; }

.box-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.box-card { min-height: 270px; padding: 1.35rem; background: var(--white); border-right: 2px solid var(--ink); display: flex; flex-direction: column; }
.box-card:last-child { border-right: 0; }
.box-card:nth-child(2) { background: #efe6ff; }
.box-card:nth-child(3) { background: #dcefe7; }
.box-card:nth-child(4) { background: #fde0d7; }
.box-card .num { font-size: 2.5rem; font-family: Georgia,serif; color: var(--plum); }
.box-card h3 { margin: auto 0 .5rem; font-size: var(--step-1p); line-height: 1.15; }
.box-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.lab-shell { border: 2px solid currentColor; box-shadow: 12px 12px 0 var(--yellow); }
.lab-top { display: grid; grid-template-columns: .65fr 1.35fr; border-bottom: 2px solid currentColor; }
.lab-intro { padding: 2rem; border-right: 2px solid currentColor; }
.lab-intro h2 { margin: 0 0 .8rem; font-family: Georgia,serif; font-size: var(--step-3); line-height: 1; }
.lab-stage { min-height: 390px; padding: 2rem; background: var(--paper); color: var(--ink); }
.question-deck { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
.question-card { min-height: 205px; padding: 1.2rem; border: 2px solid var(--ink); background: var(--white); box-shadow: 7px 7px 0 var(--green); display: flex; flex-direction: column; }
.question-card:nth-child(2) { box-shadow-color: var(--red); transform: rotate(-1deg); }
.question-card:nth-child(3) { box-shadow-color: var(--yellow); transform: rotate(1deg); }
.question-card span { font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.question-card strong { margin: auto 0; font-family: Georgia,serif; font-size: 1.22rem; line-height: 1.3; }
.lab-controls { display: flex; flex-wrap: wrap; gap: .75rem; }
.lab-note { padding: 1.2rem 2rem; font-size: .88rem; color: var(--paper); }

.program-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.program-card { position: relative; min-height: 370px; padding: 1.6rem; border: 2px solid var(--ink); background: var(--white); display: flex; flex-direction: column; overflow: hidden; }
.program-card::before { content: ""; position: absolute; width: 115px; height: 115px; right: -25px; top: -25px; border: 22px solid var(--green); border-radius: 50%; opacity: .6; }
.program-card:nth-child(2)::before { border-color: var(--yellow); }
.program-card:nth-child(3)::before { border-color: var(--red); }
.program-card h3 { max-width: 12ch; margin: 2rem 0 .75rem; font-family: Georgia,serif; font-size: var(--step-2); line-height: 1.08; }
.program-card p { color: var(--muted); }
.program-card a { margin-top: auto; font-weight: 850; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tool { padding: 1.5rem; border: 2px solid var(--ink); background: var(--white); box-shadow: 7px 7px 0 var(--line); }
.tool h3 { margin: 0; font-size: var(--step-2); line-height: 1.1; }
.tool .tool-intro { color: var(--muted); }
.tool-field { margin: 1rem 0; }
.tool-field label, .tool-field legend { display: block; margin-bottom: .4rem; font-weight: 800; }
.tool-field input[type="range"] { width: 100%; accent-color: var(--plum); }
.range-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.output { margin-top: 1rem; padding: 1rem; background: var(--paper-2); border-left: 6px solid var(--red); }
.output strong { display: block; margin-bottom: .25rem; }
.nested-stage { position: relative; min-height: 260px; margin: 1rem 0; }
.nest { position: absolute; inset: 0; padding: 1rem; border: 3px solid var(--plum); background: rgb(244 196 78 / 18%); transition: .2s ease; }
.nest--2 { inset: 46px 34px 34px 46px; border-color: var(--red); background: rgb(217 84 63 / 12%); }
.nest--3 { inset: 92px 68px 68px 92px; border-color: var(--green); background: rgb(144 199 178 / 28%); }
.nest[hidden] { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: .75rem; }
.check-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .58rem .75rem; border: 2px solid var(--ink); background: var(--paper); }

.shelf { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.25rem; }
.evidence-cards { display: grid; gap: .65rem; }
.evidence-card { width: 100%; min-height: 52px; padding: .65rem .8rem; text-align: left; border: 2px solid var(--ink); background: var(--white); }
.evidence-card[aria-pressed="true"] { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.trays { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; }
.tray { min-height: 135px; padding: .8rem; border: 2px dashed var(--ink); background: var(--paper-2); text-align: left; }
.tray strong { display: block; margin-bottom: .35rem; }
.tray span { display: block; font-size: .85rem; color: var(--muted); }
.tray-count { margin-top: .45rem; color: var(--plum)!important; font-weight: 850; }

.quiz-shell { display: grid; grid-template-columns: .55fr 1.45fr; border: 2px solid var(--ink); }
.quiz-aside { padding: 1.5rem; background: var(--yellow); border-right: 2px solid var(--ink); }
.quiz-panel { padding: 1.5rem; background: var(--white); }
.quiz-options { display: grid; gap: .65rem; margin: 1rem 0; }
.quiz-option { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem; border: 2px solid var(--line); }
.quiz-option:has(input:checked) { border-color: var(--plum); background: #f2e8ef; }
.progress { height: 8px; background: rgb(33 26 30 / 16%); }
.progress span { display: block; width: 33%; height: 100%; background: var(--plum); transition: width .2s ease; }

.method-photo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.method-photo img { border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--green); }
.method-steps { counter-reset: step; display: grid; gap: .75rem; }
.method-steps li { list-style: none; display: grid; grid-template-columns: 48px 1fr; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.method-steps li::before { counter-increment: step; content: counter(step,decimal-leading-zero); font-family: Georgia,serif; font-size: 1.4rem; color: var(--red); }

.boundary { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.boundary > div { padding: 1.7rem; }
.boundary > div:first-child { background: var(--green); border-right: 2px solid var(--ink); }
.boundary > div:last-child { background: #f1ddd8; }
.boundary h3 { font-family: Georgia,serif; font-size: var(--step-2); margin-top: 0; }
.boundary ul { padding-left: 1.2rem; }

.lead-panel { display: grid; grid-template-columns: .85fr 1.15fr; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--red); }
.lead-copy { padding: 2rem; background: var(--plum); color: var(--paper); }
.lead-copy h2 { margin: 0; font-family: Georgia,serif; font-size: var(--step-3); line-height: 1.08; }
.lead-form { padding: 2rem; background: var(--white); }
.lead-form label { display: block; margin-bottom: .45rem; font-weight: 850; }
.lead-row { display: flex; gap: .55rem; }
.lead-row input { min-width: 0; flex: 1; min-height: 50px; padding: .75rem; border: 2px solid var(--ink); background: var(--paper); }
.form-note, .form-status { font-size: .84rem; }
.form-status { padding: .75rem; border-left: 5px solid var(--red); background: #f8e6e2; }
.honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }

.page-hero { padding: clamp(4rem,7vw,7rem) 0 3rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 86% 10%, rgb(244 196 78 / 42%), transparent 30%), var(--paper); }
.page-hero h1 { max-width: 17ch; margin: 0; font-family: Georgia,serif; font-size: var(--step-4); line-height: 1; letter-spacing: -.035em; }
.page-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 3rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; font-family: Georgia,serif; font-size: var(--step-2); line-height: 1.2; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { max-width: 72ch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th,.prose td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.side-index { align-self: start; position: sticky; top: 110px; padding: 1rem; border: 2px solid var(--ink); background: var(--white); }
.side-index strong { display: block; margin-bottom: .6rem; }
.side-index a { display: block; padding: .4rem 0; font-size: .88rem; }
.callout { padding: 1.2rem; border: 2px solid var(--ink); background: var(--green); box-shadow: 6px 6px 0 var(--yellow); }
.resource-list { display: grid; gap: 1rem; }
.resource { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 1rem; padding: 1.2rem; border: 2px solid var(--ink); background: var(--white); }
.resource .tag { font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.faq details { border-top: 2px solid var(--ink); padding: 1rem 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 850; font-size: 1.1rem; }

.site-footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 2rem; }
.footer-grid h2 { margin: 0 0 .65rem; font-size: .8rem; color: var(--green); text-transform: uppercase; letter-spacing: .11em; }
.footer-grid a { display: block; width: fit-content; margin: .4rem 0; color: var(--paper); font-size: .9rem; }
.footer-grid .brand-copy small { color: var(--green); }
.footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 18%); font-size: .8rem; color: #d9d0c1; }
.cookie-open { margin-top: .75rem; padding: .5rem .7rem; border: 1px solid var(--paper); background: transparent; color: var(--paper); }

.cookie-banner { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 120; max-width: 780px; margin-inline: auto; padding: 1rem; border: 2px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 var(--plum); }
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.cookie-actions button { min-height: 44px; padding: .55rem .8rem; border: 2px solid var(--ink); background: var(--paper); font-weight: 800; }
.cookie-actions .primary { background: var(--yellow); }
dialog { width: min(560px,calc(100% - 2rem)); border: 2px solid var(--ink); background: var(--white); color: var(--ink); box-shadow: 12px 12px 0 var(--plum); }
dialog::backdrop { background: rgb(33 26 30 / 62%); }
.dialog-close { float: right; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--paper); }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .main-nav,.header-action { display: none; }
  .header-grid { grid-template-columns: 1fr auto; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 4.5rem 0 2rem; }
  .hero-art img { max-height: 520px; border: 1px solid var(--line); }
  .identity-grid { grid-template-columns: 1fr 1fr; }
  .box-grid { grid-template-columns: 1fr 1fr; }
  .box-card:nth-child(2) { border-right: 0; }
  .box-card:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .program-strip { grid-template-columns: 1fr; }
  .program-card { min-height: 310px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .section-head,.lab-top,.tool-grid,.method-photo,.lead-panel,.page-grid,.shelf,.quiz-shell { grid-template-columns: 1fr; }
  .lab-intro,.quiz-aside { border-right: 0; border-bottom: 2px solid currentColor; }
  .question-deck { grid-template-columns: 1fr; }
  .question-card { min-height: 150px; }
  .method-photo img { order: -1; }
  .side-index { position: static; }
  .boundary { grid-template-columns: 1fr; }
  .boundary > div:first-child { border-right: 0; border-bottom: 2px solid var(--ink); }
  .resource { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-copy strong { font-size: .72rem; }
  .brand-copy small { display: none; }
  .hero h1 { font-size: clamp(2.7rem,13vw,4rem); }
  .identity-grid,.box-grid,.trays,.footer-grid { grid-template-columns: 1fr; }
  .identity-grid div { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 18%); }
  .box-card { border-right: 0; border-bottom: 2px solid var(--ink); }
  .box-card:last-child { border-bottom: 0; }
  .lead-row { flex-direction: column; }
  .lab-shell,.lead-panel { box-shadow: 6px 6px 0 var(--red); }
  .nested-stage { min-height: 300px; }
  .nest--2 { inset: 55px 22px 30px 35px; }
  .nest--3 { inset: 110px 45px 60px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}
