:root {
  color-scheme: light;
  --paper: #FAF8F3;
  --white: #FFFFFF;
  --forest: #294D3B;
  --muted: #505E53;
  --sage: #E7EDE3;
  --terra: #D9A37D;
  --rose: #D8B6C7;
  --line: #D9DED4;
  --control: #738579;
  --focus: #87516E;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--paper);
  color: var(--forest);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
figure, h1, h2 { margin: 0; }
p { margin: .55rem 0 .9rem; color: var(--muted); }
a { color: inherit; text-underline-offset: .2em; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button, a, .choice { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
h1 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); text-wrap: balance; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }

.site {
  width: min(100% - 2rem, 1120px);
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  padding: .65rem 0;
}
.masthead { min-height: 64px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: .13em; }
.mark { width: 17px; height: 22px; background: var(--forest); border-radius: 100% 0; transform: rotate(-12deg); }
.edition, footer, .fine, .credit { font-size: .79rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); }
main { padding: clamp(1.15rem, 3.6vw, 3rem) 0; min-width: 0; }
.scene { animation: appear 180ms ease-out; }
@keyframes appear { from { opacity: 0; translate: 0 3px; } }
@media (prefers-reduced-motion: reduce) { .scene { animation: none; } }

.hero, .spread { display: grid; align-items: center; gap: clamp(1.15rem, 3.5vw, 3rem); }
.hero {
  padding: clamp(.85rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.hero .copy p { max-width: 42ch; margin: .75rem 0; }
.hero .copy .fine { margin-bottom: 0; }
.kicker {
  display: inline-block;
  margin-bottom: .7rem;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero .kicker { border-left: 3px solid var(--terra); padding-left: .55rem; }
.hero-art, .spread > figure, .study-specimen {
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
.hero-art .art { aspect-ratio: 1.6; }
.hero-art figcaption, .study-specimen figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem .75rem;
  padding: .6rem .8rem;
  font-size: .75rem;
  background: #F4E7EC;
}
.art { display: block; width: 100%; aspect-ratio: 1.42; background: var(--sage); overflow: hidden; }
.art img, .art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.credit { margin: 0; padding: .5rem .7rem; }

.primary, .secondary, .quiet {
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 650;
}
.primary { background: var(--forest); color: var(--white); }
.primary:hover { background: #203D2E; }
.primary:disabled { background: var(--sage); color: var(--muted); cursor: default; }
.secondary { color: var(--forest); background: var(--white); border-color: var(--control); }
.secondary:hover, .quiet:hover { background: var(--sage); }
.quiet { color: var(--forest); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.exit { font-size: .8rem; padding-inline: .4rem; }
.nav, .paired { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nav { justify-content: space-between; margin-top: .9rem; }
.paired > * { flex: 1 1 12rem; }

.narrow { max-width: 1000px; margin: auto; }
.scene-result.narrow { max-width: 620px; }
.intro p { max-width: 38ch; }
.progress { display: flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 640; margin-bottom: .75rem; }
.progress progress { width: 64px; height: .42rem; accent-color: var(--forest); }
.question-panel, .care-sheet, .scene-result > div {
  min-width: 0;
  padding: clamp(.75rem, 2.2vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.question-panel { border-top: 3px solid var(--sage); }
.scene-alternative .question-panel { border-top-color: var(--rose); }
.scene-barriers .question-panel { border-top-color: var(--terra); }
.group { border: 0; padding: 0; margin: 0 0 .8rem; min-width: 0; }
.group legend { font-size: .94rem; font-weight: 700; margin-bottom: .4rem; padding: 0; }
.options { display: grid; gap: .4rem; }
.choice {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem .6rem;
  border: 1px solid var(--control);
  border-radius: 7px;
  font-size: .9rem;
  line-height: 1.28;
  background: var(--white);
  cursor: pointer;
}
.choice:hover { background: #F3F6F1; }
.choice:has(input:checked) { border-color: var(--forest); background: var(--sage); }
input { accent-color: var(--forest); width: 17px; height: 17px; margin: 0; flex: none; }
textarea {
  width: 100%;
  display: block;
  margin-top: .25rem;
  padding: .45rem .55rem;
  resize: vertical;
  border: 1px solid var(--control);
  border-radius: 6px;
  color: var(--forest);
  background: var(--white);
}

.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: .85rem 0; }
.tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: var(--white);
  color: var(--forest);
  border: 1px solid var(--control);
  border-radius: 9px;
}
.tile:hover, .tile[aria-pressed="true"] { background: var(--sage); border-color: var(--forest); }
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--forest); }
.tile span { display: block; padding: .5rem .55rem; font-size: .92rem; font-weight: 720; }
.tile i { display: block; font-size: .75rem; font-weight: 400; overflow-wrap: anywhere; }
.garden-controls .options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.garden-controls .choice { padding-inline: .4rem; }
.decision { margin-top: .8rem; padding: .8rem; border-radius: 9px; background: var(--sage); }
.decision h2 { margin-bottom: .55rem; }
.spread > div { min-width: 0; }
.scene-reveal > div { padding: .8rem 0; }
.scene-result > div { border-top: 3px solid var(--terra); }
.care-sheet { margin-top: .75rem; }
.care-sheet .art { aspect-ratio: 3.1; border-radius: 7px; }
.care { margin: .35rem 0; }
.care div { display: grid; grid-template-columns: 4.15rem 1fr; gap: .55rem; padding: .38rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.care dt { font-weight: 700; }
.care dd { margin: 0; color: var(--muted); }
.care-sheet p { display: inline-block; margin: .4rem .6rem 0 0; padding: 0; }
.study-specimen { margin-top: .9rem; }
.study-specimen .art { aspect-ratio: 2.1; }
.status:empty { display: none; }

@media (min-width: 700px) {
  .hero, .spread { grid-template-columns: 1fr 1.1fr; }
  .hero-art .art { aspect-ratio: 1.22; }
  .hero .copy { padding-inline: .4rem; }
  .narrow:has(.question-panel) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: start; }
  .scene-care.narrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-context .question-panel .options, .scene-barriers .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
  .garden-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
  .garden-controls .nav { grid-column: 2; margin: 0; }
  .garden-controls .group { margin-bottom: 0; }
  .spread .art { aspect-ratio: 1.25; }
}

@media (max-width: 699px) {
  .question-panel { margin-top: .75rem; }
  .scene-context .group:has([name="experience"]) .options { grid-template-columns: 1fr 1fr; }
  .study-specimen .art { aspect-ratio: 3.1; }
  .scene-reveal, .scene-result { gap: .7rem; }
  .spread .art { aspect-ratio: 1.85; }
}
@media (max-width: 460px) {
  .edition { display: none; }
  .masthead { gap: .25rem; }
  .hero-art .art { aspect-ratio: 1.45; }
}
