/* Peakflames brand tokens, v3 (plugin copy).
   Decided in brand v3 Phase 1; see docs/explorations/foundation-v3.html for every token in context.
   Base: blue-black. Type: Instrument Sans (headings, body), Red Hat Display (big numbers),
   JetBrains Mono (eyebrows, labels), IBM Plex Mono (terminal and code). No purple, anywhere.
   Fonts are local woff2 files from @fontsource (SIL OFL 1.1, see fonts/<family>/OFL.txt) so a
   render never fetches anything. Sizes and spacing follow the peak-media 720p plate scale. */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: block; src: url('fonts/instrument-sans/instrument-sans-latin-standard-normal.woff2') format('woff2'); }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 300 900; font-display: block; src: url('fonts/red-hat-display/red-hat-display-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: block; src: url('fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: block; src: url('fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: block; src: url('fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: block; src: url('fonts/ibm-plex-mono/ibm-plex-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  /* base ladder: blue-black */
  --color-bg: #05080C;        /* page / slide background */
  --color-surface: #0C1116;   /* cards, panels, code wells */
  --color-raised: #141A21;    /* hover, nested cards, table headers */
  --color-line: #232B34;      /* borders, rules, section dividers */
  --color-muted: #929BA5;     /* secondary text: 7.1:1 on bg */
  --color-fg: #F4F0E6;        /* text: 17.6:1 on bg */
  --color-term-bg: #03060A;   /* terminal well, a step darker than bg */

  /* accents, each with one job */
  --color-cta: #A9502E;       /* kiln: primary buttons only, cream text 4.7:1 */
  --color-cta-hover: #B85C37;
  --color-ember: #EB4D1A;     /* big stat numbers; at most one accent word per slide headline. Never a fill */
  --color-accent: var(--color-ember);   /* v2 name, kept so older pages still work */
  --color-honey: #F2C26B;     /* eyebrows, card titles, terminal commands */
  --color-amber: var(--color-honey);    /* v2 name */
  --color-rose: #E3928A;      /* alpenglow rose: pull quotes, highlights, chart series 2 */
  --color-glacier: #8DB4CF;   /* glacier slate: links, focus rings, chart series 1 */
  --color-patina: #7DB8B0;    /* copper patina: tags, selected states, chart series 3 */

  /* status (dashboards) */
  --color-success: #8CBF73;
  --color-warning: #E8B45A;
  --color-danger: #E9705C;
  --color-info: #7FAAD0;

  /* type */
  --font-display: 'Instrument Sans', system-ui, sans-serif;   /* headings and the wordmark; no serifs */
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-numeric: 'Red Hat Display', system-ui, sans-serif;  /* big stat numbers */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;     /* eyebrows, labels, captions, page numbers */
  --font-term: 'IBM Plex Mono', ui-monospace, monospace;      /* terminal and code blocks */
  --weight-body: 400;
  --weight-display: 600;
  --weight-numeric: 700;
  --tracking-display: -0.03em;
  --numeric-display: tabular-nums lining-nums;

  /* websites: one continuous canvas on <body>. Glows hug an edge, reach about a quarter of
     the width, stay faint, and are sized to the whole page so none stops at a section edge.
     Sections separate by spacing and a 1px --color-line rule, never by background color. */
  --glow-rose: radial-gradient(26% 18% at 100% 4%, rgba(227,146,138,.08), transparent 72%);
  --glow-glacier: radial-gradient(22% 20% at 0% 46%, rgba(141,180,207,.05), transparent 72%);
  --glow-ember: radial-gradient(55% 14% at 50% 100%, rgba(235,77,26,.09), transparent 72%);
  --bg-site: var(--glow-rose), var(--glow-glacier), var(--glow-ember), #05080C;

  /* slides and slide-style (horizontal) pages only: pick per slide (see SKILL.md) */
  --bg-flat: #05080C;
  --bg-ember: radial-gradient(90% 55% at 50% 112%, rgba(225,64,13,.40) 0%, rgba(233,87,58,.14) 40%, transparent 72%), linear-gradient(180deg, #05080C 0%, #0C1116 100%);
  --bg-ember-corner: radial-gradient(48% 58% at 100% 100%, rgba(240,128,58,.30) 0%, rgba(225,64,13,.10) 42%, transparent 72%), #05080C;
  --bg-dusk: linear-gradient(180deg, #05080C 0%, #10141B 50%, #1C1210 74%, #3E1710 90%, #5E2212 100%);   /* nightfall: late sunset, no yellow */

  /* photo scrims: darken the side the text sits on so it reads on any photo */
  --scrim: linear-gradient(90deg, rgba(5,8,12,.9) 0%, rgba(5,8,12,.55) 40%, rgba(5,8,12,0) 72%);
  --scrim-bottom: linear-gradient(0deg, rgba(5,8,12,.92) 0%, rgba(5,8,12,.55) 35%, rgba(5,8,12,0) 65%);

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .3, 1);
  --ease-in-out: cubic-bezier(.5, 0, .3, 1);

  /* spacing (multiples of 8 px at 720p) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;

  /* size (720p frame; scale with the frame height) */
  --size-display: 80px;
  --size-title: 56px;
  --size-body: 32px;
  --size-caption: 28px;
  --size-mono: 26px;
  --radius: 6px;             /* the mark is angular, corners stay tight */
}
