:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --ink: #252d29;
  --green: #21483a;
  --moss: #dce8db;
  --pink: #f1ded5;
  --line: #c6c5b8;
  --muted: #516158;
  --white: #fffdf8;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #874836; outline-offset: 4px; }
h1, h2, h3, .wordmark, .score { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1, h2, h3, p, dl, ol { margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); letter-spacing: -.055em; line-height: .99; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.1; letter-spacing: -.035em; }
h3 { font-size: 1.38rem; line-height: 1.2; }
.frame { width: min(calc(100% - 40px), 1050px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; color: white; background: var(--green); padding: 10px; transform: translateY(-160%); z-index: 1; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 1.42rem; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 26px; height: 26px; }
nav { display: flex; gap: 4px clamp(10px, 3vw, 24px); flex-wrap: wrap; }
nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; font-weight: 600; }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 12px 0; }
.intro { font-size: clamp(1.06rem, 2vw, 1.23rem); max-width: 35em; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; text-decoration: none; padding: 10px 17px; cursor: pointer; font-weight: 680; }
.button:hover { background: #16372b; }
.secondary { background: transparent; color: var(--green); }
.secondary:hover { background: var(--moss); }
.muted { font-size: .92rem; color: var(--muted); }
.home-hero { padding: 66px 0 52px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: center; }
.home-hero .button { margin: 25px 0 10px; }
.hero-art { isolation: isolate; position: relative; height: clamp(190px, 31vw, 320px); background: var(--moss); border-radius: 48% 45% 7% 7% / 45% 58% 8% 12%; display: grid; place-items: center; overflow: hidden; }
.hero-art::before { content: ""; width: 68%; height: 77%; position: absolute; border: 1px solid #8aa394; border-radius: 50%; transform: rotate(-16deg); }
.paper { width: 31%; height: 62%; border: 1px solid var(--green); padding: 12% 5% 0; position: absolute; border-radius: 8px; display: flex; flex-direction: column; gap: 12%; box-shadow: 3px 6px 0 #21483a22; }
.paper-front { background: var(--pink); transform: translate(-28%, -3%) rotate(-15deg); z-index: 1; }
.paper-back { background: var(--white); transform: translate(36%, 1%) rotate(14deg); }
.paper i { display: block; height: 1px; background: var(--green); }
.paper i:last-child { width: 62%; }
.home-preview { border-top: 1px solid var(--line); padding: 24px 0 8px; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 21px 0; }
.topics div { border-left: 2px solid var(--line); padding-left: 11px; }
.topics dt { font-weight: 680; }
.topics dd { margin: 3px 0 0; color: var(--muted); }
.quiz-hero, .quiz-card, .reading { width: min(100%, 710px); margin-inline: auto; }
.quiz-hero { padding: 46px 0 23px; }
.quiz-hero h1, .info h1 { font-size: clamp(2.65rem, 6vw, 4.4rem); }
.quiz-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 12px; padding: clamp(17px, 4vw, 32px); }
.quiz-card:has(.result) { border-top-color: #874836; }
.quiz-card p { margin: 12px 0; }
.quiz-card p.eyebrow { margin: 0 0 9px; font-size: .76rem; font-weight: 760; letter-spacing: .085em; text-transform: uppercase; color: var(--green); }
.quiz-card [tabindex="-1"]:focus { outline: none; }
.quiz-card progress { display: block; width: 100%; height: 12px; accent-color: var(--green); margin: 7px 0 17px; }
.options { display: grid; gap: 8px; margin: 17px 0 8px; }
.option { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; text-align: left; padding: 10px 12px; cursor: pointer; min-height: 47px; }
.option:hover, .option[aria-pressed="true"] { background: var(--moss); border-color: var(--green); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.score { font-size: 3.8rem; color: var(--green); line-height: 1; }
.score span { font: 500 1.15rem system-ui, sans-serif; color: var(--muted); }
.dimensions { display: grid; gap: 10px; margin: 20px 0; }
.dimension { padding: 12px; background: var(--paper); border-radius: 8px; }
.dimension > summary { cursor: pointer; padding: 4px 0; min-height: 34px; }
.dimension > summary strong { color: var(--green); }
.comparisons { padding-left: 22px; }
.comparisons li { margin: 9px 0; }
.comparisons span { display: block; color: var(--muted); }
.prompts { padding-left: 22px; margin-top: 9px; }
.prompts li { margin-bottom: 8px; }
.share-link { width: 100%; max-width: 100%; padding: 9px; margin-top: 9px; color: var(--ink); background: white; border: 1px solid var(--line); }
.reading { padding-top: 43px; }
.reading h2 { margin: 28px 0 9px; scroll-margin-top: 20px; }
.reading h3 { margin: 20px 0 7px; }
.reading p, .reading ul { margin: 0 0 13px; }
.reading details { border-top: 1px solid var(--line); }
.reading details:last-child { border-bottom: 1px solid var(--line); }
.reading summary { padding: 12px 0; min-height: 46px; cursor: pointer; font-weight: 650; }
.info { min-height: 43vh; }
.info h1 { margin-bottom: 22px; }
@media (max-width: 620px) {
  .frame { width: calc(100% - 32px); }
  .header-row { min-height: 58px; }
  .home-hero { grid-template-columns: 1fr; padding: 37px 0 31px; }
  .hero-art { height: 176px; }
  .paper { padding-top: 9%; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .quiz-hero { padding-top: 27px; }
  .quiz-hero .intro { margin-top: 14px; }
  .site-footer { margin-top: 40px; }
}
