:root {
  color-scheme: light;
  --ink: #122b22;
  --muted: #4b6259;
  --paper: #f7faf7;
  --white: #fff;
  --green: #216247;
  --lime: #dcf5ad;
  --line: #dce7df;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .25em; }
a:hover { color: #133b2a; }
:focus-visible { outline: 3px solid #348453; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; inset: .75rem auto auto .75rem; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: .95rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 1.25rem; letter-spacing: -.045em; text-decoration: none; font-weight: 800; }
.brand-icon { width: 2.35rem; aspect-ratio: 1; display: grid; place-items: center; margin-right: .55rem; border-radius: .7rem; color: var(--lime); background: #17513b; }
.brand-accent { color: var(--green); }
nav { display: flex; gap: clamp(.85rem, 3vw, 2.3rem); }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .94rem; }
nav a:hover { text-decoration: underline; }
.hero { background: radial-gradient(ellipse at 70% 22%, #e6f3d9, transparent 59%), #eef5ee; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.1rem, 8vw, 6.5rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--green); font-size: .875rem; font-weight: 750; letter-spacing: .075em; }
.eyebrow span { width: 1.35rem; height: 2px; background: currentColor; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -.075em; margin-top: 1.1rem; }
h1 em { color: var(--green); font-style: normal; }
.intro, .section-intro { color: var(--muted); max-width: 39rem; margin-top: 1rem; }
.intro { max-width: 31rem; font-size: clamp(1.02rem, 2vw, 1.2rem); margin-top: 1.35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.12rem; min-height: 2.95rem; border: 1px solid transparent; border-radius: .62rem; background: var(--green); color: white; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #174a35; color: white; }
.button.outline { border-color: #a7bfae; background: transparent; color: var(--ink); }
.button.outline:hover { background: #dcebdd; }
.button:disabled { background: #e7eee9; color: #50675c; cursor: default; }
.snapshot { border-radius: 1.45rem; padding: clamp(1.25rem, 3.1vw, 2.15rem); color: #f4f9f4; background: radial-gradient(ellipse at 92% 10%, #2b664a, transparent 70%), #113c2b; box-shadow: 0 1.2rem 2.6rem #163d2a27; }
.snapshot-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; color: #e2f1e8; font-size: .875rem; font-weight: 700; letter-spacing: .055em; }
.snapshot-label span { border: 1px solid #7ba48f; border-radius: 99px; padding: .19rem .58rem; font-size: .75rem; letter-spacing: .025em; }
.score { display: flex; align-items: baseline; gap: .85rem; margin-top: 1.05rem; }
.score strong { font-size: clamp(4rem, 8vw, 6.15rem); line-height: 1.15; letter-spacing: -.085em; color: var(--lime); }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-block: 1rem 1.3rem; }
.segments i { height: .52rem; border-radius: 6px; background: #dcf5ad; }
.segments i:nth-child(2) { background: #b8e0a8; }
.segments i:nth-child(3) { background: #8bc6a2; }
.snapshot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding-top: .95rem; border-top: 1px solid #6b927e; }
.snapshot-stats dt { font-size: 1.16rem; font-weight: 750; }
.snapshot-stats dd { font-size: .875rem; color: #d3e6da; }
.section { padding-block: clamp(2.9rem, 6vw, 5rem); }
h2 { margin-top: .65rem; font-size: clamp(1.9rem, 4.5vw, 3.2rem); letter-spacing: -.05em; }
h3 { font-size: 1.23rem; letter-spacing: -.025em; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.part, .quiz { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); padding: 1.35rem; }
.part { display: flex; flex-direction: column; align-items: start; gap: .8rem; }
.part p:not(.tag) { color: var(--muted); }
.tag { background: #e5f2db; color: #325437; font-size: .875rem; font-weight: 750; padding: .17rem .55rem; border-radius: .32rem; }
.tag.purple { background: #eee7fa; color: #513570; }
.tag.orange { background: #fbebd8; color: #744415; }
.time { margin-top: auto; font-weight: 700; color: var(--green); }
.source { margin-top: 1rem; }
.practice { background: #e9f2e9; border-block: 1px solid var(--line); }
.practice-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.quiz { padding: clamp(1rem, 3vw, 1.65rem); }
.quiz-meta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .9rem; font-weight: 700; color: var(--green); }
.quiz-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .3rem .6rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.quiz-filter label { grid-column: 1 / -1; font-weight: 650; }
.quiz-filter select, .number-answer { min-width: 0; min-height: 2.95rem; width: 100%; padding: .6rem .75rem; border: 1px solid #a7bfae; border-radius: .62rem; background: white; color: var(--ink); font: inherit; }
.quiz-filter .button { margin-top: 0; }
progress { accent-color: var(--green); width: 100%; height: .55rem; margin-block: .55rem 1rem; }
.question-context { margin-bottom: 1rem; padding: .85rem 1rem; border-inline-start: 3px solid #55966b; border-radius: .45rem; background: #edf5eb; }
.question-context p:first-child { margin-bottom: .3rem; color: var(--green); font-weight: 700; }
.number-answer { max-width: 20rem; }
.result-actions { display: flex; flex-wrap: wrap; column-gap: .65rem; }
fieldset { display: grid; gap: .6rem; padding: 0; border: 0; margin: 0; min-inline-size: 0; }
legend { margin-bottom: .85rem; padding: 0; font-size: 1.08rem; font-weight: 750; }
.choice { display: flex; gap: .65rem; align-items: baseline; padding: .58rem .75rem; border: 1px solid var(--line); border-radius: .56rem; cursor: pointer; }
.choice input { accent-color: var(--green); margin: 0; }
.choice:has(input:checked) { border-color: var(--green); background: #f3f8ef; }
.choice.correct { border-color: #3b8059; background: #e5f3e7; }
.choice.incorrect { border-color: #a24d45; background: #fff0ed; }
#feedback:not(:empty) { padding: .65rem 0 0; color: var(--ink); }
.quiz .button, #results p { margin-top: 1rem; }
.resource-list { display: grid; gap: .7rem; margin-top: 1.5rem; }
.resource-list a { display: grid; grid-template-columns: minmax(12rem, .6fr) 1fr; gap: .6rem; padding: .95rem 1.05rem; border: 1px solid var(--line); border-radius: .7rem; background: white; text-decoration: none; }
.resource-list a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.resource-list span, footer { color: var(--muted); }
footer { background: #ecf4ed; border-top: 1px solid var(--line); }
.footer-inner > strong { color: var(--ink); font-size: 1.08rem; }

@media (max-width: 48rem) {
  .hero-inner, .practice-layout { grid-template-columns: 1fr; }
  .snapshot { max-width: 32rem; width: 100%; }
  .parts { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .55rem; }
  nav { width: 100%; justify-content: space-between; }
  .resource-list a { grid-template-columns: 1fr; gap: .15rem; }
  .quiz-filter { grid-template-columns: 1fr; }
  .quiz-filter .button { justify-self: start; }
}
