/* ===========================================================================
   RSBV design tokens — customer-facing site only.
   Loaded before style.css (see partials/head.ejs), which references every
   variable below by name — nothing here should be renamed without checking
   style.css's usages first. The admin panel has its own separate token
   system (public/admin-design.css, --rs-* prefixed) by deliberate design —
   the two are not meant to converge.

   Rule going forward: every new customer-facing color, font, radius, or
   shadow goes here first and gets referenced by var() everywhere else —
   no new hardcoded hex/rgba literals in style.css.
=========================================================================== */

:root {
  /* ---- Brand colors ---- */
  --paper: #FDF8EC;
  --paper-alt: #FFFDF6;
  --ink: #2B3A2F;
  --ink-rgb: 43, 58, 47; /* keep in sync with --ink by hand — lets shadow/border tokens below do rgba(var(--ink-rgb), alpha) instead of repeating the literal triplet */
  --ink-muted: #6B7568;
  --forest: #2A7A4B; /* refreshed 2026-08-22 to match the Figma reference's primary green (was #1E4D2B) — same semantic role (primary button/action/success), value-only change */
  --marigold: #F2A71B;
  --terracotta: #E2603F;
  --blue: #3E7CB1;
  --teal: #1E8A73;
  --surface-sunken: #F6EFD9;

  /* ---- Figma-reference marketing palette (homepage/marketing surfaces) ---- */
  --rsbv-orange: #C85212; /* hero background, accent, links */
  --rsbv-orange-rgb: 200, 82, 18;
  --rsbv-navy: #16213E; /* footer background only — NOT a replacement for --ink */
  --rsbv-navy-rgb: 22, 33, 62;

  /* ---- Class-level cover-frame hues (book-card photo-in-frame treatment) ---- */
  --hue-blue: #2A4A8C;
  --hue-blue-tint: #E7ECF6;
  --hue-gold: #E8960C;
  --hue-gold-tint: #FCEFD9;
  --hue-teal: #2A8C7A;
  --hue-teal-tint: #E3F2EE;
  --hue-green: #2A7A4B;
  --hue-green-tint: #E3F1E7;
  --hue-orange: #C85212;
  --hue-orange-tint: #FBE7DA;
  --hue-purple: #6B4FA0; /* placeholder — reference only sampled a light purple tint (~#F0E8FF), base hex unconfirmed; picked to match the saturation/lightness of the other five hues */
  --hue-purple-tint: #EDE7F5;

  /* ---- Hero-on-orange text accent ----
     Deliberately NOT --hue-gold: that token's #E8960C is tuned for small
     card-frame tints, not text, and computes to ~1.9:1 against
     --rsbv-orange (fails WCAG's 3:1 large-text minimum badly). This one's
     picked to clear 3:1 against --rsbv-orange specifically. */
  --hero-accent-gold: #FFD54F;

  /* ---- Borders & shape ---- */
  --border-w: 2px;
  --radius: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-button: 20px; /* soft pill — homepage/marketing CTAs only, see .button--pill in style.css */

  /* ---- Elevation ----
     Sitewide soft, ink-tinted elevation — .card/.button and everything
     else migrated off the older hard-offset "neubrutalist" shadow system
     onto this single language. */
  --shadow-sm: 0 2px 8px rgba(var(--ink-rgb), 0.07);
  --shadow-md: 0 4px 12px rgba(var(--ink-rgb), 0.08);
  --shadow-lg: 0 10px 24px rgba(var(--ink-rgb), 0.14), 0 2px 6px rgba(var(--ink-rgb), 0.08);
  --border-hairline: rgba(var(--ink-rgb), 0.1);
  --border-hairline-strong: rgba(var(--ink-rgb), 0.16);

  /* ---- Type ---- */
  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-display-marketing: 'Fredoka', sans-serif; /* homepage hero/marketing headlines only — NOT a replacement for --font-display, which stays Baloo 2 sitewide */

  /* ---- Spacing scale ----
     4px base unit. Use these instead of ad hoc rem values in new work —
     existing hardcoded spacing elsewhere is untouched unless a rule is
     being rewritten anyway. */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-9: 6rem;     /* 96px */

  /* ---- Type scale ----
     Same rule as spacing — new/rewritten rules use these; nothing existing
     is force-migrated. Line-heights tighten as size increases, standard
     practice for a display face at headline sizes. */
  --text-sm: 0.875rem;
  --text-sm-lh: 1.5;
  --text-base: 1rem;
  --text-base-lh: 1.6;
  --text-lg: 1.125rem;
  --text-lg-lh: 1.5;
  --text-xl: 1.375rem;
  --text-xl-lh: 1.35;
  --text-2xl: 1.75rem;
  --text-2xl-lh: 1.25;
  --text-3xl: 2.25rem;
  --text-3xl-lh: 1.15;
  --text-4xl: 3rem;
  --text-4xl-lh: 1.08;
}
