@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-normal-latin.woff2?v=2a24bad466") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-normal-latin-ext.woff2?v=a0cd390d01") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-italic-latin.woff2?v=011e0ca2bd") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-italic-latin-ext.woff2?v=513549ab98") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

:root {
  --paper: #f5f0e6; --ink: #1c1a17; --muted: #4d4639; --rule: #cdc1aa; --link: #8a2f0a; --accent: #b3380e;
  --night: #04060b; --glass: rgba(6, 9, 16, 0.74); --sky-ink: #eef2f8; --sky-muted: #b9c3d3; --gold: #ffcf86; --breath: #bcd4ff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bar: 3rem; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0d1017; --ink: #e9edf3; --muted: #b3bccb; --rule: #2c3342; --link: #ffc27a; --accent: #ffb35c; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0d1017; --ink: #e9edf3; --muted: #b3bccb; --rule: #2c3342; --link: #ffc27a; --accent: #ffb35c; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--sky-ink); font: 400 1.1875rem/1.62 var(--serif); }
a { color: var(--gold); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }
b { font-weight: 650; color: #fff; }
sup { line-height: 0; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
.labels, .gauge { pointer-events: none; }
.labels { position: fixed; inset: 0; z-index: 1; }
.labels span { position: absolute; left: 0; top: 0; font: 600 .8rem/1 var(--sans); letter-spacing: .04em; color: #fff; padding: .25rem .5rem; margin: -.55rem 0 0 .6rem; border-radius: 999px; background: rgba(0,0,0,.55); transition: opacity .4s; white-space: nowrap; }
.labels span::before { content: ""; position: absolute; left: -.8rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.225rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.labels span[data-id="them"], .labels span[data-id="child"] { color: var(--gold); }
.gauge { position: fixed; z-index: 2; right: 1.2rem; top: calc(var(--bar) + 1rem); font: 600 1rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--breath); background: rgba(0,0,0,.55); padding: .6rem .9rem; border-radius: 999px; opacity: 0; transition: opacity .5s; font-variant-numeric: tabular-nums; }
.gauge.on { opacity: 1; }

/* bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .9rem; height: var(--bar); padding: 0 1rem; background: rgba(4,6,11,.72); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); font: 500 .9rem/1 var(--sans); white-space: nowrap; }
.topbar a { color: var(--sky-ink); text-decoration: none; }
.topbar .home { font-weight: 700; }
.topnav { display: flex; gap: .9rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { padding: .9rem .1rem; border-bottom: 2px solid transparent; color: var(--sky-muted); }
.topnav a[aria-current] { border-bottom-color: var(--gold); color: #fff; }
.chip { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .7rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; border: 0; background: none; color: var(--sky-ink); border-radius: 50%; cursor: pointer; flex: none; }
.icon-btn svg[hidden] { display: none; }
@media (max-width: 560px) { .topbar .home { display: none; } }
.rail { display: none; }

/* story */
main { position: relative; z-index: 3; }
.story { position: relative; }
.step { min-height: 62vh; padding: 12vh 1.2rem; display: flex; align-items: center; }
.step:last-child { min-height: 90vh; }
.card { max-width: 31rem; background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 1.3rem 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.card p { margin: 0 0 .9rem; } .card p:last-child { margin-bottom: 0; }
.card.wide { max-width: 34rem; }
@media (min-width: 901px) { .step { padding-left: 6vw; } }
@media (max-width: 900px) { .step { align-items: flex-end; min-height: 70vh; padding-bottom: 6vh; } .card { margin: 0 auto; } }
h1, h2 { font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: 1.55rem; margin: 0 0 .7rem; }
h2 .anchor { color: inherit; text-decoration: none; }
h2 .anchor:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.stamp { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--breath); margin: 0 0 .8rem !important; }
.from { color: var(--sky-muted); font-style: italic; }
.small { font: 400 .85rem/1.5 var(--sans); color: var(--sky-muted); max-width: 26rem; margin: 1rem auto 0; }
.end { font-size: 1.35rem; line-height: 1.45; font-style: italic; color: #fff; }

/* hero */
.hero { min-height: calc(100svh - var(--bar)); flex-direction: column; justify-content: center; align-items: center !important; text-align: center; padding: 8vh 1.2rem 6vh !important; }
.kicker { font: 600 .8rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--breath); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 4.4rem); max-width: 15ch; margin: 0 auto .9rem; text-shadow: 0 2px 30px #000; }
.deck { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--sky-muted); max-width: 30rem; margin: 0 auto 2rem; }
.breathe-ui { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.exhale { position: relative; width: 8.5rem; height: 8.5rem; border-radius: 50%; border: 1px solid rgba(188,212,255,.5); background: radial-gradient(circle, rgba(188,212,255,.18), rgba(188,212,255,.02) 70%); color: #fff; font: 600 1.05rem/1.2 var(--sans); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.exhale .ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(188,212,255,.35); animation: breathe 10s ease-in-out infinite; }
.exhale.on { background: radial-gradient(circle, rgba(188,212,255,.45), rgba(188,212,255,.05) 70%); }
.exhale.on .ring { animation: none; transform: scale(1.25); opacity: 0; transition: all 1.2s; }
@keyframes breathe { 0% { transform: scale(.85); opacity: .3; } 40% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(.85); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .exhale .ring { animation: none; } }
.mic { min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--sky-ink); font: 500 .9rem/1 var(--sans); cursor: pointer; }
.note { font: 500 .9rem/1.4 var(--sans); color: var(--gold); min-height: 1.3em; margin: .6rem 0 0; }
.cue { font: 500 .85rem/1 var(--sans); color: var(--sky-muted); margin-top: 2rem; opacity: 0; transition: opacity 1s; }
.breathed .cue { opacity: 1; }
html.no-js .cue, html.no-gl .cue { opacity: 1; }

/* controls */
.picker { display: grid; gap: .7rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; }
@media (max-width: 560px) { .picker { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: .35rem; font: 500 .8rem/1.2 var(--sans); color: var(--sky-muted); }
label.place { margin-top: 1rem; }
select { min-height: 44px; font: 500 1rem/1 var(--sans); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 0 .6rem; }
select option { color: #000; background: #fff; }
.result { color: var(--gold); font-size: 1.05rem; min-height: 1.5em; }
.inhale { min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px; border: 1px solid rgba(255,207,134,.6); background: rgba(255,207,134,.12); color: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; margin-bottom: .8rem; }
.inhale:hover { background: rgba(255,207,134,.22); }

/* method: follows the theme */
.sources { position: relative; z-index: 3; background: var(--paper); color: var(--ink); padding: 3rem 1.2rem 2rem; }
.sources > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
.sources a { color: var(--link); }
.sources h2 .anchor { color: var(--ink); }
.sources h3 { font: 700 .95rem/1.3 var(--sans); margin: 2rem auto .6rem; }
.sources .method, .sources li { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.sources b { color: inherit; }
.srcs, .related { padding-left: 1.2rem; }
.srcs li, .related li { margin-bottom: .5rem; }
.stamp-line, .sources .stamp { color: var(--muted); font: 400 .85rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.foot { position: relative; z-index: 3; background: var(--paper); color: var(--muted); border-top: 1px solid var(--rule); padding: 1.2rem; text-align: center; font: 400 .9rem/1.4 var(--sans); }
.foot a { color: var(--link); }
html.no-gl #scene, html.no-gl .gauge, html.no-gl .labels { display: none; }
html.no-gl body { background: radial-gradient(ellipse at 50% 30%, #0e1a33, var(--night) 70%) fixed; }
.share { margin-top: 1.2rem; }
.share-row { display: flex; flex-wrap: nowrap; gap: .35rem; align-items: center; }
.share-row .lab { font: 500 .85rem/1 var(--sans); color: var(--sky-muted); margin-right: .3rem; }
.share-row a, .share-row button { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--sky-ink); cursor: pointer; }
.share-row a:hover, .share-row button:hover, .share-row a:focus-visible, .share-row button:focus-visible { color: var(--gold); border-color: var(--gold); }
.share-row [hidden] { display: none; }
@media (pointer: coarse) { .share-row a, .share-row button { width: 2.75rem; height: 2.75rem; } }
.share-status { font: 500 .85rem/1.3 var(--sans); color: var(--gold); min-height: 1.2em; margin: .4rem 0 0; }
.sources a { overflow-wrap: anywhere; }
html, body { overflow-x: clip; }
@media (max-width: 900px) { .gauge { top: calc(var(--bar) + .6rem); bottom: auto; right: 50%; transform: translateX(50%); font-size: .85rem; } }
