/* Staff of Christ - design tokens.
   Seeded from PLAN.md by _plan/seed_contracts.py. Do not edit by hand.
   Contrast ratios in comments are WCAG 2.x ratios measured for the exact pair named. */
:root {
  color-scheme: dark;

  /* ---- Core palette ---- */
  --ink-950: #0B0B0C;   /* page background */
  --ink-900: #121214;   /* header, raised bands */
  --ink-800: #1A1A1D;   /* cards, drawer, inputs */
  --ink-700: #2A2A2E;   /* decorative hairlines only */
  --ink-600: #3A3A40;   /* disabled fills */
  --ink-400: #6E6E76;   /* borders of controls: 3.44:1 on ink-800 */
  --ash-400: #8F8A7F;   /* muted text: 5.72:1 on ink-950, 5.05:1 on ink-800 */
  --bone-300: #B9B09E;  /* secondary text: 9.15:1 on ink-950, 8.08:1 on ink-800 */
  --bone-200: #D9D0BC;
  --bone-100: #EDE6D6;  /* primary text: 15.82:1 on ink-950, 13.97:1 on ink-800 */
  --blood-700: #741515; /* pressed accent: bone-100 on it 9.08:1 */
  --blood-600: #8E1B1B; /* accent fill: bone-100 on it 7.27:1 */
  --blood-500: #A51F1F; /* accent hover: bone-100 on it 6.00:1 */
  --blood-300: #E0554A; /* the only red allowed for small text on dark: 5.22:1 on ink-950, 4.60:1 on ink-800 */

  /* ---- Semantic roles (use these in components) ---- */
  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-800);
  --text: var(--bone-100);
  --text-2: var(--bone-300);
  --text-muted: var(--ash-400);
  --line: var(--ink-700);
  --line-strong: var(--ink-400);
  --accent: var(--blood-600);
  --accent-hover: var(--blood-500);
  --accent-pressed: var(--blood-700);
  --on-accent: var(--bone-100);
  --error-text: var(--blood-300);
  --focus: var(--bone-100);

  /* Light band (bone background sections): ink-950 text on bone-100 = 15.82:1, blood-600 on bone-100 = 7.27:1 */
  --band-bg: var(--bone-100);
  --band-text: var(--ink-950);
  --band-accent: var(--blood-600);

  /* ---- Garment colors (must equal COLORS in data/catalog.js) ---- */
  --garment-black: #161618;
  --garment-bone: #E7DFCC;
  --garment-charcoal: #34363B;
  --garment-olive: #4B4F3A;

  /* ---- Print inks (must equal INKS in data/catalog.js) ---- */
  --ink-light: #EDE6D6;        /* on dark garments */
  --ink-light-accent: #C1272D;
  --ink-dark: #0C0C0D;         /* on bone garments */
  --ink-dark-accent: #8E1B1B;

  /* ---- Mockup stage: a warm spotlight so black and charcoal garments stay visible ---- */
  --stage-spot: #6F6B63;
  --stage-mid: #47443F;
  --stage-edge: #1B1B1D;
  --stage-bg: radial-gradient(ellipse 80% 75% at 50% 40%, var(--stage-spot) 0%, var(--stage-mid) 46%, var(--stage-edge) 100%);

  /* ---- Type ---- */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;                      /* headlines, product names, prices */
  --font-label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;              /* nav, buttons, tags, eyebrows (uppercase) */
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* paragraphs, forms */
  --font-scripture: "EB Garamond", Georgia, "Times New Roman", serif;               /* scripture text only */

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --display-sm: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  --display-md: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  --display-lg: clamp(3rem, 1.2rem + 9vw, 7.5rem);
  --display-xl: clamp(4.5rem, 1rem + 17vw, 13rem);
  --scripture-md: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  --scripture-lg: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);

  --leading-display: 0.95;
  --leading-snug: 1.2;
  --leading-body: 1.55;
  --track-display: 0.01em;
  --track-label: 0.14em;
  --track-wide: 0.24em;

  /* ---- Space (4px base) and layout ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 76rem;
  --header-h: 3.5rem;
  --tap: 2.75rem;               /* 44px minimum touch target */

  /* ---- Shape, motion, layers ---- */
  --radius-1: 2px;
  --radius-2: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --shadow-1: 0 18px 40px rgba(0, 0, 0, 0.55);
  --z-header: 50;
  --z-overlay: 70;
  --z-drawer: 80;
  --z-grain: 90;

  /* ---- Grain: tiled SVG noise, white specks with varying alpha. Use on a fixed, pointer-events:none layer. ---- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: 0.09;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
  }
}
