/* Mad Funnel Labs v2 ("Hairline Systems"): design tokens + fonts.
   Dark only. Fraunces (display, variable) + Satoshi (body). Both self-hosted. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/satoshi-400.woff2) format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/satoshi-500.woff2) format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/satoshi-700.woff2) format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Colour: neutral black and white, one orange accent ("ember").
     Contrast on --bg: text 18:1, muted 7.8:1, ember 7.0:1, edge 4.8:1 (graphics and borders only). */
  --bg: #060606;
  --bg-2: #0b0b0b;
  --surface: #0f0f0f;        /* cards, bands */
  --surface-2: #171717;      /* raised inside cards */
  --text: #f6f5f2;
  --text-muted: #a3a29d;
  --accent: #ff6b2c;         /* ember orange: the single accent colour */
  --link: #ff8a55;           /* ember, lightened for small text: 8.9:1 */
  --link-hover: #ffffff;
  --btn-bg: #ff6b2c;         /* no-JS / no-glass fallback for the primary button */
  --btn-fg: #0a0a0a;
  --btn-bg-hover: #ff8147;
  --lit: #1b1b1b;            /* lit node tint */
  --lead: #ff6b2c;           /* the moving lead and the "booked" state */
  --lead-ink: #0a0a0a;
  --edge: #7c7b76;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --grid: rgba(255, 255, 255, 0.05);
  --focus: #ff8a55;
  --glow: 255, 255, 255;     /* rgb triplet: neutral lit states and hovers */
  --ember: 255, 107, 44;     /* rgb triplet: the accent glow */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Satoshi", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9375rem;                                      /* 15px small */
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);    /* 17 to 18px body */
  --step-1: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);     /* lead */
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);             /* h3 */
  --step-3: clamp(2rem, 1.5rem + 2vw, 3.25rem);              /* h2 */
  --step-4: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);          /* page h1 */
  --step-5: clamp(2.75rem, 1.2rem + 6vw, 5.75rem);           /* hero h1 */

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-panel: 20px;
  --radius-node: 12px;
  --radius-chip: 999px;

  --gutter: clamp(1rem, 3.5vw, 2rem);
  --container: 72.5rem;      /* 1160px */
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
