/* ------------------------------------------------------------------
   SongGhost landing — foundation
   Tokens, reset and type ramp. Direction-agnostic; styles.css builds
   the page on top of this.
   ------------------------------------------------------------------ */

:root {
  /* Brand — fixed, do not improvise */
  --cream: #f7f3ea;
  --ink: #1a1a1a;
  --accent: #2b5be0;
  --accent-bright: #3f78ff;
  --violet: #6a3cf0;
  --cta: linear-gradient(150deg, #3f78ff, #2b5be0 55%, #6a3cf0);

  /* Derived neutrals, all mixed from the two brand anchors so nothing
     drifts into a foreign grey. */
  --paper: #fffdf8;
  --paper-sunk: #efe9dc;
  --rule: rgba(26, 26, 26, 0.14);
  --rule-soft: rgba(26, 26, 26, 0.08);
  /* Measured against cream, not chosen by eye. --ink-soft 6.1:1 and
     --ink-muted 4.6:1 both clear AA at any size; --ink-faint is 3.7:1 and is
     therefore only ever used on text large enough to qualify (≥18.66px bold). */
  --ink-soft: rgba(26, 26, 26, 0.7);
  --ink-muted: rgba(26, 26, 26, 0.62);
  --ink-faint: rgba(26, 26, 26, 0.52);

  /* Night — matches the app's launch colour so the two never clash */
  --night: #0b0a09;
  --night-2: #131417;
  --night-ink: #f4f1ea;
  --night-ink-60: rgba(244, 241, 234, 0.6);
  --night-ink-muted: rgba(244, 241, 234, 0.55);
  --night-rule: rgba(244, 241, 234, 0.16);

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --measure: 68ch;
  --radius: 18px;
  --radius-lg: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 450;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* The page is full-bleed in places; never let a stray element create a
     sideways scrollbar on a phone. */
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 2.6vw + 1rem, 3.25rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem); line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

/* Unbounded clots below ~14px — the eyebrow is the only small use, and it
   gets extra tracking to open the letterforms back up. */
.eyebrow {
  font-family: var(--display);
  font-size: clamp(0.6875rem, 0.2vw + 0.65rem, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lede {
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

.shell {
  width: min(100% - (var(--gutter) * 2), 1240px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Motion is opt-out, globally and honestly: anything that moves on its own
   stops, and scroll-reveals resolve to their finished state rather than
   leaving content invisible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* The masthead is sticky and ~70px tall, so an in-page anchor would otherwise
   land with the section's first 70px hidden underneath it. */
:where(section[id]) { scroll-margin-top: 5.5rem; }

/* Printing (and anything else that renders without scrolling) never fires the
   reveal observer, so the whole page below the fold would come out blank. */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .masthead { position: static; }
  video { display: none; }
}
