:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5b6671;
  --line: #d7dde3;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --teal: #0e6f70;
  --teal-dark: #0a4c4d;
  --gold: #b98024;
  --rose: #a84743;
  --blue: #315f8c;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 24, 31, 0.82), rgba(12, 24, 31, 0.48) 48%, rgba(12, 24, 31, 0.12)),
    linear-gradient(0deg, rgba(12, 24, 31, 0.56), rgba(12, 24, 31, 0.04) 42%);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  font-size: 0.95rem;
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  align-self: center;
  margin: 0 auto;
  padding: 72px 0 150px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  color: #f4c26b;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button,
select {
  min-height: 42px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 750;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  text-decoration: none;
}

.primary {
  background: #fff;
  color: var(--teal-dark);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: -68px auto 0;
  position: relative;
  z-index: 2;
}

.notice,
.overview,
.course,
.toolkit,
.sources {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.notice {
  padding: 18px 22px;
  border-left: 5px solid var(--gold);
}

.overview,
.course,
.toolkit,
.sources {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.section-kicker {
  color: var(--teal);
}

h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.06;
}

.overview p,
.toolkit p,
.source-note {
  color: var(--muted);
  margin-bottom: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.overview-grid article {
  border: 1px solid var(--line);
  padding: 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overview-grid span {
  font-size: 1.55rem;
  color: var(--rose);
  font-weight: 850;
}

.overview-grid p {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-label {
  font-weight: 800;
  color: var(--muted);
}

select,
.icon-button {
  background: #f7f8f6;
  color: var(--ink);
  border-color: var(--line);
}

select {
  padding: 0 38px 0 12px;
}

.icon-button {
  width: 42px;
  font-size: 1.35rem;
  cursor: pointer;
}

.week-tabs {
  display: grid;
  grid-template-columns: repeat(12, minmax(42px, 1fr));
  gap: 6px;
  margin-bottom: 22px;
}

.week-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #f8f8f5;
  cursor: pointer;
  color: var(--muted);
}

.week-tab[aria-current="true"] {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.module-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.module-title h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: #eef7f6;
  color: var(--teal-dark);
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 850;
}

.module-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 100%;
  background: #fff;
}

.panel h4 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.panel ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.panel li + li {
  margin-top: 8px;
}

.goal {
  margin: 0 0 14px;
  color: var(--muted);
}

.term-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.term {
  padding: 10px 12px;
  background: #f7faf9;
  border-left: 3px solid var(--teal);
}

.term b {
  color: var(--teal-dark);
}

.source-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.source-card,
.source-library a {
  border: 1px solid var(--line);
  padding: 12px;
  text-decoration: none;
  display: block;
  background: #fcfcfa;
}

.source-card:hover,
.source-library a:hover {
  border-color: var(--teal);
}

.source-card strong,
.source-library strong {
  display: block;
  color: var(--blue);
}

.source-card span,
.source-library span {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolkit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 13px;
  background: #fcfcfa;
  font-weight: 650;
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  margin-top: 3px;
  flex: 0 0 auto;
}

.source-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 32px auto;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .overview,
  .toolkit,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .source-library {
    grid-template-columns: 1fr;
  }

  .week-tabs {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar,
  .section-heading,
  .module-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  .source-cards,
  .checklist {
    grid-template-columns: 1fr;
  }

  .week-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}
