/* Project Reach - shared styles */
:root {
  --ink: #1e2329;
  --ink-soft: #4a525b;
  --paper: #ffffff;
  --wash: #eef2ef;
  --line: #d3dbd6;
  --pencil: #f4c430;
  --pencil-deep: #d9a90f;
  --forest: #1f5a48;
  --forest-deep: #153f33;
  --math: #2a5db0;
  --rla: #b23a2e;
  --sci: #2e7d4f;
  --ss: #6b3fa0;
  --focus: #1a64d6;
  --radius-s: 6px;
  --radius-m: 10px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --measure: 68ch;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--space-2); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 var(--space-2); max-width: var(--measure); }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-2); }
li { margin-bottom: .35rem; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.small { font-size: .92rem; color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section--wash { background: var(--wash); }
.section--tight { padding-block: var(--space-5); }
.section-head { margin-bottom: var(--space-4); }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-list li { margin: 0; }
.nav-list a { display: block; padding: .55rem .8rem; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav-list a:hover { background: var(--wash); color: var(--ink); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pencil); border-radius: 0; }
.nav-list .nav-cta a { background: var(--pencil); margin-left: .4rem; }
.nav-list .nav-cta a:hover { background: var(--pencil-deep); }
.nav-toggle { display: none; align-items: center; gap: .5rem; font: inherit; font-weight: 700; background: none; border: 2px solid var(--ink); border-radius: var(--radius-s); padding: .4rem .8rem; cursor: pointer; color: var(--ink); }
.nav-toggle-bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  .nav-list a { padding: .85rem .5rem; border-bottom: 1px solid var(--wash); border-radius: 0; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--pencil); padding-left: 1rem; }
  .nav-list .nav-cta a { margin: .75rem 0 0; text-align: center; border-radius: var(--radius-s); border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border-radius: var(--radius-s); border: 2px solid var(--ink); font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; cursor: pointer; color: var(--ink); background: transparent; }
.btn:hover { text-decoration: none; color: var(--ink); background: var(--wash); }
.btn--primary { background: var(--pencil); border-color: var(--pencil); }
.btn--primary:hover { background: var(--pencil-deep); border-color: var(--pencil-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { font-weight: 700; }

/* Hero */
.hero { padding-block: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--paper), var(--paper)) padding-box; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-5); align-items: center; }
.hero h1 { margin-bottom: var(--space-3); max-width: 13ch; }
.hero .lede { max-width: 46ch; margin-bottom: var(--space-4); }
.hero-more { margin-top: var(--space-3); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

/* Answer sheet (signature element) */
.sheet { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-m); padding: var(--space-3) var(--space-3) var(--space-2); box-shadow: 8px 8px 0 var(--pencil); max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .sheet { justify-self: start; } }
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .9rem; font-weight: 800; }
.sheet-title span:last-child { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.sheet-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.sheet-row:last-of-type { border-bottom: 0; }
.sheet-subject { font-weight: 700; line-height: 1.25; }
.sheet-subject small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.bubbles { display: flex; gap: .45rem; }
.bubble { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--ink-soft); background: #fff; }
.bubble.is-filled { color: transparent; border-color: var(--c); background: var(--c); }
.sheet-foot { margin: .9rem 0 0; font-size: .92rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .bubble.is-filled { animation: fill .45s ease-out both; animation-delay: calc(var(--i) * 180ms + 250ms); }
  @keyframes fill { from { background: #fff; border-color: var(--ink); color: var(--ink-soft); transform: scale(.85); } to { transform: scale(1); } }
}

/* Status note */
.status { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--wash); border-left: 6px solid var(--forest); padding: 1.1rem 1.35rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--forest); margin-top: .45rem; box-shadow: 0 0 0 4px rgba(31,90,72,.2); }
.status p { margin: 0; }
.status strong { color: var(--forest-deep); }

/* Two offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.offer { padding-top: var(--space-3); border-top: 4px solid var(--ink); }
.offer--pilot { border-top-color: var(--pencil); }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .75rem; }
.tag--live { background: #dcefe5; color: #14513a; }
.tag--pilot { background: #fdf0c4; color: #6b5100; }
.tag--soon { background: var(--wash); color: var(--ink-soft); }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.steps li { counter-increment: step; margin: 0; padding-top: 3.25rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; background: #fff; }
.steps li:first-child::before { background: var(--pencil); border-color: var(--pencil); }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.callout { margin-top: var(--space-4); padding: 1rem 1.25rem; border: 2px dashed var(--ink); border-radius: var(--radius-s); max-width: 760px; }
.callout p { margin: 0; }

/* Paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.path { padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; border-right: 2px solid var(--ink); }
.path:last-child { border-right: 0; }
.path p { flex: 1; color: var(--ink-soft); }
.path .btn { align-self: flex-start; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { border-right: 0; border-bottom: 2px solid var(--ink); } .path:last-child { border-bottom: 0; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.split--wide-left { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; gap: var(--space-4); } }

/* Founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.monogram { width: 76px; height: 76px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.facts li { padding: .75rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts li:first-child { border-top: 1px solid var(--line); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 var(--space-3) var(--space-3); margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: .3rem; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--forest); }
.timeline li.is-done::before { background: var(--forest); }
.timeline li.is-next::before { border-style: dashed; border-color: var(--ink-soft); }
.timeline time, .timeline .when { display: block; font-weight: 700; color: var(--forest-deep); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3d8dd; }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn:hover { background: rgba(255,255,255,.1); }
.cta-band .btn--primary { color: var(--ink); border-color: var(--pencil); }
.cta-band .btn--primary:hover { background: var(--pencil-deep); }

/* Page intro */
.page-intro { padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); max-width: 18ch; }
.page-intro .lede { max-width: 58ch; }
.crumb { font-weight: 700; color: var(--forest); margin-bottom: .75rem; display: inline-block; }

