:root {
  color-scheme: light;
  --ink: #15233b;
  --muted: #526078;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --navy: #102543;
  --teal: #087f7b;
  --teal-dark: #05645f;
  --amber: #f4b740;
  --line: #d8dde5;
  --soft: #eaf4f2;
  --shadow: 0 16px 40px rgba(21, 35, 59, 0.1);
}

* { 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.6;
}
a { color: var(--teal-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.hero {
  min-height: 520px;
  padding: 2rem max(6vw, 1.25rem) 5rem;
  color: white;
  background:
    radial-gradient(circle at 82% 30%, rgba(244, 183, 64, 0.2), transparent 22rem),
    linear-gradient(135deg, #102543 0%, #123f55 58%, #087f7b 100%);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: white; text-decoration: none; font-weight: 700; }
.brand img { width: 46px; height: 46px; object-fit: contain; background: white; border-radius: 10px; padding: 4px; }
.eyebrow { margin: 0 0 .6rem; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { margin-top: 6rem; color: #8de1d6; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 780px; margin-bottom: 1rem; font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.25rem; }
.lede { max-width: 700px; margin-bottom: 2rem; color: #e1edf2; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: white; background: var(--teal); }
.button.primary:hover { background: var(--teal-dark); }
.hero .button.primary { color: var(--navy); background: var(--amber); }
.button.secondary { color: inherit; background: transparent; border-color: currentColor; }

main { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; margin: -2.5rem 0 6rem; padding: 2.25rem; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.intro h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.intro > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
#progress-summary { color: var(--muted); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 2rem; }
.filters button, .tabs button {
  padding: .58rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.filters button.active, .tabs button.active { color: white; border-color: var(--navy); background: var(--navy); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lesson-card { min-height: 280px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 18px rgba(21, 35, 59, .05); }
.lesson-card.available { border-top: 5px solid var(--teal); }
.lesson-card.planned { color: #667087; background: #f2f1ec; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.level { color: var(--teal-dark); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.status { padding: .18rem .5rem; border-radius: 999px; background: var(--soft); font-size: .72rem; font-weight: 750; }
.planned .status { background: #e3e1da; }
.lesson-card h3 { margin: 1.1rem 0 .65rem; }
.lesson-card p { color: var(--muted); }
.lesson-card button { margin-top: .5rem; }

.workspace { margin: 5rem 0; padding: clamp(1.25rem, 4vw, 3rem); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.text-button { padding: 0; border: 0; color: var(--teal-dark); background: none; font: inherit; font-weight: 750; cursor: pointer; }
.workspace-heading { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; margin: 2rem 0; }
.workspace-heading p { max-width: 760px; color: var(--muted); }
.tabs { display: flex; gap: .5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.panel { max-width: 820px; padding: 2rem 0 0; }
.panel li { margin-bottom: .6rem; }
.link-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.checkpoint-options { display: grid; gap: .55rem; margin: 1rem 0; }
.checkpoint-options label { padding: .75rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.feedback { padding: .8rem; border-radius: 10px; background: var(--soft); }

.resources { margin: 7rem 0 4rem; padding: 2rem; border-left: 7px solid var(--amber); background: var(--surface); }
.resource-links { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem max(6vw, 1.25rem); color: #dbe6eb; background: var(--navy); }
footer a { color: white; }

@media (max-width: 850px) {
  .intro, .workspace-heading { grid-template-columns: 1fr; gap: 1rem; }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { min-height: 480px; }
  .hero .eyebrow { margin-top: 4rem; }
  .lesson-grid { grid-template-columns: 1fr; }
  .section-heading, footer { align-items: start; flex-direction: column; }
  .workspace { margin-inline: -0.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

