:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-deep: #f3f5f3;
  --surface: #ffffff;
  --ink: #24352e;
  --green: #294d40;
  --green-soft: #e6eee7;
  --sage: #718679;
  --clay: #b96f52;
  --line: #e0e4e1;
  --muted: #65736b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

button, input { font: inherit; }
a { color: inherit; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--green);
  color: white;
  border-radius: .25rem;
}
.skip-link:focus { top: 1rem; }

.site-header, main, .site-footer {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(36, 53, 46, .12);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.wordmark__initials {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--serif);
  font-size: .86rem;
  letter-spacing: .03em;
}

.wordmark__text { font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; }
.wordmark__sub { display: block; margin-top: .2rem; color: var(--muted); font: .68rem var(--sans); letter-spacing: .035em; }
.header-note { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3.1rem 0 2.2rem;
}

.hero__copy { max-width: 650px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .85rem;
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow__line { width: 1.75rem; height: 1px; background: var(--clay); }

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1 { max-width: 13ch; margin-bottom: 1rem; font-size: clamp(2.25rem, 8.7vw, 4.5rem); line-height: 1.05; }
.hero__lead { max-width: 43rem; margin-bottom: 1.5rem; color: #48584f; font-size: 1.08rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  font-size: .94rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .answer:focus-within { outline: 3px solid #d6987e; outline-offset: 3px; }
.button--primary { background: var(--green); color: white; }
.button--primary:hover { background: #1f3e33; }
.button--secondary { border-color: var(--green); background: transparent; color: var(--green); }
.button--secondary:hover { background: var(--green-soft); }
.hero__privacy { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }

.hero__visual {
  min-height: 230px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 2px solid var(--green);
  padding: 1.5rem 2rem;
  background: #ffffff;
}
.hero__visual-number { color: var(--green); font-family: var(--serif); font-size: clamp(8rem, 20vw, 13rem); line-height: .8; letter-spacing: -.08em; }
.hero__visual-label { margin-top: 1rem; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero__visual-rule { width: 3rem; height: 1px; margin: 1.25rem 0; background: var(--clay); }
.hero__visual-note { max-width: 15rem; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; }

.notice {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: .8rem;
  align-items: start;
  margin: .5rem 0 4.2rem;
  border-top: 1px solid #e0e4e1;
  border-bottom: 1px solid #e0e4e1;
  padding: 1rem 0;
  color: #4e5e55;
  font-size: .92rem;
}
.notice p { margin: 0; }
.notice strong { color: var(--green); }
.notice__mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--serif);
  font-style: italic;
}

.quiz-section { scroll-margin-top: 1.25rem; }
.section-heading { max-width: 700px; margin-bottom: 1.6rem; }
.section-heading h2, .reflection h2 { margin-bottom: .75rem; font-size: clamp(1.9rem, 5.5vw, 3.05rem); line-height: 1.13; }
.section-heading__text { max-width: 42rem; margin-bottom: 0; color: var(--muted); }
.section-heading__scale { margin: .85rem 0 0; color: var(--muted); font-size: .82rem; }
.section-heading__scale strong { color: var(--green); }

.progress-panel {
  max-width: 700px;
  margin-bottom: 1rem;
  border-left: 2px solid var(--clay);
  padding: .15rem 0 .15rem 1rem;
}
.progress-panel__labels { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; font-weight: 650; }
#progress-text { color: var(--green); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 7px; display: block; margin: .55rem 0 .35rem; overflow: hidden; border: 0; border-radius: 99px; background: #e6e9e7; color: var(--green); accent-color: var(--green); }
progress::-webkit-progress-bar { border-radius: 99px; background: #e6e9e7; }
progress::-webkit-progress-value { border-radius: 99px; background: var(--green); transition: width .25s ease; }
progress::-moz-progress-bar { border-radius: 99px; background: var(--green); }
.progress-panel__hint { margin: 0; color: var(--muted); font-size: .78rem; }

.questions { display: grid; gap: .8rem; }
.question {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, .96);
  transition: border-color .2s ease, background-color .2s ease;
}
.question:has(input:checked) { border-color: #99aa9c; background: #fbfcf8; }
.question legend {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}
.question__number {
  flex: 0 0 auto;
  color: var(--clay);
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .08em;
  padding-top: .22rem;
}
.question__text { min-width: 0; flex: 1; }
.question__topic { display: block; margin-bottom: .18rem; color: var(--green); font-family: var(--sans); font-size: .8rem; font-weight: 700; }
.question__prompt { display: block; }
.answers { display: grid; gap: .45rem; margin-top: .9rem; }
.answer {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .35rem .5rem;
  color: #4b5b52;
  font-size: .83rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.answer:hover { border-color: #d6ddd5; background: #f3f6f1; }
.answer input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer input:focus-visible + .answer__score { outline: 3px solid #d6987e; outline-offset: 2px; }
.answer:has(input:checked) { border-color: #a6b8aa; background: var(--green-soft); color: var(--green); }
.answer__score { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 1px solid #c5cec6; border-radius: 50%; background: var(--surface); color: var(--green); font-size: .76rem; font-weight: 750; }
.answer:has(input:checked) .answer__score { border-color: var(--green); background: var(--green); color: #fff; }
.answer__label { line-height: 1.3; }

.result {
  margin-top: 2rem;
  border: 1px solid #b8c4b7;
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--green-soft);
  scroll-margin-top: 1rem;
}
.result[hidden] { display: none; }
.result__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result__topline .eyebrow { margin-bottom: .35rem; }
.result__score { margin: 0; color: var(--green); font-family: var(--serif); font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.result__out-of { margin-left: .18rem; color: var(--sage); font-family: var(--sans); font-size: 1rem; }
.result h2 { max-width: 34rem; margin: .5rem 0 .65rem; color: var(--green); font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.15; }
.result__copy { max-width: 48rem; margin-bottom: 1.2rem; color: #3e5146; }
.result__closing { max-width: 48rem; margin: 0 0 1.1rem; border-left: 2px solid var(--clay); padding: .5rem 0 .5rem .9rem; color: var(--green); font-weight: 650; }
.result__cta { width: fit-content; max-width: 100%; min-height: 44px; margin: 0 0 1.1rem; padding: .6rem .9rem; font-size: .88rem; }
.result__caveat { border-top: 1px solid #c7d2c6; margin: 0 0 1.1rem; padding-top: .85rem; color: #596b5f; font-size: .8rem; }

.closing-question { margin: 2rem 0 0; color: var(--green); }
.closing-question strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.reflection { max-width: 760px; margin: 5rem 0 4rem auto; border-top: 1px solid #e0e4e1; padding: 1.6rem 0 0 1rem; }
.reflection h2 { font-size: clamp(1.7rem, 4.8vw, 2.6rem); }
.reflection > p:last-child { max-width: 45rem; margin-bottom: 0; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(36, 53, 46, .16); padding: 1.25rem 0 2rem; color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--green); text-decoration-color: #a9b6aa; text-underline-offset: 3px; }
.site-footer p { margin: 0; }

@media (min-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 4rem, 1120px); }
  .site-header { min-height: 88px; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 3.5rem; padding: 5rem 0 3rem; }
  .hero__visual { min-height: 385px; }
  .notice { grid-template-columns: 34px 1fr; gap: 1rem; margin-bottom: 5rem; padding: 1.2rem 0; }
  .notice__mark { width: 30px; height: 30px; }
  .progress-panel { margin-bottom: 1.5rem; }
  .questions { gap: 1rem; }
  .question { padding: 1.2rem 1.35rem; }
  .question legend { font-size: 1.24rem; }
  .answers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
  .answer { min-height: 52px; padding: .45rem .6rem; }
  .result { padding: 1.8rem 2rem; }
  .reflection { margin-top: 6rem; padding-left: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
