/* Ecology of Health. One stylesheet, no framework.
   Tokens come from the approved brand (Soil, Field, Sun, Kale). Sun is never body text on Field (2.2:1). */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
/* Metric-matched fallbacks (widths measured in Chrome: Newsreader/Georgia 0.9563, Instrument Sans/Arial 1.0210) so the swap does not move the page */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 95.6%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 102.1%; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --soil: #241d16; --field: #eeece3; --field-2: #e2dfd0; --paper: #f8f6ef;
  --kale: #3f5a34; --kale-d: #2c4125; --sun: #e58a2b; --sun-soft: #f6ce95; --sun-deep: #9a4f0b; --mute: #5a5044;
  --p-soil: #7a5434; --p-roots: #b0522b; --p-rhythm: #e0a028; --p-ground: #4a6b3a; --p-circle: #3f7396;
  --line: rgba(36, 29, 22, .18); --line-d: rgba(238, 236, 227, .25);
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --label: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --sec: clamp(64px, 9.7vw, 140px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--field); color: var(--soil); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, blockquote, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--soil); color: var(--field); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gut); }
.eb { display: block; font: 600 13px/1.3 var(--label); font-stretch: 80%; letter-spacing: .17em; text-transform: uppercase; color: var(--sun-deep); }
.eb.l, .kale .eb, .dark .eb { color: var(--sun-soft); }
.small { font-size: 14px; color: var(--mute); }
.back { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 15px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
.center { text-align: center; justify-self: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 17px/1.1 var(--sans); padding: 17px 26px; border: 0; border-radius: 999px; min-height: 52px; text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -12px rgba(36, 29, 22, .55); }
.btn svg { width: 18px; height: 18px; }
.btn--sun { background: var(--sun); color: var(--soil); }
.btn--ink { background: var(--soil); color: var(--field); }
.btn--fld { background: var(--field); color: var(--soil); }
.btn--ghost { color: var(--field); background: none; box-shadow: inset 0 0 0 1.5px rgba(238, 236, 227, .5); }
.btn--line { color: var(--soil); background: none; box-shadow: inset 0 0 0 1.5px var(--soil); }
.btn--full { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--line[aria-disabled="true"] { box-shadow: inset 0 0 0 1.5px var(--soil); }

/* header (one nav, on dark or on paper) */
.site-header { background: var(--kale-d); color: var(--field); }
.site-header--light { background: var(--paper); color: var(--soil); }
.s-nav { display: flex; align-items: center; gap: 22px; padding-block: 22px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 14px/1 var(--label); font-stretch: 78%; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.mk { width: 34px; height: 34px; flex: none; }
.links { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 16px; }
.links a { text-decoration: none; padding: 8px 0; }
.links a:hover, .links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.links .nav-cta { border: 1.5px solid currentColor; border-radius: 999px; padding: 10px 18px; font-weight: 600; text-decoration: none; }
.site-header:not(.site-header--light) .nav-cta { color: var(--sun-soft); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu__panel { position: absolute; right: 0; top: calc(100% - 6px); z-index: 20; width: min(86vw, 320px); background: var(--soil); color: var(--field); border-radius: 18px; padding: 12px; display: grid; gap: 2px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.menu__panel a:not(.btn) { padding: 14px 12px; text-decoration: none; font-size: 18px; border-radius: 10px; }
.menu__panel a:not(.btn):hover { background: rgba(238, 236, 227, .08); }
.menu__panel .btn { margin-top: 8px; }

/* hero */
.h-hero { background: var(--kale-d); color: var(--field); overflow-x: clip; }
.h-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5.8vw, 84px); align-items: end; padding-top: 40px; }
.h-copy { display: grid; gap: 28px; padding-bottom: clamp(48px, 6.7vw, 96px); align-self: center; justify-items: start; }
.h-copy h1 { font-size: clamp(50px, 6.95vw, 100px); font-weight: 350; line-height: .97; letter-spacing: -.028em; }
.h-copy h1 em { font-weight: 300; color: var(--sun); }
.lede { font-size: 22px; line-height: 1.5; max-width: 34ch; color: rgba(238, 236, 227, .86); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.micro { font-size: 15px; color: rgba(238, 236, 227, .78); max-width: 46ch; }
.arch-wrap { position: relative; justify-self: end; width: clamp(300px, 33.3vw, 480px); }
.sunD { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); top: -9%; right: -12%; }
.arch { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 9999px 9999px 0 0; overflow: hidden; background: #3b4a2f; }
.arch picture, .arch img { width: 100%; height: 100%; }
.arch img { object-fit: cover; object-position: 50% 30%; }
.arch-note { position: absolute; left: -16px; bottom: 9%; background: var(--field); color: var(--soil); font: 500 14px/1.3 var(--sans); padding: 9px 14px; border-radius: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
@media (prefers-reduced-motion: no-preference) { .sunD { animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* sections */
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 14px; max-width: 48ch; margin-bottom: clamp(32px, 4.4vw, 64px); }
.h2, .sec-head h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.03; }
.sec-head p { font-size: 19px; color: var(--mute); }
.dark { background: var(--soil); color: var(--field); }
.dark .sec-head p { color: rgba(238, 236, 227, .78); }
.kale { background: var(--kale-d); color: var(--field); }
.kale p { color: rgba(238, 236, 227, .86); }
.paper { background: var(--paper); }
.f2 { background: var(--field-2); }
.q-grid.q-grid--top { align-items: start; }
.q-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6.1vw, 88px); align-items: center; }
.q-photo { aspect-ratio: 5 / 4; border-radius: 4px; overflow: hidden; background: #3b4a2f; }
.q-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; }
.bq { font: 350 clamp(28px, 3.2vw, 46px)/1.16 var(--serif); letter-spacing: -.012em; text-wrap: pretty; }
.bq em { color: var(--sun-deep); }
.cite { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 16px; color: var(--mute); }
.cite b { color: var(--soil); font-weight: 600; }
.arches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; padding: 0; margin: 0; list-style: none; }
.ac { border-radius: 9999px 9999px 0 0; padding: clamp(100px, 13.2vw, 190px) 20px 24px; display: grid; gap: 8px; align-content: end; text-align: center; color: #fff; }
.ac h3 { font: italic 400 clamp(26px, 2.4vw, 34px)/1 var(--serif); }
.ac p { font-size: 15px; line-height: 1.35; max-width: none; }
.c1 { background: var(--p-soil); } .c2 { background: var(--p-roots); margin-top: 6%; } .c3 { background: var(--p-rhythm); color: var(--soil); margin-top: 2%; } .c4 { background: var(--p-ground); margin-top: 9%; } .c5 { background: var(--p-circle); margin-top: 4%; }
.v-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.v-copy { display: grid; gap: 20px; justify-items: start; }
.v-copy p { font-size: 19px; color: rgba(238, 236, 227, .8); max-width: 36ch; }
.poster { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: #3b4a2f; color: var(--field); text-decoration: none; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 29, 22, 0) 50%, rgba(36, 29, 22, .72)); }
.play { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; background: var(--sun); color: var(--soil); display: grid; place-items: center; }
.play svg { width: 32%; height: 32%; margin-left: 6%; }
.poster .meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0 0 clamp(32px, 4.4vw, 64px); padding: 0; list-style: none; }
.step { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--soil); }
.step b { font: 600 13px/1 var(--label); font-stretch: 80%; letter-spacing: .17em; text-transform: uppercase; color: var(--sun-deep); }
.step h3 { font: 400 clamp(25px, 2.1vw, 30px)/1.1 var(--serif); }
.step p { color: var(--mute); font-size: 17px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door { display: grid; gap: 22px; align-content: space-between; padding: clamp(24px, 3vw, 44px); border-radius: 6px; min-height: 280px; justify-items: start; }
.door h3 { font: italic 350 clamp(32px, 3vw, 44px)/1.04 var(--serif); }
.door p { font-size: 18px; max-width: 34ch; margin-top: 12px; }
.d1 { background: var(--kale); color: var(--field); } .d2 { background: var(--soil); color: var(--field); }
.note { margin-top: 20px; color: var(--mute); font-size: 16px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pv { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--soil); padding-top: 16px; }
.pv h3 { font: 700 21px/1.2 var(--sans); letter-spacing: 0; }
.pv p { color: var(--mute); font-size: 17px; }
.ab-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5.5vw, 80px); align-items: start; }
.stack { display: grid; gap: 18px; justify-items: start; }
.ab-grid p { font-size: 19px; max-width: 52ch; }
.creds { display: grid; grid-template-columns: 170px 1fr; gap: 12px 24px; padding: 26px 0 0; border-top: 1px solid var(--line-d); font-size: 16px; }
.creds dt { font: 600 12px/1.6 var(--label); font-stretch: 80%; letter-spacing: .15em; text-transform: uppercase; color: var(--sun-soft); }
.creds dd { color: rgba(238, 236, 227, .88); }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
.qa { border-bottom: 1.5px solid rgba(36, 29, 22, .25); padding-block: 18px; }
.qa:first-child { border-top: 1.5px solid rgba(36, 29, 22, .25); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; font: 600 19px/1.3 var(--sans); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 24px; line-height: 1; }
.qa[open] summary::after { content: "\2212"; }
.qa p { margin-top: 10px; color: var(--mute); font-size: 17px; max-width: 56ch; }
.final { background: var(--sun); padding-block: clamp(56px, 6.7vw, 96px); }
.final-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { font-size: clamp(38px, 4.45vw, 64px); line-height: 1; letter-spacing: -.025em; max-width: 15ch; }

/* footer */
.foot { background: var(--soil); color: rgba(238, 236, 227, .78); padding-block: 44px 52px; font-size: 15px; }
.foot .wrap { display: grid; gap: 14px; }
.foot .top { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; color: var(--field); }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: rgba(238, 236, 227, .9); text-underline-offset: 4px; }
.foot p { max-width: 92ch; }
.foot .disc { border-top: 1px solid rgba(238, 236, 227, .18); padding-top: 16px; }

