/* ==========================================================================
   THEME: racecar-supernal
   Every colour and every font family on the page, in one place.
   styles.css holds structure and the type scale; this file loads after it.
   Palette: Supernal green, green buttons, mint panels, warm paper studio.
   The studio values match the regraded film and stills (wall, crease and floor
   were run through the same grade as the media, then checked on screenshots).
   The --ly-* tokens colour the three.js slabs in "What we build" (layers.js reads them).
   ========================================================================== */

:root {
  /* Type families */
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;      /* h1, h2, display lines, big numerals */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; /* body, UI, buttons */
  --label: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; /* small uppercase tracked labels */

  /* Studio: warm paper wall and a slightly deeper floor, matched to the regraded film */
  --wall: #F4F5F0;
  --crease: #E0DFDC;
  --crease-soft: #E8E7E5;
  --floor-0: #E5E5DF;
  --floor-1: #E9E9E2;
  --floor-2: #E3E3DD;
  --floor-3: #DDDDD8;

  /* Ink */
  --ink: #1A1A1A;                       /* headlines, primary text */
  --body: #333333;                      /* body copy */
  --mute: #666666;                      /* labels, secondary text */
  --hair: rgba(26, 26, 26, .14);        /* hairlines */
  --hair-strong: rgba(26, 26, 26, .3);  /* rings, emphasised lines */

  /* Accent */
  --accent: #437569;                    /* Supernal green: seam, marks, rules */
  --accent-text: #365F55;               /* deep green for text on the wall */
  --accent-glow: rgba(67, 117, 105, .3);
  --accent-fade: rgba(67, 117, 105, 0);

  /* Warm accent (Rust). Agreed with Belu 2026-11-25: super subtle use only.
     Small marks, thin rules, a hover state. Never a background, a button or a headline. */
  --warm: #CF7855;
  --warm-soft: rgba(207, 120, 85, .16);

  /* Deep green stage (How it works): lime marks and near white text on Supernal deep green */
  --lime: #E3EB84;
  --stage-bg: #365F55;
  --stage-ink: #FFFFFF;
  --stage-body: rgba(255, 255, 255, .82);
  --stage-mute: rgba(255, 255, 255, .62);
  --stage-panel: rgba(255, 255, 255, .07);
  --stage-hair: rgba(255, 255, 255, .13);
  --stage-line: #5E7F77;
  --stage-ring: rgba(255, 255, 255, .5);

  /* Buttons: Supernal green with near white text, deep green on hover */
  --btn-bg: #437569;
  --btn-text: #FAFAFA;
  --btn-hover: #365F55;

  /* Surfaces */
  --header-solid: rgba(244, 245, 240, .86);
  --card-bg: rgba(234, 246, 235, .55);  /* mint panel */
  --card-bg-hover: #EAF6EB;
  --pill-bg: rgba(234, 246, 235, .94);
  --shadow: rgba(40, 36, 28, .12);
  --shadow-soft: rgba(40, 36, 28, .07);

  /* HUD readout */
  --hud-label-ink: #333333;
  --hud-bracket-ink: #666666;
  --hud-under-ink: #C8C7C0;

  /* What we build: three.js scene colours */
  --ly-room: #F0F0EA;
  --ly-floor: #E8E8E1;
  --ly-room-silver: #EEEDE8;
  --ly-floor-silver: #E5E5E0;
  --ly-fill: #F6F8F4;
  --ly-key: #FFF3E2;
  --ly-concrete: #B3B1AA;
  --ly-alu: #D8D7D3;
  --ly-silver: #CECDC9;
  --ly-spacer: #262624;
  --ly-dark: #18181A;
  --ly-accent: #437569;
  --ly-ink: #2A2A28;
  --ly-node: #FAFAF6;
  --ly-card: #1F2422;
  --ly-card-ink: 245, 245, 240;         /* r, g, b of the crew card text */
  --ly-shadow: #1F1D18;
}
