/* astroshort.com — shared foundation (tokens, type, header, footer, buttons).
   Static, hand-authored, no build step. System fonts only: the site makes
   zero third-party requests, matching the app's no-tracking promise. */
:root {
  --bg: #04050a;
  --bg-2: #080a12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, 0.68);
  --ink-3: rgba(244, 241, 234, 0.44);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --gold: #e8c874;
  --gold-hi: #ffdf8a;
  --gold-glow: rgba(232, 200, 116, 0.35);
  --ember: #f4a24c;
  --blue: #7fa8ff;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Hoefler Text', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(232, 200, 116, 0.3); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.kicker.gold { color: var(--gold); }
.display {
  font-weight: 650; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(44px, 8.2vw, 112px); text-wrap: balance;
}
.h2 {
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(34px, 5.4vw, 68px); text-wrap: balance;
}
.h3 { font-weight: 620; letter-spacing: -0.015em; line-height: 1.2; font-size: clamp(19px, 2vw, 22px); }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--gold); }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 52ch; line-height: 1.55; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.source {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.source a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.source a:hover { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s var(--ease), border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn svg { flex: none; }
.btn-primary { background: var(--ink); color: #07080d; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px rgba(255, 223, 138, 0.25); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.05); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-store { height: 56px; padding: 0 24px 0 20px; }
.btn-store .t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .t small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.66; }
.btn-store .t span { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  background: rgba(4, 5, 10, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: var(--line);
}
.site-head.is-hidden { transform: translateY(-100%); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line) inset; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold-glow);
}
.nav .nav-cta { margin-left: 8px; color: #07080d; background: var(--ink); font-weight: 600; }
.nav .nav-cta:hover { color: #07080d; background: #fff; }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold-hi));
}

/* ---------- footer ---------- */
.site-foot { position: relative; border-top: 1px solid var(--line); padding: 56px 0 44px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid a { color: var(--ink-2); font-size: 14.5px; transition: color 0.2s ease; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .blurb { color: var(--ink-3); font-size: 14px; margin-top: 14px; max-width: 30ch; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

@media (max-width: 760px) {
  .nav a:not(.nav-cta):not(.keep) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- reveal (JS adds .in; content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