/* check-in shell */
.ci-top { display: flex; align-items: center; gap: 12px; padding: 16px var(--gut); border-bottom: 1.5px solid var(--line); background: var(--paper); }
.ci-top b { font: 700 13px/1 var(--label); font-stretch: 80%; letter-spacing: .18em; text-transform: uppercase; }
.ci-top a { margin-left: auto; font-size: 15px; color: var(--mute); text-underline-offset: 4px; }
.ticks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 14px var(--gut) 0; }
.ticks[hidden] { display: none; }
.ticks i { height: 6px; border-radius: 3px; background: rgba(36, 29, 22, .14); transition: background-color .3s; }
.ticks .on:nth-child(1) { background: var(--p-soil); } .ticks .on:nth-child(2) { background: var(--p-roots); } .ticks .on:nth-child(3) { background: var(--p-rhythm); }
.ticks .on:nth-child(4) { background: var(--p-ground); } .ticks .on:nth-child(5) { background: var(--p-circle); } .ticks .on:nth-child(6) { background: var(--sun); }
.ticks .on:nth-child(n+7) { background: var(--kale); } .ticks .on:nth-child(12) { background: var(--soil); }
.ci-body { padding: 18px var(--gut) 40px; display: grid; gap: 16px; max-width: 1600px; margin-inline: auto; }
.ci-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 4.4vw, 64px); align-items: start; padding-top: clamp(0px, 2vw, 22px); }
.ci-split > div { display: grid; gap: 16px; }
.ci-main { gap: 22px !important; }
.mapbox { background: #d8d1bb; border: 2px solid var(--soil); border-radius: 12px; padding: 8px; }
.mapbox svg { width: 100%; height: auto; }
.qhead { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mute); }
.chip { display: inline-flex; font: 700 12px/1 var(--label); font-stretch: 85%; letter-spacing: .13em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; color: #fff; background: var(--soil); }
.chip.soil { background: var(--p-soil); } .chip.roots { background: var(--p-roots); } .chip.rhythm { background: var(--p-rhythm); color: var(--soil); }
.chip.ground { background: var(--p-ground); } .chip.circle { background: var(--p-circle); } .chip.focus { background: var(--sun); color: var(--soil); } .chip.fit { background: var(--kale); }
.qq { font: 400 clamp(27px, 2.8vw, 40px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.qq.s { font-size: clamp(30px, 2.4vw, 34px); }
.q-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.q-fs legend { padding: 0; margin-bottom: 16px; }
.help { font-size: 15px; color: var(--mute); background: var(--paper); border-left: 3px solid var(--sun); padding: 10px 12px; max-width: none; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opt label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 54px; border: 1.5px solid rgba(36, 29, 22, .45); border-radius: 10px; background: #fff; font: 500 17px/1.3 var(--sans); }
.opt:hover label { border-color: var(--soil); }
.opt input:checked + label { border-color: var(--soil); background: var(--sun-soft); box-shadow: inset 0 0 0 1px var(--soil); }
.opt input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 3px; }
.opt--check label::before { content: ""; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--soil); border-radius: 4px; background: #fff; }
.opt--check input:checked + label::before { background: var(--soil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.3 3.3L15 7'/%3E%3C/svg%3E") center / 100% no-repeat; }
.lock { display: flex; gap: 8px; font-size: 14px; color: var(--mute); }
.lock svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.q-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--mute); margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend .soil { --c: var(--p-soil); } .legend .roots { --c: var(--p-roots); } .legend .rhythm { --c: var(--p-rhythm); } .legend .ground { --c: var(--p-ground); } .legend .circle { --c: var(--p-circle); }
.saved { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; background: var(--paper); border-radius: 8px; padding: 12px 14px; color: var(--mute); max-width: none; }
.saved svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.saved p { max-width: none; }
@media (prefers-reduced-motion: no-preference) { .garden .sprout { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; } }
@keyframes grow { from { transform: scale(.1); opacity: 0; } to { transform: none; opacity: 1; } }

/* result and doors */
.res-left { display: grid; gap: 16px; align-content: start; }
@media (max-width: 860px) { .is-door .res-left { display: none; } }
[hidden] { display: none !important; }
.res .res-title { font: 350 clamp(34px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; }
.read { font-size: 18px; max-width: 56ch; }
.prac { background: var(--paper); border-radius: 8px; padding: 16px; display: grid; gap: 6px; border: 1.5px solid rgba(36, 29, 22, .15); }
.prac b { font: 700 12px/1 var(--label); font-stretch: 85%; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep); }
.prac h3 { font: 400 23px/1.15 var(--serif); }
.prac p { font-size: 16px; color: var(--mute); }
.dcard { border-radius: 10px; padding: 20px; display: grid; gap: 12px; position: relative; }
.dcard h3 { font: italic 400 28px/1.05 var(--serif); }
.dcard p { font-size: 16px; }
.dcard.k { background: var(--kale); color: var(--field); } .dcard.s { background: var(--soil); color: var(--field); }
.dcard.q { background: var(--paper); border: 1.5px solid rgba(36, 29, 22, .25); }
.tag { position: absolute; top: -11px; right: 14px; background: var(--sun); color: var(--soil); font: 700 11px/1 var(--label); font-stretch: 85%; letter-spacing: .13em; text-transform: uppercase; padding: 6px 9px; border-radius: 5px; }
.doors-col { display: grid; gap: 22px; align-content: start; }
.fld { display: grid; gap: 6px; }
.fld label { font-weight: 600; font-size: 16px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid rgba(36, 29, 22, .55); border-radius: 8px; background: #fff; color: var(--soil); font-size: 17px; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--soil); }
.fld .hint, .ck small { display: block; font-size: 14px; color: var(--mute); margin-top: 3px; max-width: none; }
.fld .hint { margin: 0; }
.dform { display: grid; gap: 16px; }
.ck { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.ck input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--soil); }
.err { color: #9b1c1c; font-weight: 600; font-size: 15px; }
.err[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.big-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--kale); color: var(--field); }
.big-ic.sun { background: var(--sun); color: var(--soil); }
.big-ic svg { width: 30px; height: 30px; }
.sent { display: grid; gap: 16px; justify-items: start; padding-top: 24px; }
.sent p { font-size: 18px; max-width: 52ch; }
.sent:focus, .sent [tabindex="-1"]:focus, .q [tabindex="-1"]:focus, [data-focus]:focus { outline: none; }

/* safety routes */
.safe .num { font: 800 64px/1 var(--label); font-stretch: 112%; letter-spacing: -.02em; }
.safe h2 { font: 350 clamp(32px, 3vw, 44px)/1.08 var(--serif); }
.safe p { font-size: 18px; max-width: 52ch; }
.safe .ci-body { padding-top: 40px; max-width: 720px; margin-inline: 0; }
@media (min-width: 861px) { .safe .ci-body { margin-inline: auto; } }

/* document pages */
.doc { padding: clamp(40px, 5vw, 72px) max(var(--gut), calc((100% - 1456px) / 2)) var(--sec); display: grid; gap: 16px; background: var(--paper); }
.doc > .stack, .doc > .tbl, .doc > .three, .doc > .lede { margin-bottom: 20px; }
.doc-wrap { background: var(--paper); }
.doc h1 { font-size: clamp(40px, 4.45vw, 64px); line-height: 1.02; letter-spacing: -.025em; }
.doc .lede { font-size: 21px; color: var(--mute); max-width: 60ch; }
.doc h2 { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -.01em; margin-top: 24px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .box ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 17px; }
.doc ol { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.doc a { text-underline-offset: 4px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 16px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid rgba(36, 29, 22, .18); }
.tbl th { font: 600 12px/1.3 var(--label); font-stretch: 82%; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.3vw, 48px); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.box { border: 1.5px solid rgba(36, 29, 22, .2); border-radius: 8px; padding: 24px; display: grid; gap: 12px; align-content: start; background: var(--field); }
.box h3, .doc .box h2 { margin-top: 0; font: 700 13px/1.2 var(--label); font-stretch: 82%; letter-spacing: .15em; text-transform: uppercase; }
.f2 .eb { color: #8f4809; }
.box.ok h3 { color: var(--p-ground); } .box.wt h3 { color: var(--sun-deep); }
.doc .pending { background: var(--field); border: 1.5px dashed var(--sun-deep); border-radius: 8px; padding: 14px 18px; font-size: 16px; max-width: none; }
.doc .route { display: grid; gap: 16px; max-width: 520px; }
.doc .prose-steps { list-style: none; padding: 0; counter-reset: s; gap: 0; }
.doc .prose-steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-top: 1.5px solid var(--line); max-width: none; }
.doc .prose-steps li::before { content: counter(s, decimal-leading-zero); font: 400 30px/1 var(--serif); color: var(--sun-deep); }
.doc .prose-steps h2 { margin: 0 0 6px; font-size: 26px; }
.doc .prose-steps p { margin: 0; }
.conv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.conv > div { display: grid; gap: 20px; }
.about-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7.6vw, 110px); }
.about-hero h1 { font: 350 clamp(48px, 6.1vw, 88px)/1.04 var(--serif); letter-spacing: -.02em; }
.about-hero .lede { color: rgba(238, 236, 227, .9); max-width: 40ch; }
.about-hero .ph { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #3b4a2f; }
.about-hero .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.sec--tight { padding-block: clamp(64px, 7.6vw, 110px); }
.bq--m { font-size: clamp(26px, 2.64vw, 38px); }
.doc-sec { display: grid; gap: 40px; }

/* mobile */
@media (max-width: 860px) {
  .links { display: none; }
  .menu { display: block; }
  .h-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .h-copy { padding-bottom: 0; gap: 20px; }
  .h-copy h1 { font-size: 50px; }
  .lede { font-size: 19px; }
  .h-copy .btn { width: 100%; }
  .arch-wrap { justify-self: center; width: 300px; }
  .sec-head { margin-bottom: 32px; }
  .q-grid, .v-grid, .ab-grid, .faq, .conv, .two { grid-template-columns: 1fr; gap: 28px; }
  .q-grid { gap: 28px; }
  .arches { grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
  .ac { margin-top: 0 !important; padding: 70px 12px 18px; }
  .ac p { font-size: 14px; }
  .c5 { grid-column: 1 / -1; }
  .play { width: 64px; height: 64px; }
  .steps, .trio, .doors, .three { grid-template-columns: 1fr; gap: 22px; }
  .doors { gap: 12px; }
  .door { padding: 24px; min-height: 0; }
  .door .btn, .final .btn { width: 100%; }
  .creds { grid-template-columns: 1fr; gap: 2px; }
  .creds dd { margin-bottom: 12px; }
  .foot nav { margin-left: 0; }
  .ci-split { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
  .ci-split .map-col { order: -1; }
  .ci-split .legend, .ci-split .map-line { display: none; }
  .hide-m { display: none !important; }
  .tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl thead { position: absolute; left: -9999px; }
  .tbl th, .tbl td { border: 0; padding: 2px 0; }
  .tbl td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--mute); }
  .tbl tr { border-bottom: 1px solid rgba(36, 29, 22, .18); padding: 12px 0; }
  .safe .num { font-size: 56px; }
}
@media print {
  .site-header, .foot, .btn, .doors-col, .ci-top, .ticks, .q-actions, .back { display: none !important; }
  body { background: #fff; }
}

/* SEO pages and home sections (08 Oct, search-intent copy) */
.h-copy h1.h1-seo { font-size: clamp(44px, 5.2vw, 76px); line-height: 1; }
.body-l { font-size: 19px; line-height: 1.6; max-width: 58ch; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topics li > a, .topics li > div { display: grid; gap: 8px; height: 100%; padding: 24px; border-radius: 8px; background: var(--field); border: 1.5px solid rgba(36, 29, 22, .16); color: var(--soil); text-decoration: none; }
.topics li > a { border-color: var(--soil); }
.topics li > a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.topics li > a h3::after { content: " \2192"; color: var(--sun-deep); }
.topics h3 { font: 400 26px/1.15 var(--serif); }
.topics p { font-size: 16px; color: var(--mute); }
.article { max-width: none; }
.article > * { max-width: 760px; }
.article h1 { font-size: clamp(38px, 4.2vw, 60px); }
.article h2 { margin-top: 32px; }
.article p, .article li { font-size: 18px; line-height: 1.65; }
.article .lede { font-size: 21px; line-height: 1.55; }
.article h3 { font: 400 22px/1.2 var(--serif); }
.cta-box { margin-top: 32px; padding: 28px; border-radius: 10px; background: var(--kale-d); color: var(--field); display: grid; gap: 12px; }
.cta-box h2 { margin-top: 0; color: var(--field); }
.cta-box p { color: rgba(238, 236, 227, .9); }
.cta-box .btn--line { color: var(--field); box-shadow: inset 0 0 0 1.5px rgba(238, 236, 227, .6); }
.faq-list { display: grid; max-width: 760px; }
.sources { margin-top: 40px; font-size: 15px; }
.sources li { font-size: 15px; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }
.byline { font-size: 15px; color: var(--mute); }
.article sup a { text-decoration: none; font-size: 12px; padding-inline: 1px; }
.article sup + sup::before { content: ","; font-size: 12px; }

/* QA round 10 Oct 2026 ------------------------------------------------------------------------------------------- */
/* Long source URLs and words never push a page wider than the phone. */
.doc, .doc *, main p, main li, main a { overflow-wrap: anywhere; }
.doc > * { min-width: 0; }
/* Tap targets: 44 px tall on touch screens (WCAG 2.5.5 / Apple HIG). */
@media (pointer: coarse) {
  .foot nav a, .foot a[href^="mailto:"], .links a, .back, .q-back, .qa summary, .ci-top a { display: inline-flex; align-items: center; min-height: 44px; }
  .qa summary { padding-block: 10px; }
  sup a { display: inline-block; min-width: 24px; min-height: 24px; text-align: center; }
}
/* Field errors */
.field-err { margin: 6px 0 0; color: #9b1c1c; font-size: 15px; font-weight: 600; }
[aria-invalid="true"] { border-color: #b42318 !important; box-shadow: 0 0 0 2px rgba(180, 35, 24, .18); }
.check-row:has(input[aria-invalid="true"]) { outline: 2px solid #b42318; outline-offset: 4px; border-radius: 8px; }
.door-hint--warn { color: #8a3b0c; font-weight: 600; }
/* Skip link target keeps no visible ring when focused programmatically */
main:focus { outline: none; }
