/* Doing More Together — one stylesheet, no framework.
   Day (paper) for the idea and the evidence, night (indigo) for the Make Nights. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --paper-2: #ece5d6;
  --ink: #1b1a17;
  --ink-2: #55514a;
  --night: #15172b;
  --night-2: #20233f;
  --lamp: #ffc94a;
  --coral: #d9482f;
  --line: #d8cfbd;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.9rem, 10vw, 7rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.mark { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.mark span { background: linear-gradient(transparent 62%, var(--lamp) 62%); }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-size: 0.82rem; font-weight: 600; flex: none; }
.lang a { padding: 5px 11px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- status line ---------- */
.status { background: var(--ink); color: var(--paper); font-size: 0.9rem; }
.status .wrap { padding-top: 9px; padding-bottom: 9px; }
.status p { max-width: none; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero .kicker { font-weight: 600; letter-spacing: 0.02em; margin-bottom: 18px; color: var(--ink-2); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 68%, var(--lamp) 68%); }
.hero .lede { font-size: clamp(1.25rem, 2.6vw, 1.85rem); line-height: 1.36; max-width: 30ch; margin: 6px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: clamp(28px, 5vw, 56px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero .lede { max-width: 40ch; } }

.picture { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picture > div { background: var(--paper-2); border-radius: 18px; padding: 16px 14px 14px; }
.picture > div.after { background: var(--night); color: var(--paper); }
.picture svg { width: 100%; height: auto; display: block; }
.picture b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; margin-top: 10px; }
.picture span { display: block; font-size: 0.9rem; line-height: 1.4; margin-top: 4px; opacity: 0.82; }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.door {
  display: block; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 18px;
  padding: 18px 20px 20px; background: var(--paper); transition: background 0.15s, color 0.15s;
}
.door:hover { background: var(--ink); color: var(--paper); }
.door small { display: block; font-size: 0.85rem; font-weight: 600; opacity: 0.7; }
.door b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; margin: 4px 0 8px; }
.door span { font-size: 0.95rem; line-height: 1.45; display: block; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ---------- generic sections ---------- */
section { padding: clamp(48px, 8vw, 104px) 0; }
.eyebrow { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--coral); margin: 0 0 14px; }
.intro { font-size: 1.2rem; line-height: 1.5; margin-top: 20px; }
.rule { border-top: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 36px; }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cols, .cols3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cols4 { grid-template-columns: 1fr; } }
.card { border-top: 3px solid var(--ink); padding-top: 14px; }
.card p { font-size: 1rem; margin-top: 8px; }
.note { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- what students told us ---------- */
.told { background: var(--paper-2); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 40px; }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr; } }
.figure .n { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -0.03em; }
.figure .n.pair { font-size: clamp(2.3rem, 4.4vw, 3.3rem); white-space: nowrap; padding: 0.22em 0; }
.figure .n small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; }
.figure h3 { margin-top: 10px; }
.figure p { font-size: 1rem; margin-top: 8px; }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 14px; max-width: 260px; }
.split i { display: block; }
.split .a { background: var(--ink); }
.split .b { background: var(--coral); }
.quote { margin: 48px 0 0; padding: 22px 24px; border-left: 4px solid var(--coral); background: var(--paper); border-radius: 0 14px 14px 0; max-width: 760px; }
.quote p { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.25; max-width: none; margin: 0; }
.quote footer { font-size: 0.9rem; color: var(--ink-2); margin-top: 10px; }

