@font-face { font-family: Anybody; src: url(/shared/fonts/anybody.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/shared/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
:root { color-scheme: dark; --ink: #fff4e8; --lamp: #ffc27a; --deep: #120f2a; --edge: clamp(1.1rem, 6vw, 6rem); }
* { box-sizing: border-box; }
html { background: #171a3a; }
body { margin: 0; color: var(--ink); font: 400 1.06rem/1.5 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button, select { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p { margin: 0; }
h1, h2, header strong, output, #labels b { font-family: Anybody, system-ui, sans-serif; }
h1 { font-weight: 300; font-size: clamp(2.9rem, 8.4vw, 7rem); line-height: 0.92; letter-spacing: -0.025em; }
h1 span { display: block; }
h2 { font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: -0.02em; font-stretch: 120%; text-wrap: balance; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 5px; }

header { position: fixed; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; padding: 0.6rem clamp(1.1rem, 4vw, 3rem); }
header strong { margin-right: auto; font-weight: 600; font-size: 1.12rem; font-stretch: 125%; }
header select { min-height: 44px; }
header option { background: var(--deep); }

.cap p { font-size: 1.2rem; margin-top: 1rem; max-width: 29rem; text-wrap: pretty; }
.cap .who { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; font-size: 1rem; margin-top: 0.9rem; }
.who svg { flex: none; }
.go { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lamp); }
.ctl { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; align-items: center; margin-top: 1.1rem; }
.ctl output { font-size: 1.7rem; font-stretch: 120%; min-width: 4.8rem; font-variant-numeric: tabular-nums; }
.ctl input { flex: 1 1 60%; min-height: 44px; margin: 0; accent-color: var(--lamp); }
.ctl button, .ask button { min-height: 44px; text-align: left; border-bottom: 2px solid transparent; opacity: 0.8; transition: opacity 0.15s; }
.ctl [aria-pressed="true"], .ask [aria-pressed="true"], #light { opacity: 1; border-color: var(--lamp); }
.ask { margin-top: 0.6rem; }
#questions { display: grid; justify-items: start; }

/* an ordinary page, until the scene is there */
#gl, #scrim, #labels, #lift { display: none; }
html:not(.scene) body { min-height: 100vh; background: linear-gradient(#22265f, #5c3270 45%, #a14a4f 100%); }
html:not(.scene) header { position: absolute; }
html:not(.scene) .cap { padding: 6rem var(--edge) 2rem; }
html:not(.scene) .cap :is(.ctl, .ask) { display: none; }

/* the scene */
.scene #gl { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }
.scene #scrim { display: block; position: fixed; inset: 0; pointer-events: none; opacity: 0.6; background: linear-gradient(78deg, #120f2aee 4%, #120f2a99 30%, #120f2a00 56%); }
.scene #labels { display: block; position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#labels div { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; font-weight: 600; font-size: 15px; line-height: 1.2; text-shadow: 0 0 10px #100c28, 0 1px 3px #100c28; }
#labels b { display: block; font-weight: 500; font-size: 26px; line-height: 1; font-stretch: 115%; font-variant-numeric: tabular-nums; }
#labels b.word { font-size: 20px; }
#labels i { font: 500 15px "Instrument Sans", system-ui, sans-serif; margin-left: 0.15em; }
#labels small { font-size: 14px; font-weight: 400; }
.scene #story { position: relative; height: 1000vh; }
.scene .cap { position: fixed; z-index: 3; left: var(--edge); bottom: clamp(2rem, 10vh, 7rem); width: min(27rem, calc(100% - 2.2rem)); opacity: 0; pointer-events: none; text-shadow: 0 0 28px #100c28; }
.scene .cap.hero { width: min(62rem, calc(100% - 2.2rem)); }
.scene .cap.low h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.scene .cap.on { opacity: 1; transition: opacity 0.5s; }
.scene .cap.on > * { pointer-events: auto; }
.scene #lift { position: fixed; z-index: 4; right: clamp(0.4rem, 2.4vw, 2rem); top: 50%; translate: 0 -50%; display: grid; }
#lift button { min-height: 44px; min-width: 44px; display: flex; gap: 0.8rem; align-items: center; justify-content: flex-end; opacity: 0.75; text-shadow: 0 0 8px #100c28, 0 0 3px #100c28; }
#lift button::after { content: ""; width: 16px; height: 2px; background: currentColor; transition: width 0.3s; }
#lift [aria-current="true"] { opacity: 1; }
#lift [aria-current="true"]::after { width: 40px; height: 3px; background: var(--lamp); }

@media (max-width: 700px) {
  .cap p { font-size: 1.08rem; }
  .scene .cap { bottom: 2.2rem; }
  .scene #scrim { background: linear-gradient(0deg, #120f2af2 14%, #120f2aa0 36%, #120f2a00 58%); opacity: 0.8; }
  #lift span { display: none; }
  #labels b, #labels b.word { font-size: 19px; }
  #labels i, #labels small { font-size: 13px; }
}
/* a phone on its side */
@media (max-height: 480px) {
  h1 { font-size: 2.6rem; }
  .scene .cap h2 { font-size: 1.9rem; }
  .cap p { font-size: 1rem; margin-top: 0.4rem; }
  .scene .cap { bottom: 0.8rem; }

  .scene #lift { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
