:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --ink: #1e2a22;
  --soft: #46574d;
  --green: #183d33;
  --gold: #f4cf7e;
  --line: #d9ded4;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.frame { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.top, nav, .brand, .actions, footer, .progress-label { display: flex; align-items: center; gap: 18px; }
.top, footer, .progress-label { justify-content: space-between; }
.top { min-height: 72px; }
.brand { gap: 10px; text-decoration: none; color: var(--ink); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green); color: var(--gold); border-radius: 50%; }
main { padding-block: 44px 56px; min-height: 73vh; }
footer { border-top: 1px solid var(--line); padding-block: 20px 30px; color: var(--soft); font-size: .86rem; flex-wrap: wrap; }
a { color: #225c49; text-underline-offset: 4px; }
nav a, .quiet { font-size: .9rem; }
h1, h2, h3, p { margin: 0 0 .65em; }
h1, h2, h3 { line-height: 1.16; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { font-size: 1.1rem; }
button, .button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid transparent; border-radius: 6px; padding: 10px 17px; font: inherit; font-weight: 650;
  background: var(--green); color: white; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: #285644; }
.quiet { background: transparent; color: var(--green); border-color: var(--line); }
.quiet:hover { background: #ebece4; }
:focus-visible { outline: 3px solid #a1581d; outline-offset: 4px; }
.welcome { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 14px; padding: clamp(26px, 5vw, 64px);
  background: radial-gradient(ellipse at 95% 100%, #31614d, transparent 60%), var(--green); color: #fbf8ed;
}
.hero > p:not(.eyebrow) { max-width: 46ch; color: #e1e9df; font-size: 1.07rem; }
.orbit {
  pointer-events: none; position: absolute; z-index: -1; right: -80px; bottom: -165px; width: 410px; height: 410px;
  border: 1px solid #d8be7860; border-radius: 50%;
  box-shadow: 0 0 0 28px #d8be781c, 0 0 0 57px #d8be781a, 0 0 0 85px #d8be7818;
}
.hero .button { background: var(--gold); color: #292719; }
.hero .button:hover { background: #ffe1a3; }
.hero a:not(.button) { color: #fff6e1; }
.eyebrow { font-size: .75rem; letter-spacing: .12em; font-weight: 750; color: var(--soft); }
.hero .eyebrow { color: var(--gold); margin-bottom: 20px; }
.panel { background: #fffefa; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 32px); }
.panel p { color: var(--soft); }
.login { align-content: center; }
.login form { display: grid; gap: 8px; margin-top: 25px; }
.login label { font-weight: 650; font-size: .92rem; }
.login input { width: 100%; min-height: 46px; margin-bottom: 10px; padding: 9px 12px; border: 1px solid #a9b6aa; border-radius: 6px; font: inherit; }
.login .error { color: #982f2b; }
.dashboard-section { margin-top: 34px; }
.cards, .plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 0; list-style-position: inside; }
.plan h3 { display: inline; }
.plan p { margin-top: 8px; }
.study-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.practice-section h2 { font-size: 1.55rem; }
.practice-section ul { margin: 0; padding: 0; list-style: none; }
.practice-section li + li { border-top: 1px solid var(--line); }
.practice-section a { display: block; padding-block: 10px; }
.practice-section small { display: block; margin: -6px 0 10px; color: var(--soft); }
.actions { margin-top: 22px; flex-wrap: wrap; }
.quiz, .review { max-width: 740px; margin-inline: auto; }
progress { display: block; width: 100%; height: 12px; accent-color: #2c674f; }
.progress-label { gap: 10px; margin-bottom: 8px; color: var(--soft); font-size: .92rem; font-weight: 650; }
.question { margin-top: 20px; }
.question h1 { font-size: clamp(1.65rem, 4vw, 2.55rem); letter-spacing: -.025em; }
.options { display: grid; gap: 9px; }
.options label { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--line); border-radius: 7px; padding: 12px; cursor: pointer; }
.options label:has(input:checked) { border-color: #2c674f; background: #e9f1ea; }
input[type="radio"] { accent-color: var(--green); flex-shrink: 0; }
.review h1 { margin-top: 16px; }
.review h2 { font-size: 1.45rem; }
.review article + article { margin-top: 14px; }
.correct { color: #215b41 !important; }
.missed { color: #943d24 !important; }
@media (max-width: 680px) {
  .frame { width: calc(100% - 28px); }
  main { padding-block: 26px 38px; }
  .welcome, .cards, .plan { grid-template-columns: 1fr; }
  .top, nav { gap: 8px; }
}
@media (max-width: 450px) {
  .top { flex-wrap: wrap; padding-block: 8px; }
}
