:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #242d27;
  --quiet: #4d5a51;
  --green: #28533e;
  --green-dark: #1c3b2b;
  --line: #c9d0c6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); letter-spacing: -.06em; }
h1 em { display: block; color: var(--green); font-weight: 500; }
h2 { font-size: clamp(2.4rem, 4.8vw, 4rem); letter-spacing: -.045em; }
h3 { font-size: 1.12rem; line-height: 1.3; }
a { color: var(--green-dark); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #8f492b; outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 1.5rem; }

.frame { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.5rem; }
.top { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; text-decoration: none; }
nav, .footer div { display: flex; gap: clamp(.8rem, 2vw, 2rem); align-items: center; flex-wrap: wrap; }
nav a, .footer a { font-size: .95rem; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.nav-start { font-weight: 750; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .55rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.75rem, 8vw, 7rem); align-items: center; }
.kicker { color: var(--green); font-size: .83rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.lead { font-size: clamp(1.12rem, 2vw, 1.28rem); color: var(--quiet); max-width: 39rem; margin-block: 1.35rem; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-block: 1.75rem .9rem; }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.13rem; border: 1px solid var(--green); border-radius: .35rem; font: 660 .98rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.secondary { background: transparent; color: var(--green-dark); }
.secondary:hover { background: #e6ebe1; }
.support, .fine, figcaption { color: var(--quiet); font-size: .9rem; }
.fine { margin-top: 1rem; }

.tree-card { padding: clamp(1rem, 3vw, 2rem); background: #fffdf8; border: 1px solid var(--line); border-radius: .55rem; box-shadow: 0 16px 45px #253b2814; transform: rotate(1.8deg); }
.tree-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .6rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.tree-heading strong { font: 500 1.55rem/1.2 var(--serif); }
.tree-heading span { color: var(--quiet); font-size: .88rem; }
.tree { padding: 1.35rem 0; }
.tree-row { display: flex; justify-content: center; gap: clamp(.5rem, 2vw, 1.25rem); }
.person { width: clamp(6.3rem, 16vw, 9.4rem); padding: .45rem .3rem; border: 1px solid #95a895; border-radius: .28rem; background: #edf1e8; text-align: center; }
.person small { display: block; color: #43584a; font-size: .8rem; }
.person span { display: block; font: 500 1.45rem/1.2 var(--serif); }
.person.root { color: white; background: var(--green); }
.person.root small { color: #e1efe2; }
.connector { position: relative; width: 1px; height: 1.35rem; margin-inline: auto; background: #758878; }
.fork { height: 1.9rem; background: linear-gradient(transparent 50%, #758878 50%); }
.fork::before { content: ""; position: absolute; width: calc(clamp(6.3rem, 16vw, 9.4rem) + clamp(.5rem, 2vw, 1.25rem)); height: 50%; top: 0; left: 50%; transform: translateX(-50%); border: solid #758878; border-width: 0 1px 1px; }
figcaption { border-top: 1px solid var(--line); padding-top: .7rem; }

.section, .story-grid { padding-block: clamp(3rem, 7vw, 6rem); }
.story { background: #203b2e; color: #faf7ec; }
.story-grid, .report-grid, .feedback-grid, .questions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); }
.story .kicker { color: #d1e3bc; }
.story-copy { font-size: 1.1rem; }
.story-copy p + p { margin-top: .85rem; }
.signature { font-size: .95rem; color: #d1e3bc; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin: 2rem 0; padding-left: 1.45rem; }
.steps li { padding: .8rem .45rem 0 0; border-top: 1px solid var(--line); }
.steps li::marker { font-weight: 750; color: var(--green); }
.steps p { margin: .6rem 0 .9rem; }
.start-prompt { display: flex; align-items: start; justify-content: space-between; gap: 1rem 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .45rem; background: #fffdf9; }
.start-prompt div { flex-shrink: 0; max-width: 16rem; }
#copy-status:not(:empty) { font-size: .9rem; margin-top: .45rem; }
.report { background: #e7ece3; }
.report-notes article { border-top: 1px solid #a8b6a8; padding: 1rem 0; }
.report-notes p { margin-top: .35rem; }
.questions details { border-top: 1px solid var(--line); padding: .85rem 0; }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { font-weight: 650; cursor: pointer; }
.questions details p { margin-top: .5rem; }
.feedback { background: #eee4d6; }
.feedback .button { margin-top: 1rem; }
.footer { min-height: 5rem; }

@media (max-width: 49rem) {
  .hero, .story-grid, .report-grid, .feedback-grid, .questions { grid-template-columns: 1fr; }
  .tree-card { width: min(100%, 26rem); transform: none; }
  .hero { gap: 2.25rem; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .start-prompt { flex-wrap: wrap; }
}
@media (max-width: 27rem) {
  .frame { width: calc(100% - 1.75rem); }
  .top .bar { align-items: flex-start; flex-direction: column; gap: .25rem; padding-block: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
