@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* Tokens mirror VibeCheck/Design/Theme.swift. The app is dark-only; so is the site. */
:root {
  --night: #150E24;
  --plum: #241638;
  --plum-top: #2E1B4F;
  --ink: #F3EEFF;
  --haze: #A99FC7;
  --line: rgba(243, 238, 255, .12);
  --chill: #6FE3D8;
  --lit: #FFB547;
  --chaotic: #FF5A7A;
  --heavy: #9A94B8;
  --mood: var(--chill);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--night); color: var(--ink); }

body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: linear-gradient(180deg, #221540 0%, var(--night) 35%, #0E0A18 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--mood); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: 24px; letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; border-radius: 22.5%; }
.nav { display: flex; gap: 18px; font-size: 15px; color: var(--haze); }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 48px; color: var(--haze); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.endorse { display: flex; align-items: center; gap: 8px; }
.endorse svg { width: 22px; height: 22px; flex: none; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Landing */
.hero { text-align: center; padding: 8px 0 24px; }
.stage { position: relative; width: min(84vw, 400px); aspect-ratio: 1; margin: 0 auto; }
.stage canvas { width: 100%; height: 100%; display: block; }
.readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.score { font-size: clamp(60px, 15vw, 104px); font-weight: 800; font-stretch: 78%; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mood-name { font-size: 18px; font-weight: 650; color: var(--mood); margin-top: 6px; transition: color .6s ease-in-out; }
.wordmark { font-weight: 800; font-stretch: 75%; font-size: clamp(64px, 17vw, 132px); line-height: .85; letter-spacing: -.05em; margin-top: 14px; }
.by { color: var(--haze); font-size: 17px; margin-top: 10px; }
.lede { font-size: clamp(22px, 5vw, 28px); font-weight: 650; line-height: 1.2; max-width: 22ch; margin: 28px auto 0; }
.sub { color: var(--haze); margin-top: 10px; }
.cta { display: inline-block; margin-top: 28px; background: var(--ink); color: var(--night); font-weight: 700; padding: 15px 28px; border-radius: 999px; text-decoration: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--mood) 28%, transparent); transition: box-shadow .6s ease-in-out; }
.cta[aria-disabled="true"] { cursor: default; }

.modes { display: grid; gap: 10px; margin-top: 56px; }
.mode { background: var(--plum); border-radius: 16px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mode b { font-weight: 650; font-size: 19px; }
.mode span { color: var(--haze); font-size: 15px; text-align: right; }
.full { border-radius: 18px; padding: 18px; color: var(--night); background: linear-gradient(135deg, var(--chill), var(--lit) 55%, var(--chaotic)); }
.full b { display: block; font-weight: 800; font-stretch: 82%; font-size: 22px; }

.promise { margin-top: 56px; padding: 26px 24px; border-radius: 28px; background: var(--plum); }
.promise h2 { font-size: clamp(26px, 6vw, 34px); font-weight: 750; font-stretch: 85%; line-height: 1.05; letter-spacing: -.02em; }
.promise p { color: var(--haze); margin-top: 10px; }
.fine { text-align: center; color: var(--haze); font-size: 13px; margin-top: 28px; }

/* Text pages */
.doc h1 { font-size: clamp(40px, 10vw, 64px); font-weight: 800; font-stretch: 78%; line-height: .95; letter-spacing: -.04em; margin-top: 24px; }
.doc .updated { color: var(--haze); font-size: 14px; margin-top: 10px; }
.doc h2 { font-size: 24px; font-weight: 750; font-stretch: 85%; letter-spacing: -.01em; margin-top: 40px; }
.doc p, .doc li { margin-top: 12px; max-width: 62ch; }
.doc ul { padding-left: 1.2em; }
.doc li::marker { color: var(--mood); }
.doc .callout { background: var(--plum); border-radius: 20px; padding: 18px 20px; margin-top: 24px; font-size: 19px; font-weight: 650; line-height: 1.35; }
.doc strong { font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
