:root {
  --ink: #17263a;
  --muted: #506076;
  --paper: #fffdf8;
  --wash: #eef6f4;
  --mint: #087d6d;
  --mint-dark: #00564b;
  --gold: #f4c64e;
  --orange: #e75b31;
  --focus: #005fcc;
  --line: #cad5dc;
  --shadow: 0 8px 24px rgb(23 38 58 / 12%);
}

* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body { margin: 0; min-width: 320px; }
a { color: var(--mint-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
button, input, select { font: inherit; }
button, select, input { min-height: 44px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 10; background: #fff; padding: 0.65rem 1rem; border-radius: 0.35rem; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.site-header, .site-footer, main { max-width: 1120px; margin: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.site-header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-size: 1.23rem; font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.brand span { color: var(--mint); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { font-weight: 650; }
main { padding-top: 2.2rem; padding-bottom: 4rem; min-height: calc(100vh - 172px); }
.hero { background: linear-gradient(135deg, #e4f3ef 0%, #fcf2cf 100%); border-radius: 1.4rem; padding: clamp(2rem, 6vw, 4.5rem); }
h1, h2, p { max-width: 72ch; }
h1 { margin: 0.15rem 0 0.8rem; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; }
h2 { line-height: 1.18; font-size: clamp(1.35rem, 3vw, 2rem); }
.eyebrow { margin: 0; color: var(--mint-dark); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--mint-dark); border-radius: 0.6rem; padding: 0.63rem 1rem; background: var(--mint-dark); color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; }
.button:hover { background: #003e35; color: #fff; }
.button-secondary { background: #fff; color: var(--mint-dark); }
.button-secondary:hover { background: var(--wash); color: var(--ink); }
.button-small { align-self: end; }
.text-button { appearance: none; padding: 0; min-height: auto; border: 0; background: none; color: var(--mint-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.home-section { margin-top: 3.5rem; }
.level-grid, .activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.level-card, .activity-card, .two-columns article { border: 1px solid var(--line); border-radius: 1rem; padding: 1.15rem; background: #fff; box-shadow: 0 3px 12px rgb(23 38 58 / 5%); }
.level-card { color: var(--ink); text-decoration: none; display: grid; gap: 0.25rem; }
.level-card strong { font-size: 1.4rem; color: var(--mint-dark); }
.level-card:hover { border-color: var(--mint); background: var(--wash); color: var(--ink); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.two-columns h2 { margin-top: 0; }
.filter-form { display: grid; grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1fr) minmax(190px, 2fr) auto; gap: 1rem; padding: 1rem; border-radius: 1rem; background: var(--wash); margin-bottom: 2rem; }
.filter-form div { display: grid; gap: 0.25rem; }
label { font-weight: 700; }
select, input { width: 100%; border: 1px solid #8190a2; border-radius: 0.45rem; background: #fff; padding: 0.5rem 0.65rem; color: var(--ink); }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.section-heading h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.results-count, .meta { color: var(--muted); }
.activity-card { display: flex; flex-direction: column; align-items: flex-start; }
.activity-card h2 { font-size: 1.22rem; margin: 0.25rem 0; }
.activity-card .button { margin-top: auto; }
.learning-goal { border-left: 5px solid var(--gold); padding: 0.8rem 1rem; background: #fff8dc; border-radius: 0 0.45rem 0.45rem 0; }
fieldset { margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 0.75rem; padding: 1rem; }
legend { font-weight: 750; max-width: 60ch; padding: 0 0.25rem; }
.answer-option { position: relative; margin-top: 0.65rem; }
.answer-option input { position: absolute; opacity: 0; }
.answer-option label { display: block; cursor: pointer; border: 2px solid var(--line); border-radius: 0.5rem; padding: 0.6rem 0.75rem; font-weight: 600; }
.answer-option input:checked + label { border-color: var(--mint); background: var(--wash); }
.answer-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.feedback { margin-top: 1.75rem; }
.feedback h2 { font-size: 1.45rem; }
.feedback li { margin: 0.75rem 0; padding: 0.75rem; border-radius: 0.4rem; }
.correct { background: #e1f4e8; color: #104e29; }
.incorrect { background: #fff0ea; color: #7c2912; }
.empty-state, .notice { padding: 1rem; border-radius: 0.6rem; background: #fff8dc; }
.site-footer { border-top: 1px solid var(--line); padding-top: 1.5rem; padding-bottom: 2rem; color: var(--muted); }
.site-footer p { margin-top: 0; }
@media (max-width: 720px) {
  .site-header { align-items: start; flex-direction: column; padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .filter-form { grid-template-columns: 1fr; }
  .button-small { justify-self: start; }
  .two-columns { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; }
}
