:root {
  --ink: #171923;
  --paper: #fafaf7;
  --surface: #f0eee7;
  --surface-strong: #ffffff;
  --accent: #2d5f8a;
  --accent-soft: #dce9f3;
  --rule: rgba(23,25,35,.18);
  --rule-strong: rgba(23,25,35,.36);
  --muted: rgba(23,25,35,.66);
  --serif: "Source Serif 4", serif;
  --sans: "Source Sans 3", sans-serif;
  --mono: "JetBrains Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.58; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
body > .hero, body > .band, .crumb { max-width: 1120px; margin: 0 auto; }
.hero { padding: 5rem 1.25rem 3rem; border-bottom: 1px solid var(--rule); }
.year11-hero { min-height: 48vh; display: flex; flex-direction: column; justify-content: center; }
.hero h1, .lesson-hero h1, .handout h1 { max-width: 13ch; margin: .1rem 0 .8rem; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .9; letter-spacing: 0; }
.hero p, .lesson-hero p { max-width: 48rem; font-size: 1.2rem; color: var(--muted); }
.eyebrow { margin: 0 0 .8rem; font-family: var(--sans); font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); }
.crumb { padding: 1rem 1.25rem 0; display: flex; gap: .7rem; font-family: var(--sans); color: var(--muted); }
.crumb span::before { content: "/"; margin-right: .7rem; color: var(--rule-strong); }
.band { padding: 2.2rem 1.25rem; border-bottom: 1px solid var(--rule); }
.band h2 { margin: 0 0 1rem; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.module-link { display: grid; gap: .35rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.module-link span, .asset-row p, .resource-panel h3 { margin: 0; font-family: var(--sans); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.module-link strong { font-size: 1.9rem; line-height: 1.05; }
.module-link small { font-family: var(--sans); color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; }
th, td { border-top: 1px solid var(--rule); padding: .72rem .65rem; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.sequence-table h3 { margin: 1.5rem 0 .3rem; font-family: var(--serif); font-size: 1.45rem; }
.asset-list { border-top: 1px solid var(--rule); }
.asset-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.asset-row h3 { margin: .15rem 0 0; font-size: 1.45rem; line-height: 1.1; }
.resource-links { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.resource-links a, .resource-button, .lecture-toolbar a { border: 1px solid var(--rule-strong); padding: .45rem .65rem; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; background: var(--surface-strong); }
.three-col { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 18rem; min-height: 100vh; }
.side-nav, .resource-panel { background: var(--surface); padding: 1rem; border-color: var(--rule); position: sticky; top: 0; height: 100vh; overflow: auto; }
.side-nav { border-right: 1px solid var(--rule); }
.resource-panel { border-left: 1px solid var(--rule); }
.side-nav a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); color: var(--muted); }
.side-nav a.active { color: var(--ink); font-weight: 700; }
.lesson-page { padding: 1.25rem min(4vw, 3rem) 4rem; }
.lesson-hero { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.lesson-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.rendered-content { max-width: 920px; }
.rendered-content h2 { margin: 2rem 0 .7rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .18em; }
.rendered-content h3 { margin: 1.25rem 0 .35rem; font-family: var(--sans); font-size: 1rem; }
.rendered-content p, .rendered-content li { font-size: 1.04rem; }
.rendered-content blockquote { margin: 1rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.rendered-content code { font-family: var(--mono); font-size: .92em; background: var(--surface); padding: .05rem .22rem; }
.resource-panel h2 { margin: 0 0 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; }
.resource-button { display: block; margin: 0 0 .55rem; text-align: center; }
.resource-panel ul { padding-left: 1rem; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.print-surface { background: white; }
.handout { max-width: 880px; margin: 0 auto; padding: 2rem 1.25rem 4rem; background: white; }
.handout header { border-bottom: 2px solid var(--ink); margin-bottom: 1.4rem; }
.handout header p { font-family: var(--sans); color: var(--muted); }
.handout h1 { font-size: 3.1rem; }
.response-space h2 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.response-space div { min-height: 5rem; border-bottom: 1px solid var(--rule-strong); }
.lecture-surface { background: var(--paper); color: var(--ink); overflow: hidden; }
.lecture { min-height: 100vh; background: linear-gradient(90deg, var(--surface) 0, var(--surface) 6rem, var(--paper) 6rem); }
.lecture-toolbar { position: fixed; left: 0; right: 0; top: 0; z-index: 3; min-height: 3.6rem; padding: .8rem 1.25rem .75rem; display: flex; justify-content: space-between; align-items: center; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--rule); background: rgba(250,250,247,.94); backdrop-filter: blur(8px); font-family: var(--sans); color: var(--muted); }
.lecture-toolbar a { background: var(--surface-strong); color: var(--ink); }
.slide { min-height: 100vh; padding: 7rem 8vw 5rem max(8vw, 8.5rem); display: none; align-content: center; border-left: 1px solid var(--rule); }
.slide.active { display: grid; }
.slide::before { content: ""; display: block; width: 5rem; height: 4px; margin: 0 0 1.2rem; background: var(--accent); }
.slide.title-slide::before { width: 7rem; background: var(--ink); }
.slide h1 { max-width: 12ch; margin: 0; font-size: clamp(4rem, 9vw, 8rem); line-height: .88; letter-spacing: 0; }
.slide h2 { max-width: 16ch; margin: 0 0 1.2rem; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; letter-spacing: 0; }
.slide p, .slide li { max-width: 62rem; font-size: clamp(1.25rem, 2.1vw, 2rem); }
.slide table { color: var(--ink); font-size: 1.15rem; }
.slide th, .slide td { border-color: var(--rule); }
.slide code { background: var(--surface); }
.slide blockquote { border-left-color: var(--accent); color: var(--muted); }
.slide a { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 980px) {
  .three-col { display: block; }
  .side-nav, .resource-panel { position: static; height: auto; border: 0; }
  .module-grid, .asset-row { grid-template-columns: 1fr; }
  .resource-links { justify-content: flex-start; }
}
@media print {
  body { background: white; }
  .handout { padding: 0; max-width: none; }
  .response-space div { min-height: 6.5rem; }
  .resource-panel, .side-nav, .lecture-toolbar { display: none; }
  .rendered-content h2 { break-after: avoid; }
  a { text-decoration: none; }
}
