/*
 * The Sprint — colors & type
 * Five colour tokens. Two typefaces. One mark.
 * No exceptions.
 */

/* --- Webfonts -------------------------------------------------------- */
/* Loaded from Google Fonts. If working offline / in production, self-host these. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..400,0..100;1,9..144,300..400,20..60&family=Geist:wght@400;500&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* ========================================================
     COLOUR — the entire palette
     ======================================================== */

  /* Primary five */
  --ink:            #0B0A08;   /* primary ground, warm near-black */
  --bone:           #EDE6D3;   /* primary type on ink; paper-aged warm off-white */
  --bone-dim:       #A9A395;   /* secondary type — metadata, labels */
  --bone-low:       #5C5649;   /* tertiary type — separators, very low emphasis */
  --spotlight:      #E8A03A;   /* the one accent — the mark, emphasis, focus moments */

  /* Light-mode alternates (when ground is bone instead of ink) */
  --ink-type:       #14110C;   /* deeper warm black for type on bone */
  --spotlight-deep: #C97424;   /* darker amber for accent on bone, preserves printed-ink feel */

  /* Supporting — derived, not invented */
  --ink-2:          #15120E;   /* near-ink used for subtle containers on ink ground */
  --hairline:          rgba(237, 230, 211, 0.14); /* bone @ 14% — the rule weight on ink */
  --hairline-strong:   rgba(237, 230, 211, 0.32); /* used sparingly for emphasis edges */
  --hairline-on-bone:  rgba(11,  10,   8, 0.25);  /* ink @ 25% — the rule weight on bone */
  --spotlight-halo-in: rgba(232, 160, 58, 0.45);  /* inner stop of the hero halo */
  --spotlight-halo-mid:rgba(232, 160, 58, 0.18);  /* middle stop */
  --spotlight-soft:    rgba(232, 160, 58, 0.22);  /* faint background tint for filter-list hover */

  /* Semantic roles — every surface should reach for these, not raw tokens */
  --bg:        var(--ink);
  --bg-alt:    var(--ink-2);
  --fg:        var(--bone);
  --fg-dim:    var(--bone-dim);
  --fg-low:    var(--bone-low);
  --accent:    var(--spotlight);
  --rule:      var(--hairline);

  /* ========================================================
     TYPOGRAPHY — two families, fixed weights
     ======================================================== */
  --serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --sans:   "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:   "Geist Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Scale (px) — map one-to-one to the scale in the brand guidelines */
  --fs-display:   72px;  /* Fraunces Light 300, LH 100%, tracking -2.5% */
  --fs-section:   40px;  /* Fraunces Light 300, LH 110%, tracking -2% */
  --fs-subhead:   24px;  /* Fraunces Light Italic 300, LH 130%, tracking -1% */
  --fs-wordmark:  20px;  /* Fraunces Regular 400, LH 120%, tracking -1% */
  --fs-body:      16px;  /* Geist 400, LH 155%, tracking 0 */
  --fs-body-sm:   14px;
  --fs-meta:      11px;  /* Geist Mono 400, LH 160%, tracking +10% */
  --fs-cta:       12px;  /* Geist Mono 500, LH 100%, tracking +2% */

  --lh-display: 1;
  --lh-section: 1.1;
  --lh-subhead: 1.3;
  --lh-body:    1.55;
  --lh-meta:    1.6;

  --ls-display: -0.025em;
  --ls-section: -0.02em;
  --ls-subhead: -0.01em;
  --ls-meta:     0.10em;
  --ls-cta:      0.02em;

  /* Fraunces variable axes */
  --fvs-display: "opsz" 144, "SOFT" 30, "WONK" 0;
  --fvs-section: "opsz" 96,  "SOFT" 30, "WONK" 0;
  --fvs-sub:     "opsz" 72,  "SOFT" 30, "WONK" 0;
  --fvs-wordmark:"opsz" 48,  "SOFT" 20, "WONK" 0;

  /* ========================================================
     SPACING — 4px base unit
     ======================================================== */
  --s-0:   0;
  --s-1:   4px;
  --s-2:   8px;
  --s-3:   12px;
  --s-4:   16px;
  --s-6:   24px;
  --s-8:   32px;
  --s-12:  48px;
  --s-16:  64px;
  --s-24:  96px;

  /* ========================================================
     OTHER
     ======================================================== */
  --measure:  66ch;       /* body measure max */
  --radius:   0;          /* corners are right-angle. this is here for explicitness. */
  --border:   1px solid var(--hairline);
  --halo:     radial-gradient(circle,
                var(--spotlight-halo-in) 0%,
                var(--spotlight-halo-mid) 45%,
                transparent 70%);

  --ease:     cubic-bezier(0.32, 0.72, 0.25, 1);
  --dur-fast: 180ms;
  --dur:      320ms;
  --dur-slow: 500ms;
}

/* ========================================================
   Semantic base styles — drop <style> ref + use elements directly
   ======================================================== */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-variation-settings: var(--fvs-display);
  margin: 0;
}
h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: var(--ls-section);
  font-variation-settings: var(--fvs-section);
  margin: 0;
}
h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-subhead);
  line-height: var(--lh-subhead);
  letter-spacing: var(--ls-subhead);
  font-variation-settings: var(--fvs-sub);
  color: var(--fg-dim);
  margin: 0;
}
p {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  max-width: var(--measure);
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
}
code, .mono, kbd, samp {
  font-family: var(--mono);
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
}

/* Utility classes — used by preview cards, UI kits, slides */

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--dim { color: var(--fg-dim); }

.cta {
  font-family: var(--mono);
  font-size: var(--fs-cta);
  font-weight: 500;
  letter-spacing: var(--ls-cta);
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: opacity var(--dur) var(--ease), border-width var(--dur) var(--ease);
}
.cta .arrow { color: var(--accent); border-bottom: 1px solid transparent; }
.cta:hover  { opacity: 0.85; }

.mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.mark--module { width: 60px; height: 60px; }
.mark--hero   { width: 140px; height: 140px; }

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-wordmark);
  letter-spacing: var(--ls-subhead);
  font-variation-settings: var(--fvs-wordmark);
  color: var(--fg);
}
.lockup::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
