/* ==========================================================================
   Dosu-style design tokens
   Extracted from dosu.dev (Oct 2026). Source of truth: docs/02-tokens.md
   ========================================================================== */

/* ---------- Fonts (files live in ../assets/fonts) ---------- */
@font-face {
  font-family: "Jersey 15";        /* SIL OFL, Soft Type Project. Pixel grid: 1 font pixel = 1/27 em */
  src: url("../assets/fonts/jersey-15-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../assets/fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Font stacks ---------- */
  --font-display: "Jersey 15", ui-sans-serif, system-ui, sans-serif; /* pixel sans: all headings */

  /* ---------- Display sizes ----------
     Jersey 15 is drawn on a pixel grid: one font pixel = 1/27 em. At multiples of
     27px every font pixel covers whole screen pixels, so edges stay razor sharp;
     the 13.5px half-steps are sharp on 2x (Retina) screens. Use only these sizes
     with --font-display, and keep letter-spacing at 0 (tracking shifts letters
     off the grid). Each step matches the cap height of Dosu's original size. */
  --fs-display-xl: 81px;     /* 3 font px · hero (Dosu 70) */
  --fs-display-lg: 67.5px;   /* 2.5 · CTA, article title (Dosu 56–60) */
  --fs-display-md: 54px;     /* 2 · section headers, featured title, tablet hero (Dosu 44–50) */
  --fs-display-sm: 40.5px;   /* 1.5 · feature rows, steps, mobile headings (Dosu 30–40) */
  --fs-display-xs: 27px;     /* 1 · cards, plans, FAQ, small titles (Dosu 20–28) */
  --font-sans: "Mona Sans", ui-sans-serif, system-ui, sans-serif;   /* body copy, stats */
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;    /* UI chrome: nav, buttons, chips, labels, terminal */

  /* ---------- Surfaces ---------- */
  --c-page: #fffefc;          /* <body> base (rarely visible) */
  --c-cream: #e6e3d7;         /* "parchment" light sections */
  --c-cream-panel: #dad7c9;   /* illustration panels sitting on cream */
  --c-dark: #0e0e0e;          /* hero, numbers, CTA, footer */
  --c-dark-2: #131313;        /* "how it works" section */
  --c-dark-3: #0d0d0d;        /* blog hero */
  --c-ink: #1c1c1c;           /* headings on cream, dark cards */
  --c-panel-dark: #111111;    /* illustration panels sitting on dark */

  /* ---------- Text ---------- */
  --c-text-ink: #1c1c1c;
  --c-text-body-light: rgb(117, 117, 117);   /* feature paragraphs on cream */
  --c-text-on-dark: #ffffff;
  --c-text-on-dark-muted: rgba(255, 255, 255, 0.7);
  --c-text-on-dark-subtle: rgba(255, 255, 255, 0.55);
  --c-terminal-muted: #8d8d8d;

  /* ---------- Brand accents ---------- */
  --c-gold: #c9a771;          /* ornaments, dividers, nav hover */
  --c-hextech: #0ac8b9;       /* arena-pixel-art: magic accents, rune glow */
  --c-hextech-deep: #06707a;  /* arena-pixel-art: hextech on light or as a border */
  --c-pink: #ee67d1;          /* primary CTA, read-time, topic chips */
  --c-pink-depth: #b4459c;    /* pink button "3D" edge */
  --c-pink-text: #390038;     /* text on pink */
  --c-gray-btn: #b7b5bc;      /* secondary button */
  --c-gray-btn-depth: #8c8b92;
  --c-gray-btn-text: #444444;
  --c-white-btn-depth: #898989;
  --c-lime: rgb(208, 228, 33);   /* step timeline, progress */
  --c-lime-chip: rgb(162, 212, 46); /* "FEATURED" chip */
  --c-lime-chip-text: rgb(6, 14, 0);
  --c-green: #52a40f;         /* agent boxes, success */
  --c-olive: rgb(90, 125, 0); /* inline emphasis on cream (~3x) */
  --c-olive-deep: rgb(63, 84, 0);
  --c-bar-light: #dfe8c0;     /* comparison bar fill */
  --c-bar-strong: #c9d8a0;

  /* Pricing / article accents (from dosu.dev/pricing and blog posts) */
  --c-card-light: rgb(250, 250, 250);  /* plan cards */
  --c-slate: #1f2937;                  /* text on light cards */
  --c-slate-2: #414d5d;                /* table row labels */
  --c-lime-border: rgb(215, 255, 120); /* featured plan outline */
  --c-chip-pink-bg: rgb(253, 221, 245);
  --c-chip-pink-text: rgb(151, 26, 125);
  --c-violet: rgb(137, 90, 246);       /* small promo pill in articles */
  --gold-rule: linear-gradient(90deg, rgba(201, 167, 113, 0) 0%, rgba(201, 167, 113, 0.7) 25%, rgba(236, 213, 176, 0.7) 50%, rgba(201, 167, 113, 0.7) 75%, rgba(201, 167, 113, 0) 100%);
  --sh-card: 0 16px 24px 0 rgba(0, 0, 0, 0.1);

  /* Persona / tinted card families */
  --c-purple: 166, 98, 235;   /* use as rgba(var(--c-purple), a) */
  --c-purple-title: rgb(128, 11, 151);
  --c-purple-label: rgba(87, 0, 104, 0.8);
  --c-red: 255, 51, 51;
  --c-red-title: rgb(134, 0, 0);
  --c-blue: 14, 140, 224;
  --c-blue-title: rgb(0, 71, 86);

  /* Iridescent "halo" used behind the logo badge */
  --halo: conic-gradient(from 90deg, #d7ff78 0deg, #f4bdff 120deg, #ffd478 240deg, #b2ebf7 360deg);

  /* Syntax (dark code) */
  --syntax-gold: #c9a771;
  --syntax-cream: #e6e3d7;
  --syntax-pink: #ee67d1;
  --syntax-gray: #b7b5bc;
  --syntax-punct: #959595;

  /* ---------- Lines ---------- */
  --line-ink-10: rgba(28, 28, 28, 0.1);
  --line-ink-12: rgba(28, 28, 28, 0.12);
  --line-ink-15: rgba(28, 28, 28, 0.15);
  --line-white-10: rgba(255, 255, 255, 0.1);
  --line-white-15: rgba(255, 255, 255, 0.15);

  /* ---------- Radii (small & crisp — nothing pill-shaped except badges) ---------- */
  --r-xs: 2px;   /* number bars */
  --r-sm: 4px;   /* panels, persona cards, chips */
  --r-md: 6px;   /* buttons, install pill */
  --r-lg: 8px;   /* terminal, blog cards */
  --r-pill: 64px;

  /* ---------- Shadows ---------- */
  /* Buttons: hard edge depth — 4px (hover 6px) for 36/40px buttons, 3px (hover 4px) for 28px */
  --sh-terminal: 0 4px 4px -2px rgba(0, 0, 0, 0.1), 0 8px 8px -4px rgba(0, 0, 0, 0.1), inset 0 0 16px 0 rgba(255, 255, 255, 0.05);
  --sh-divider: inset 0 0 4px 0 rgba(0, 0, 0, 0.25);
  --text-shadow-hero: 0 4px 8px rgba(0, 0, 0, 0.4);

  /* ---------- Spacing / layout ---------- */
  --container: 1040px;        /* text + grids */
  --container-wide: 1160px;   /* feature rows, terminal */
  --gutter-xl: 200px;         /* section side padding at ≥1536 */
  --section-y: 150px;         /* dark sections, persona section top */
  --section-y-sm: 100px;      /* cream sections */
  --nav-h: 68px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 300ms;
}
