@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --md-sys-color-primary: #415d8c;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d8e2ff;
  --md-sys-color-on-primary-container: #0d2a57;
  --md-sys-color-secondary: #56627a;
  --md-sys-color-secondary-container: #dbe4ff;
  --md-sys-color-tertiary: #785a00;
  --md-sys-color-tertiary-container: #ffdea1;
  --md-sys-color-surface: #fbf8ff;
  --md-sys-color-surface-container-low: #f5f2fa;
  --md-sys-color-surface-container: #efedf4;
  --md-sys-color-surface-container-high: #e9e7ee;
  --md-sys-color-on-surface: #1c1b20;
  --md-sys-color-on-surface-variant: #45464f;
  --md-sys-color-outline: #767780;
  --md-sys-color-outline-variant: #c6c6d0;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-error-container: #ffdad6;
  --chapter-1: #d8e2ff;
  --chapter-2: #cdece5;
  --chapter-3: #f4dfc5;
  --chapter-4: #e6d9f2;
  --chapter-5: #f5d8d3;
  --chapter-6: #e5e5bd;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --radius-xl: 48px;
  --content: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}
a { color: #234c81; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img, object { max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-160%); padding: 10px 16px; border-radius: 999px;
  background: var(--md-sys-color-on-surface); color: white;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--md-sys-color-surface) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.header-inner {
  width: min(calc(100% - 32px), var(--content)); min-height: 72px; margin: auto;
  display: flex; align-items: center; gap: 24px;
}
.wordmark { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.wordmark-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px 8px 15px 8px;
  background: var(--md-sys-color-primary); color: white; font: 900 14px Nunito, sans-serif;
}
.wordmark-copy { display: grid; line-height: 1.05; }
.wordmark-copy strong { font: 800 18px Nunito, sans-serif; letter-spacing: -.02em; }
.wordmark-copy span { color: var(--md-sys-color-on-surface-variant); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a, .header-button {
  border: 0; border-radius: 999px; padding: 10px 14px; background: transparent;
  color: var(--md-sys-color-on-surface-variant); font-weight: 700; text-decoration: none; cursor: pointer;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .header-button:hover { background: var(--md-sys-color-secondary-container); color: #1d2d48; }
.menu-toggle { display: none; }

.search-panel { background: var(--md-sys-color-surface-container-low); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.search-inner { width: min(calc(100% - 32px), 780px); margin: auto; padding: 18px 0 24px; }
.search-inner input, .curriculum-filter input {
  width: 100%; border: 2px solid transparent; border-radius: 999px; padding: 14px 20px;
  background: white; color: inherit; outline: none;
}
.search-inner input:focus, .curriculum-filter input:focus { border-color: var(--md-sys-color-primary); }
.search-results { display: grid; gap: 6px; margin-top: 10px; }
.search-result { display: grid; padding: 12px 16px; border-radius: var(--radius-s); text-decoration: none; }
.search-result:hover { background: white; }
.search-result span { color: var(--md-sys-color-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.search-result strong { color: var(--md-sys-color-on-surface); }
.search-result small, .search-hint { color: var(--md-sys-color-on-surface-variant); }

main { min-height: 70vh; }
.shell { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }

.hero { overflow: hidden; padding: clamp(52px, 9vw, 120px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--md-sys-color-primary); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Nunito, system-ui, sans-serif; line-height: 1.12; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 82px); letter-spacing: -.055em; }
.hero-copy { margin: 24px 0 0; max-width: 680px; color: var(--md-sys-color-on-surface-variant); font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--md-sys-color-primary); color: white; }
.button.secondary { background: var(--md-sys-color-secondary-container); color: #1d2d48; }
.button.tertiary { color: var(--md-sys-color-primary); }
.hero-compass {
  position: relative; min-height: 390px; border-radius: 72px 28px 72px 28px;
  background: var(--md-sys-color-primary-container); padding: 32px; display: grid; align-content: space-between;
}
.hero-compass::before, .hero-compass::after { content: ""; position: absolute; border-radius: 50%; }
.hero-compass::before { width: 150px; height: 150px; right: -35px; top: -42px; background: var(--md-sys-color-tertiary-container); }
.hero-compass::after { width: 90px; height: 90px; left: -25px; bottom: 34px; background: #b9ded6; }
.hero-compass > * { position: relative; z-index: 1; }
.hero-compass strong { font: 900 clamp(56px, 8vw, 92px) Nunito, sans-serif; line-height: 1; letter-spacing: -.06em; }
.hero-compass p { margin: 0; max-width: 270px; font-weight: 650; }
.hero-compass .route-line { height: 10px; width: 72%; border-radius: 999px; background: var(--md-sys-color-primary); box-shadow: 44px 32px 0 var(--md-sys-color-tertiary), 92px 64px 0 #4c8579; }

.section { padding: 72px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, .7fr); gap: 40px; align-items: end; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--md-sys-color-on-surface-variant); }

.chapter-list { display: grid; gap: 14px; }
.chapter-band {
  --chapter-bg: var(--chapter-1); display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 28px; border-radius: 28px 16px 16px 28px; background: var(--chapter-bg); color: inherit; text-decoration: none;
  transition: transform .16s ease, border-radius .16s ease;
}
.chapter-band:nth-child(even) { border-radius: 16px 28px 28px 16px; }
.chapter-band:hover { transform: translateX(6px); }
.chapter-number { font: 900 36px Nunito, sans-serif; letter-spacing: -.04em; }
.chapter-band h3 { margin: 0 0 4px; font-size: clamp(20px, 2.5vw, 28px); }
.chapter-band p { margin: 0; color: #3e4249; }
.chapter-count { font-size: 13px; font-weight: 800; white-space: nowrap; }

.launch-section { background: var(--md-sys-color-surface-container-low); }
.launch-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.launch-day { position: relative; padding: 22px 20px 28px; background: white; text-decoration: none; color: inherit; min-height: 210px; }
.launch-day:first-child { border-radius: 28px 0 0 16px; }
.launch-day:last-child { border-radius: 0 16px 28px 0; }
.launch-day span { color: var(--md-sys-color-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.launch-day h3 { margin: 10px 0; font-size: 20px; }
.launch-day p { margin: 0; color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.launch-day::after { content: ""; position: absolute; left: 20px; bottom: 14px; width: 30px; height: 4px; border-radius: 99px; background: var(--md-sys-color-primary); }

.source-roles { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 14px; }
.source-role { padding: 28px; background: var(--md-sys-color-surface-container); border-radius: 16px 30px 16px 30px; }
.source-role:first-child { background: var(--md-sys-color-primary-container); border-radius: 42px 18px 42px 18px; }
.source-role h3 { margin-top: 0; }
.source-role p { margin-bottom: 0; color: var(--md-sys-color-on-surface-variant); }

.page-hero { padding: 58px 0 34px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 66px); }
.page-summary { max-width: 760px; margin-top: 18px; color: var(--md-sys-color-on-surface-variant); font-size: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
.breadcrumb a { color: inherit; }

.curriculum-filter { max-width: 720px; margin: 8px 0 42px; }
.curriculum-chapter { display: grid; grid-template-columns: minmax(220px, .55fr) 1.45fr; gap: 40px; padding: 46px 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
.curriculum-chapter h2 { margin: 0; font-size: 32px; position: sticky; top: 104px; }
.week-list { display: grid; }
.week-row { display: grid; grid-template-columns: 78px minmax(200px, .75fr) minmax(240px, 1.25fr); gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); text-decoration: none; color: inherit; }
.week-row:hover h3 { color: var(--md-sys-color-primary); }
.week-row span { color: var(--md-sys-color-primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.week-row h3 { margin: 0; font-size: 20px; }
.week-row small { color: var(--md-sys-color-on-surface-variant); }

.week-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.week-layout > * { min-width: 0; }
.day-rail { position: sticky; top: 96px; padding: 20px; background: var(--md-sys-color-surface-container-low); border-radius: 28px 14px 28px 14px; }
.day-rail strong { display: block; margin-bottom: 12px; font-family: Nunito, sans-serif; }
.day-rail a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 8px; color: inherit; text-decoration: none; border-radius: 12px; }
.day-rail a:hover, .day-rail a[aria-current="page"] { background: white; }
.day-rail b { color: var(--md-sys-color-primary); }

.prose { min-width: 0; max-width: 790px; padding-bottom: 80px; }
.prose h1 { display: none; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.025em; }
.prose h3 { margin: 30px 0 12px; font-size: 23px; }
.prose p, .prose li { max-width: 74ch; }
.prose li + li { margin-top: .45em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 14px; overflow: hidden; border-radius: var(--radius-m); background: white; }
.prose th, .prose td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--md-sys-color-primary-container); font-weight: 800; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 5px solid var(--md-sys-color-primary); border-radius: 0 var(--radius-m) var(--radius-m) 0; background: var(--md-sys-color-surface-container-low); }
.prose blockquote p { margin: 0; }
.prose code { border-radius: 6px; padding: .12em .35em; background: var(--md-sys-color-surface-container-high); }
.unit-downloads { margin-top: 48px; padding-top: 4px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.unit-downloads ul { margin: 0; padding: 0; list-style: none; }
.unit-downloads li { margin: 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.unit-downloads a { display: block; padding: 12px 0; overflow-wrap: anywhere; }
.admonition { margin: 24px 0; padding: 18px 22px; border-radius: 12px 28px 12px 28px; background: var(--md-sys-color-secondary-container); }
.admonition.warning { background: var(--md-sys-color-tertiary-container); }
.admonition-title { margin: 0 0 8px !important; font-family: Nunito, sans-serif; font-weight: 900; }
.public-boundary { margin: 48px 0; padding: 22px 24px; background: var(--md-sys-color-surface-container); border-radius: 28px 14px 28px 14px; color: var(--md-sys-color-on-surface-variant); }

.resource-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 80px; }
.resource-link { padding: 24px; background: var(--md-sys-color-surface-container-low); border-radius: 26px 14px 26px 14px; color: inherit; text-decoration: none; }
.resource-link h2 { margin: 0 0 8px; font-size: 22px; }
.resource-link p { margin: 0; color: var(--md-sys-color-on-surface-variant); }

.site-footer { background: #202127; color: #f1eff6; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.site-footer h2 { margin: 0 0 10px; font-size: 24px; }
.site-footer p { margin: 0; color: #c8c6cf; max-width: 620px; }
.site-footer a { color: #d8e2ff; }

@media (max-width: 900px) {
  .hero-grid, .section-heading, .curriculum-chapter, .week-layout { grid-template-columns: 1fr; }
  .hero-compass { min-height: 300px; }
  .launch-rail { grid-template-columns: 1fr 1fr; gap: 8px; }
  .launch-day, .launch-day:first-child, .launch-day:last-child { border-radius: 22px 12px 22px 12px; min-height: 175px; }
  .source-roles { grid-template-columns: 1fr 1fr; }
  .source-role:first-child { grid-column: 1 / -1; }
  .curriculum-chapter h2, .day-rail { position: static; }
  .day-rail { order: -1; }
  .chapter-band { grid-template-columns: 92px 1fr; }
  .chapter-count { grid-column: 2; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 64px; }
  .wordmark-copy span { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 16px 20px; background: var(--md-sys-color-surface); border-bottom: 1px solid var(--md-sys-color-outline-variant); flex-direction: column; align-items: stretch; }
  .site-nav[data-open] { display: flex; }
  .site-nav .header-button { text-align: left; }
  .hero { padding-top: 42px; }
  .hero-grid { gap: 38px; }
  .hero-compass { min-height: 250px; border-radius: 46px 20px 46px 20px; }
  .section { padding: 52px 0; }
  .chapter-band { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .chapter-count { grid-column: 1; }
  .launch-rail, .source-roles, .resource-index, .footer-grid { grid-template-columns: 1fr; }
  .source-role:first-child { grid-column: auto; }
  .week-row { grid-template-columns: 66px 1fr; }
  .week-row small { grid-column: 2; }
  .prose table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
