/* ==========================================================================
 * Pet Field Guide — Consumer Design System v1.1
 * Edition: "#38 Apple Silver Grey & Coral · Borderless Soft-Float Edition"
 * Single source of truth for palette, semantic washes, typography, spacing,
 * radii, editorial elevation shadows, and SVG diagram tokens.
 * Swap this file alone to re-skin the hub architecture for Hub #2.
 * ========================================================================== */

:root {
  /* === Surfaces & Canvas (#38 Apple Silver Grey & Coral) === */
  --bg: #FFFFFF;                  /* Pure White — primary daylight canvas */
  --surface: #FFFFFF;             /* Pure White — soft-float borderless cards & panels */
  --surface-sand: #F5F5F7;        /* Apple Silver Grey — secondary trays, bands, FAQs, sources, exposure boxes */
  --surface-sand-hover: #E8E8ED;  /* Silver hover / track */
  --surface-tint: #FFECE8;        /* Whisper Coral wash — soft highlight accents */
  --table-head: #F5F5F7;          /* Clean silver table header tint */
  --slab-bg: #1D1D1F;             /* Deep Graphite Feature Slab — featured KPI & waitlist band */

  /* === Ink Hierarchy (Verified WCAG 2.1 AA / AAA) === */
  --ink: #1D1D1F;                 /* Apple Graphite Ink — headlines, strong labels, primary numbers */
  --ink-2: #515154;               /* Body Ink — primary prose, card descriptions, nav links, silver captions */
  --ink-3: #6E6E73;               /* Muted Ink — AA captions on White (5.0:1) and Silver (4.6:1) */
  --slab-ink: #FFFFFF;            /* Primary text on Deep Graphite Feature Slab */
  --slab-muted: #D2D2D7;          /* Secondary text on Deep Graphite Feature Slab */

  /* === Brand Accents (Living Coral) === */
  --accent: #FF5A3D;              /* Living Coral — decorative dots, italic hero em, focus rings, SVG accents */
  --accent-soft: #FFECE8;         /* Blush Coral pill & icon wash */
  --btn-accent: #E5482E;          /* Accessible Living Coral CTA — primary filled CTAs & active indicators */
  --btn-accent-hover: #C83820;    /* Deep Coral hover */
  --accent-ink: #D43F25;          /* High-contrast Coral text links & kickers */
  --accent-ring: rgba(229, 72, 46, 0.22);

  /* === Semantic Palette (Solid Pastel Borderless Pills + High-Contrast Ink) === */
  --sage: #0F8A5F;                /* Emerald — positive cues, safer swaps, confirmation CTA */
  --sage-hover: #0B6E4B;
  --sage-soft: #DCFCE7;           /* Solid pastel emerald pill wash */

  --bad: #B91C1C;                 /* Dignified Crimson — "Toxic · Keep Away", helpline chips, urgent lockouts */
  --bad-hover: #991B1B;
  --bad-soft: #FDE2E2;            /* Solid pastel crimson pill & helpline wash */

  --warn: #9A5205;                /* Rich Amber — "Caution", dust/3Ps/advisories */
  --warn-soft: #FEF0C7;           /* Solid pastel amber pill wash */

  --stone: #334155;               /* Neutral Cool Slate — "No Known Toxin" neutral tier (NEVER green!) */
  --stone-soft: #E9ECEF;          /* Solid pastel slate pill wash */

  /* === Permitted Subtle Hairlines (ONLY Form Controls & Table Row Dividers!) === */
  --divider: #E8E8ED;
  --input-border: #D2D2D7;
  --table-divider: rgba(29, 29, 31, 0.07);

  /* === Typography === */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;             /* 12px — uppercase kickers, single-line pills, footnotes */
  --text-sm: 0.875rem;            /* 14px — nav links, card summaries, table cells, form labels */
  --text-base: 1rem;              /* 16px — primary body copy */
  --text-lg: 1.125rem;            /* 18px — lead paragraphs, h3 card titles */
  --text-xl: 1.375rem;            /* 22px — panel titles, brand wordmark */
  --text-2xl: clamp(1.5rem, 2.4vw, 2.05rem);   /* section h2 */
  --text-hero: clamp(2.15rem, 3.8vw, 3.15rem); /* page h1 */

  /* === Spacing Scale (4px base grid) === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* === Radii === */
  --r-sm: 10px;                   /* Form inputs, thumbnails, compact callout corners */
  --r-md: 14px;                   /* KPI tiles, inner callouts, SVG frames, alert blocks */
  --r-card: 18px;                 /* Standard borderless cards (photo, field-guide, info, litter) */
  --r-lg: 20px;                   /* Tool bento cards, panels, hero photo frame */
  --r-xl: 24px;                   /* Lookup hero card, waitlist slab, feature bands */
  --r-pill: 999px;                /* Nav pills, badges, buttons, search bar, quick chips */

  /* === Borderless Soft-Float Elevation (#38 Apple Studio) === */
  --shadow-xs: 0 1px 4px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.065);
  --shadow-photo: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-seg: 0 2px 8px rgba(229, 72, 46, 0.14);
  --shadow-search: 0 8px 26px rgba(15, 23, 42, 0.09);
  --shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.11);
  --shadow-focus: 0 0 0 3px var(--accent-ring);
  --ring-selected: 0 0 0 2px var(--btn-accent);

  /* === SVG Diagram & Chart Tokens === */
  --bp-bg: #F9F9FB;
  --bp-grid: rgba(29, 29, 31, 0.042);
  --bp-grid-major: rgba(29, 29, 31, 0.085);
  --bp-wall: #1D1D1F;
  --bp-obj-fill: #FFFFFF;
  --bp-obj-stroke: #3A3A3F;
  --bp-accent-fill: rgba(229, 72, 46, 0.12);
  --bp-accent-stroke: #E5482E;
  --bp-accent-text: #D43F25;
  --bp-good-fill: rgba(15, 138, 95, 0.12);
  --bp-good-stroke: #0F8A5F;
  --bp-warn-fill: rgba(154, 82, 5, 0.12);
  --bp-warn-stroke: #9A5205;
  --bp-bad-fill: rgba(185, 28, 28, 0.10);
  --bp-bad-stroke: #B91C1C;
  --bp-dim: #6E6E73;
  --bp-label: #1D1D1F;

  /* === Layout & Motion === */
  --container-max: 1400px;
  --container-catalog: 1400px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