/* ---------- night (students) ---------- */
.night { background: var(--night); color: var(--paper); }
.night .eyebrow { color: var(--lamp); }
.night .card { border-top-color: var(--lamp); }
.night .note { color: #b9b7c9; }
.night a:focus-visible { outline-color: var(--lamp); }
.evening { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.evening li { background: var(--night-2); border-radius: 14px; padding: 16px 14px 18px; counter-increment: step; }
.evening li::before { content: counter(step); font-family: var(--display); font-weight: 700; color: var(--night); background: var(--lamp); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; margin-bottom: 12px; }
.evening b { display: block; font-family: var(--display); font-size: 1.08rem; line-height: 1.2; }
.evening span { display: block; font-size: 0.92rem; line-height: 1.45; margin-top: 6px; color: #d5d3e0; }
/* five steps: one row on desktop, 3 + 2 on tablet with the last step filling its row */
@media (max-width: 1040px) { .evening { grid-template-columns: repeat(3, 1fr); } .evening li:last-child { grid-column: span 2; } }
@media (max-width: 620px) { .evening { grid-template-columns: 1fr; } .evening li:last-child { grid-column: auto; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { border: 1.5px solid #4a4d70; border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }

.practices { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #3a3d5e; }
.practices li { display: grid; grid-template-columns: 300px minmax(0, 1fr) 190px; gap: 8px 28px; padding: 14px 0; border-bottom: 1px solid #3a3d5e; align-items: baseline; }
.practices b { font-family: var(--display); font-size: 1.08rem; }
.practices span { font-size: 0.98rem; color: #d5d3e0; }
.practices em { font-style: normal; font-size: 0.82rem; color: var(--lamp); text-align: right; }
@media (max-width: 900px) { .practices li { grid-template-columns: 1fr; gap: 4px; } .practices em { text-align: left; } }

.cta { margin-top: 44px; padding: 24px 26px; border-radius: 18px; background: var(--lamp); color: var(--night); max-width: 760px; }
.cta h3 { font-size: 1.45rem; }
.cta p { margin: 8px 0 0; }
.cta a { font-weight: 700; }

/* ---------- teachers ---------- */
.activity { background: var(--paper-2); border-radius: 16px; padding: 20px 22px 22px; }
.activity p { font-size: 1rem; margin: 8px 0 0; }
.research { margin: 36px 0 0; padding: 0; list-style: none; max-width: 820px; }
.research li { padding: 14px 0; border-top: 1px solid var(--line); }
.research cite { font-style: normal; color: var(--ink-2); font-size: 0.92rem; }

/* ---------- council ---------- */
.council { background: var(--paper-2); }
.loops { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.loop { background: var(--paper); border-radius: 16px; padding: 18px 18px 20px; }
.loop small { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); }
.loop h3 { margin: 6px 0 8px; }
.loop p { font-size: 0.95rem; margin: 0 0 8px; }
.loop p b { font-weight: 650; }
@media (max-width: 980px) { .loops { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .loops { grid-template-columns: 1fr; } }

.budget { margin: 32px 0 0; padding: 0; list-style: none; max-width: 860px; }
.budget li { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.budget .what { font-weight: 600; }
.budget .what small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.9rem; }
.budget .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.budget .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--ink-2); }
.budget .bar.students { background: var(--coral); }
.budget li.total { border-top: 2px solid var(--ink); font-family: var(--display); font-size: 1.2rem; }
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9rem; margin-top: 16px; }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

.chain { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chain > div { background: var(--paper); border-radius: 16px; padding: 18px; position: relative; }
.chain > div.end { background: var(--ink); color: var(--paper); }
.chain small { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); }
.chain > div.end small { color: var(--lamp); }
.chain ul { margin: 10px 0 0; padding-left: 1.1em; font-size: 0.96rem; }
.chain li { margin-bottom: 4px; }
.chain p { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; margin: 10px 0 0; }
@media (max-width: 980px) { .chain { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chain { grid-template-columns: 1fr; } }

.timeline { margin: 32px 0 0; padding: 0; list-style: none; max-width: 860px; }
.timeline li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline b { font-family: var(--display); }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; } }

details { border-top: 1px solid var(--line); max-width: 860px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 650; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; flex: none; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 20px; }
details ul, details ol { padding-left: 1.2em; max-width: var(--measure); }
details li { margin-bottom: 8px; }
.sub { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- people + footer ---------- */
.people { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.people li { padding: 12px 0; border-top: 1px solid var(--line); }
.people b { display: block; font-family: var(--display); }
.people span { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

footer.site { background: var(--ink); color: var(--paper); padding: 40px 0 48px; font-size: 0.95rem; }
footer.site p { max-width: 70ch; }
footer.site .mark { font-size: 1.3rem; display: inline-block; margin-bottom: 14px; }
footer.site .mark span { background: none; color: var(--lamp); }

.sub > h3 + p { margin-top: 10px; }

.hero .lede-2 { font-size: 1.12rem; line-height: 1.5; max-width: 40ch; margin: 20px 0 0; color: var(--ink-2); }
.h2s { font-size: clamp(1.5rem, 3.2vw, 2.2rem); max-width: 24ch; }

/* ---------- commitments and aims ---------- */
.pledge { margin-top: 36px; }
.pledge .card ol, .pledge .card ul { margin: 12px 0 0; padding-left: 1.25em; max-width: var(--measure); }
.pledge .card li { margin-bottom: 8px; }
.pledge .card + .card { border-top-color: var(--coral); }
.scale { margin-top: 28px; max-width: 860px; padding: 18px 20px; background: var(--paper); border-radius: 14px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.btn:hover { background: var(--coral); border-color: var(--coral); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- the proposal page: a document to read ---------- */
.doc { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); margin-top: 8px; }
.doc .intro { max-width: 46ch; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; max-width: none; margin: 22px 0 0; }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.toc { border: 0; max-width: none; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; font-size: 0.92rem; }
.toc summary { padding: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.09em; text-transform: uppercase; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: flex; gap: 0.3em; padding: 5px 0; text-decoration: none; line-height: 1.3; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc .toc-section-number { flex: none; min-width: 1.7em; font-variant-numeric: tabular-nums; }
@media (min-width: 980px) { .toc summary { pointer-events: none; } .toc summary::after { content: none; } }
@media (max-width: 979px) {
  .doc-grid { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .toc summary { padding: 14px 0; }
  .toc nav { padding-bottom: 12px; }
}

.prose { max-width: 76ch; min-width: 0; }
.prose p, .prose ul, .prose ol { max-width: none; }
.prose > :first-child { margin-top: 0; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2em 0 0.6em; padding-top: 0.9em; border-top: 3px solid var(--ink); scroll-margin-top: 72px; }
.prose h3 { margin: 1.8em 0 0.5em; scroll-margin-top: 72px; }
.prose .header-section-number { color: var(--coral); margin-right: 0.35em; font-variant-numeric: tabular-nums; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose figure { margin: 1.5em 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 8px; }
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.94rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--display); font-weight: 650; border-bottom: 2px solid var(--ink); }
.prose td:last-child, .prose th:last-child { padding-right: 0; }
.prose h2#references ~ p { font-size: 0.93rem; padding-left: 1.6em; text-indent: -1.6em; }
