/* getstarkept.com - built on the Starkept brand tokens (night-scroll-brand/tokens.css). */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0F1A;
  --bg-deep: #070A12;
  --surface1: #121826;
  --surface2: #19202F;
  --border-subtle: #1E2536;
  --border-strong: #2B3449;
  --text-primary: #F2EDE4;
  --text-secondary: #B3AFA8;
  --text-tertiary: #8F929C;
  --accent: #F5B971;
  --accent-pressed: #E7A85C;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --margin: 24px;
  --measure: 40rem;
  --ease-soft: cubic-bezier(0.33, 0, 0.15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 70%) fixed, var(--bg);
  color: var(--text-primary);
  font: 400 1.0625rem/1.5 var(--font-ui);
  letter-spacing: -0.01em;
  font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-pressed); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--margin); top: 12px; z-index: 10; background: var(--surface2); color: var(--text-primary); padding: 10px 14px; border-radius: 10px; }

/* Header */
.site-header { position: relative; z-index: 1; width: 100%; max-width: calc(var(--measure) + 2 * var(--margin)); margin: 0 auto; padding: 20px var(--margin); }
.site-header a.home { display: inline-flex; align-items: center; min-height: 44px; }
.site-header img { display: block; width: 116px; height: auto; }

/* Landing */
.hero { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 56px var(--margin) 48px; }
.hero > .sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--measure); margin: 0 auto; }
.hero h1 { margin: 0 0 20px; line-height: 0; }
.hero h1 img { width: min(78vw, 360px); height: auto; }
.tagline { margin: 0 0 28px; font: 400 clamp(2rem, 8vw, 3.25rem)/1.08 var(--font-display); letter-spacing: -0.015em; }
.lede { margin: 0 0 32px; color: var(--text-secondary); max-width: 34rem; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(18, 24, 38, 0.72); color: var(--text-primary); font: 500 0.9375rem/1.3 var(--font-ui); }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Starfield motion: slow, soft, never flashing */
.sky .tw { animation: twinkle 7s var(--ease-soft) infinite alternate; }
.sky .tw1 { animation-duration: 9s; animation-delay: -3s; }
.sky .tw2 { animation-duration: 11s; animation-delay: -6s; }
.sky .tw3 { animation-duration: 8s; animation-delay: -1.5s; }
@keyframes twinkle { from { opacity: 0.12; } to { opacity: 0.6; } }
.sky .kept { animation: settle 1.6s var(--ease-soft) both; }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sky .tw, .sky .kept { animation: none; }
}

/* Inner pages */
.page { position: relative; flex: 1; width: 100%; }
.page::before { content: ""; position: absolute; inset: 0 0 auto; height: 420px; background: url("/assets/sky.svg") center top / cover no-repeat; opacity: 0.8; pointer-events: none; z-index: 0; }
.doc { position: relative; z-index: 1; max-width: calc(var(--measure) + 2 * var(--margin)); margin: 0 auto; padding: 24px var(--margin) 64px; }
.doc h1 { margin: 16px 0 8px; font: 400 clamp(2.5rem, 10vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -0.015em; }
.doc h2 { margin: 44px 0 10px; font: 400 1.75rem/1.15 var(--font-display); letter-spacing: -0.005em; }
.doc h3 { margin: 28px 0 6px; font: 600 1.0625rem/1.35 var(--font-ui); }
.doc p, .doc li { color: var(--text-secondary); }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.meta { margin: 0 0 24px; color: var(--text-tertiary); font-size: 0.9375rem; }
.note { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface1); }
.note p { margin: 0; }
.summary { margin: 24px 0 8px; padding: 20px; border-radius: 16px; background: var(--surface1); border: 1px solid var(--border-subtle); }
.summary h2 { margin-top: 0; font-size: 1.5rem; }
.summary ul { margin: 0; }
.faq h2 { margin-top: 40px; }

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border-subtle); padding: 24px var(--margin) 32px; color: var(--text-tertiary); font-size: 0.9375rem; }
.site-footer .wrap { max-width: var(--measure); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); text-decoration-color: var(--border-strong); }
.site-footer nav a:hover { color: var(--accent); }
.site-footer nav a[aria-current="page"] { color: var(--accent); }
.site-footer p { margin: 0; }

@media (min-width: 720px) {
  :root { --margin: 40px; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
}