/* Lists with marks */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--forest); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--forest); }
.crosses li::before { background: #fff; box-shadow: 0 0 0 2px var(--ink-soft); }

.panel { border: 2px solid var(--ink); border-radius: var(--radius-m); padding: var(--space-3); background: #fff; }
.panel--wash { background: var(--wash); border-color: var(--wash); }
.panel h3:first-child, .panel h2:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Sessions */
.sessions { display: grid; gap: var(--space-2); }
.session { border: 2px solid var(--ink); border-radius: var(--radius-m); padding: var(--space-3); display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); align-items: center; }
.session-meta { margin: .25rem 0 0; color: var(--ink-soft); }
.session-subject { display: inline-block; font-weight: 700; font-size: .9rem; color: #fff; padding: .15rem .55rem; border-radius: var(--radius-s); background: var(--c, var(--ink)); margin-bottom: .5rem; }
@media (max-width: 640px) { .session { grid-template-columns: 1fr; } }
.empty { border: 2px dashed var(--line); border-radius: var(--radius-m); padding: var(--space-4) var(--space-3); text-align: left; }
.empty p { margin-bottom: var(--space-2); }

/* Forms */
.form { display: grid; gap: var(--space-3); max-width: 760px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: .35rem; }
.form-group { display: grid; gap: .35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 700; }
.req { color: var(--rla); font-weight: 700; }
.opt { font-weight: 400; color: var(--ink-soft); }
.hint { font-size: .93rem; color: var(--ink-soft); margin: 0; max-width: 60ch; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=search], input[type=number], select, textarea {
  font: inherit; color: var(--ink); width: 100%; padding: .7rem .85rem; border: 2px solid #8b949c; border-radius: var(--radius-s); background: #fff; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(26,100,214,.25); outline-offset: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border: 2px solid #8b949c; border-radius: 999px; font-weight: 600; cursor: pointer; background: #fff; min-height: 2.8rem; }
.choice span::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--ink); flex: none; background: #fff; }
.choice input[type=checkbox] + span::before { border-radius: 4px; }
.choice input:checked + span { border-color: var(--ink); background: #fff8dc; }
.choice input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.is-invalid input, .is-invalid select, .is-invalid textarea, .is-invalid .choice span { border-color: var(--rla); }
.field-error { color: var(--rla); font-weight: 700; font-size: .95rem; margin: 0; }
.field-error:empty { display: none; }
.form-summary { border: 2px solid var(--rla); border-radius: var(--radius-s); padding: 1rem 1.25rem; background: #fdf1ef; }
.form-summary[hidden] { display: none; }
.form-summary ul { margin: .5rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.conditional[hidden] { display: none; }
.form-note { background: var(--wash); border-radius: var(--radius-s); padding: 1rem 1.2rem; }
.form-note p { margin: 0; }

.confirm { border: 2px solid var(--forest); border-radius: var(--radius-m); padding: var(--space-4) var(--space-3); background: #f2f8f5; max-width: 760px; }
.confirm h2 { font-size: 1.75rem; }
.confirm ol { margin-bottom: var(--space-3); }
.confirm pre { white-space: pre-wrap; font-family: var(--font); font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem; max-height: 16rem; overflow: auto; }

/* Resource library */
.lib-tools { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.lib-search { max-width: 520px; }
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-group > span { font-weight: 700; margin-right: .25rem; }
.chip { font: inherit; font-weight: 600; padding: .5rem .95rem; border-radius: 999px; border: 2px solid #8b949c; background: #fff; cursor: pointer; color: var(--ink); min-height: 2.6rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[data-subject="math"][aria-pressed="true"] { background: var(--math); border-color: var(--math); }
.chip[data-subject="rla"][aria-pressed="true"] { background: var(--rla); border-color: var(--rla); }
.chip[data-subject="science"][aria-pressed="true"] { background: var(--sci); border-color: var(--sci); }
.chip[data-subject="social"][aria-pressed="true"] { background: var(--ss); border-color: var(--ss); }
.lib-count { font-weight: 700; margin: 0 0 var(--space-2); }
.lib-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-2); }
.res { margin: 0; border: 1px solid var(--line); border-left: 6px solid var(--c, var(--ink)); border-radius: var(--radius-s); padding: 1.1rem 1.2rem; background: #fff; display: flex; flex-direction: column; }
.res h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.res h3 a { color: var(--ink); text-decoration: none; }
.res h3 a:hover { text-decoration: underline; }
.res-source { font-size: .9rem; color: var(--ink-soft); margin-bottom: .6rem; }
.res p { font-size: .97rem; flex: 1; }
.res-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.res-meta li { margin: 0; font-size: .82rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--wash); color: var(--ink-soft); }
.res-meta li.is-official { background: #e2ebfa; color: #1d417d; }
.res-meta li.is-free { background: #dcefe5; color: #14513a; }
.res-meta li.is-paid { background: #fdf0c4; color: #6b5100; }
.lib-empty { padding: var(--space-3); border: 2px dashed var(--line); border-radius: var(--radius-m); }

.fact-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fact-table th, .fact-table td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { font-weight: 700; }
.fact-table thead th { border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.subject-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); margin-right: .45rem; vertical-align: middle; }

/* Footer */
.site-footer { background: var(--forest-deep); color: #d9e6e0; padding-block: var(--space-5) var(--space-4); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.footer-grid h2 { font-size: 1.05rem; color: #fff; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: #fff; text-decoration: none; margin-bottom: .75rem; }
.footer-legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: #b9cdc4; }
.footer-legal p { max-width: none; margin-bottom: .4rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); } }

@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
}
