/* Sky site. The page is the sky: a fixed WebGL canvas behind everything (html.webgl), or a
   rendered poster plus a painted column of air when WebGL or motion is off. */

@font-face { font-family: Inter; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/Inter-Light.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/Inter-Regular.ttf) format("truetype"); }
@property --scrim-a { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --navy: #0a1b3d;
  --white: #ffffff;
  --sun: #ffcf8a;
  --sun-ink: #0a1b3d;
  --deep: #0d3a8a;
  --doc-bg: #f4f7fb;
  --doc-ink: #0a1b3d;
  --doc-soft: #3a4a66;
  --doc-rule: #d5dde9;
  --doc-band-top: #0b2f73;
  --doc-band-bottom: #5f8fcb;
  --gutter: clamp(1rem, 5vw, 4rem);
  --measure: 36rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --doc-bg: #08122b;
    --doc-ink: #e9eff8;
    --doc-soft: #b4c1d6;
    --doc-rule: #22314f;
    --doc-band-top: #050b22;
    --doc-band-bottom: #2b3f73;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: #9fbde0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
[data-ink="dark"] :focus-visible, [data-ink="dark"]:focus-visible { outline-color: var(--navy); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- ink and measured scrim ---------- */
[data-ink] { position: relative; isolation: isolate; transition: color .6s var(--ease), --scrim-a .6s var(--ease); }
[data-ink]::before {
  /* One faint, widely feathered scrim per text block (peak opacity capped at .3 by sky.js). */
  content: ""; position: absolute; inset: -2.5em -4em; z-index: -1; pointer-events: none;
  border-radius: 4em; background: rgb(var(--scrim) / var(--scrim-a)); filter: blur(56px);
}
[data-ink="light"] { color: var(--white); --scrim: 6 18 46; }
[data-ink="dark"] { color: var(--navy); --scrim: 236 242 250; }

/* ---------- the sky layer ---------- */
/* Canvas, poster and the hero grid all use lvh, so the horizon (60% down the canvas) and the
   name stay together when a phone's toolbar shows or hides. vh is the fallback. */
.sky { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-poster { position: absolute; inset: 0; background: #7fa6d6 url(/img/poster-wide.jpg) center 60% / cover no-repeat; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
html.webgl .sky { position: fixed; }
html.webgl.sky-ready .sky canvas { opacity: 1; transition: opacity 1.2s var(--ease); }
@media (max-aspect-ratio: 4/5) { .sky-poster { background-image: url(/img/poster-tall.jpg); background-position: center 52%; } }
@media (prefers-color-scheme: dark) {
  body { background: #0b1a3c; }
  .sky-poster { background-color: #142a55; background-image: url(/img/poster-wide-dark.jpg); }
}
@media (prefers-color-scheme: dark) and (max-aspect-ratio: 4/5) { .sky-poster { background-image: url(/img/poster-tall-dark.jpg); } }

/* Without WebGL (or with reduced motion) each band paints its own still air. */
html:not(.webgl) [data-sky="sea"] { background: linear-gradient(#cfdbe9 0, #6f9ad0 22vh, #2a63ac 55vh, #1d4f97 100%); }
html:not(.webgl) [data-sky="coast"], html:not(.webgl) [data-sky="land"] { background: #1d4f97; }
html:not(.webgl) [data-sky="weather"] { background: linear-gradient(#1d4f97 0, #9aa6b4 40vh, #c5ccd5 70%, #b9cde3 100%); }
html:not(.webgl) [data-sky="clear"] { background: linear-gradient(#b9cde3 0, #2c62a8 40vh, #1b4a92 100%); }
html:not(.webgl) [data-sky="high"] { background: linear-gradient(#1b4a92, #173f80); }
html:not(.webgl) [data-sky="evening"] { background: linear-gradient(#173f80, #2b2f6b 70%, #3a2c5e); }
html:not(.webgl) [data-sky="dusk"] {
  background:
    radial-gradient(1px 1px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 55%, #dfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 50%, #fff 50%, transparent 51%),
    linear-gradient(#3a2c5e 0, #1a1a46 45%, #0d1030 80%, #e48a5a 99%, #f2b27a 100%);
}
@media (prefers-color-scheme: dark) {
  html:not(.webgl) [data-sky="sea"] { background: linear-gradient(#2d3f66 0, #1d3466 30vh, #132a5a 100%); }
  html:not(.webgl) [data-sky="coast"], html:not(.webgl) [data-sky="land"] { background: #132a5a; }
  html:not(.webgl) [data-sky="weather"] { background: linear-gradient(#132a5a 0, #2f3746 40vh, #3a4250 70%, #1b2d55 100%); }
  html:not(.webgl) [data-sky="clear"] { background: linear-gradient(#1b2d55, #112656); }
  html:not(.webgl) [data-sky="high"] { background: #112656; }
  html:not(.webgl) [data-sky="evening"] { background: linear-gradient(#112656, #1b1b4a); }
  html:not(.webgl) [data-ink]:not(.name) { color: var(--white); --scrim: 6 18 46; }
}

/* ---------- home ---------- */
/* The hero is a two-row grid: the copy in the sky, then the name sitting on the horizon
   (60% down). If the copy runs long, the name moves down onto the cloud rather than overlap. */
.hero {
  --name-size: clamp(2rem, 7.4vw, 6.75rem);
  --top: clamp(4.5rem, 11vh, 7.5rem);
  --top: clamp(4.5rem, 11lvh, 7.5rem);
  min-height: 100svh; padding: var(--top) var(--gutter) 3rem; position: relative;
  --horizon: 60vh;
  --horizon: 60lvh;
  display: grid; grid-template-rows: minmax(calc(var(--horizon) - var(--top) - var(--name-size) * .78), auto) auto; align-content: start;
}
.masthead { order: 2; text-align: center; padding-top: calc(var(--name-size) * .3); align-self: start; } /* baseline .3em into the cloud */
.name {
  display: inline-block; margin: 0 -.42em 0 0; font-weight: 300; text-transform: uppercase;
  font-size: var(--name-size); letter-spacing: .42em; line-height: 1;
}
.name[data-ink]::before { inset: -.3em -.6em; }
.hero-copy { order: 1; max-width: 40rem; align-self: start; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 14em; }
.hero .sub { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 34em; }
.hero .note { margin-top: 1.25rem; font-size: .9375rem; letter-spacing: .02em; }
.cta-row { margin-top: 1.75rem; }

.band { padding: clamp(6rem, 18vh, 12rem) var(--gutter); }
.moment {
  min-height: 92vh; display: grid; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  grid-template-columns: minmax(0, 1fr); padding: 12vh var(--gutter);
}
.moment h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); text-transform: uppercase; letter-spacing: .2em; line-height: 1.25; }
.moment .body { margin-top: 1.25rem; max-width: var(--measure); font-size: 1.125rem; }
.moment figure { margin: 0; justify-self: center; width: min(58vw, 15.5rem); }
.moment img { border-radius: 2.2rem; outline: 1px solid rgb(255 255 255 / .28); outline-offset: -1px; aspect-ratio: 9 / 19.5; object-fit: cover; width: 100%; box-shadow: 0 30px 80px -30px rgb(4 14 40 / .55); }

.honesty { min-height: 175vh; padding: 20vh var(--gutter) 30vh; }
.honesty .inner { position: sticky; top: 16vh; max-width: 42rem; margin: 0 auto; }
.honesty h2, .audience h2, .closing h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.prose { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: var(--measure); }

.audience { min-height: 100vh; display: grid; align-content: center; }
.audience .inner { max-width: 42rem; margin-left: auto; }

.faq { padding-top: 14vh; padding-bottom: 14vh; }
.faq-list { max-width: 46rem; margin: 0 auto; }
.faq details { border-top: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1.25rem; gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 1.25rem; height: 1.25rem; justify-self: end;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2.75rem 1.6rem 0; max-width: var(--measure); }

.closing { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.closing h2 { max-width: 14em; margin: 0 auto; }

.site-footer { min-height: 85vh; display: grid; align-content: start; padding: 24vh var(--gutter) 30vh; font-size: .9375rem; }
.site-footer .inner { display: grid; gap: .9rem; max-width: 44rem; width: 100%; margin: 0 auto 0 0; }
.site-footer .foot-name { margin-bottom: .6rem; }
.site-footer p + p { margin-top: 0; }
.site-footer .foot-name { font-weight: 300; text-transform: uppercase; letter-spacing: .42em; font-size: 1.25rem; }
.site-footer .fine { max-width: 40rem; font-size: .875rem; margin-top: .6rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.site-footer nav a { display: inline-block; padding: .4rem 0; }

/* ---------- notify form ---------- */
.notify { max-width: 30rem; }
.notify label { display: block; font-size: .9375rem; margin-bottom: .5rem; }
.field { display: flex; gap: .5rem; flex-wrap: wrap; }
.field input {
  flex: 1 1 14rem; min-width: 0; font: inherit; color: var(--navy); background: var(--white);
  border: 1.5px solid transparent; border-radius: 999px; padding: .85rem 1.25rem; min-height: 3rem;
}
.field input::placeholder { color: #5b6a85; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.btn {
  font: inherit; font-weight: 400; color: var(--sun-ink); background: var(--sun); border: 0; border-radius: 999px;
  padding: .85rem 1.5rem; min-height: 3rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn[aria-disabled="true"] { opacity: .75; cursor: progress; }
.form-error { margin-top: .75rem; font-size: .9375rem; padding: .6rem .9rem; border-radius: .75rem; background: #fff3f2; color: #8a1c14; }
.form-error[hidden] { display: none; }
.form-consent { margin-top: .75rem; font-size: .875rem; }

.sticky-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 10;
  display: flex; justify-content: center; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px -10px rgb(4 14 40 / .6); }

/* ---------- cookie component (off unless switched on) ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 20; max-width: 34rem; margin: 0 auto;
  background: var(--navy); color: var(--white); border-radius: 1.25rem; padding: 1.1rem 1.25rem;
  display: grid; gap: .9rem; font-size: .9375rem; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6);
}
.cookie[hidden] { display: none; }
.cookie .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie button { font: inherit; border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; border: 1.5px solid rgb(255 255 255 / .7); background: transparent; color: var(--white); }
.cookie [data-cookie-decline] { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- document pages (privacy, terms) ---------- */
.doc { background: var(--doc-bg); color: var(--doc-ink); }
.doc-band {
  background: linear-gradient(var(--doc-band-top), var(--doc-band-bottom));
  color: var(--white); padding: 1.5rem var(--gutter) clamp(2.5rem, 8vh, 4.5rem); min-height: 34vh; display: grid; align-content: space-between; gap: 3rem;
}
.doc-band .home-link { font-weight: 300; text-transform: uppercase; letter-spacing: .42em; text-decoration: none; font-size: 1rem; justify-self: start; padding: .4rem 0; }
.doc-band h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.doc-main { padding: 3rem var(--gutter) 5rem; }
.doc-main .inner { max-width: 42rem; }
.draft {
  border: 1.5px solid currentColor; border-radius: .75rem; padding: .75rem 1rem; margin-bottom: 2rem;
  font-weight: 400; letter-spacing: .02em;
}
.updated { color: var(--doc-soft); font-size: .9375rem; margin-bottom: 2.5rem; }
.doc-main section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--doc-rule); }
.doc-main h2 { font-size: 1.5rem; margin-bottom: .9rem; }
.doc .site-footer { min-height: 0; padding: 3rem var(--gutter); background: linear-gradient(#1a1a46, #0d1030); color: var(--white); }

/* ---------- full-sky message pages (thanks, 404) ---------- */
.message { min-height: 100svh; padding: clamp(5.5rem, 16svh, 10rem) var(--gutter) 0; }
.message .inner { max-width: 36rem; }
.message h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.message p { margin-top: 1.25rem; font-size: 1.1875rem; }
.message .back { display: inline-block; margin-top: 2rem; padding: .5rem 0; }
.message-page .site-footer { min-height: 0; padding-top: 4rem; background: linear-gradient(transparent, #0d1030 30%); }

/* ---------- breakpoints ---------- */
@media (max-width: 47.99em) {
  .moment figure { order: 2; }
}
@media (min-width: 48em) {
  .moment { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .moment:nth-of-type(even) .text { order: 2; }
  .moment .text { align-self: start; padding-top: 2.5rem; }
  .sticky-cta { display: none !important; }
}
@media (min-width: 80em) {
  .hero { padding-left: 8vw; }
  .moment { padding-left: 8vw; padding-right: 8vw; }
  body { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sky, .sticky-cta, .cookie { display: none !important; }
  body { background: #fff; color: #000; }
  [data-ink] { color: #000 !important; }
}
