/* ==========================================================================
   Design tokens — Kilivridis autodesign
   Layer 1: primitives (raw values) → Layer 2: semantic → Layer 3: component.
   Component CSS references semantic/component tokens only, never raw hex.
   ========================================================================== */

:root {
  /* ---- Layer 1 · primitives ------------------------------------------- */
  --p-ink-950: #0d0b0a;
  --p-ink-900: #14110f;
  --p-hide-800: #231c18;
  --p-hide-700: #2f2621;
  --p-hide-600: #3d322b;
  --p-cognac-500: #a0582c;
  --p-cognac-400: #b86a39;
  --p-thread-400: #d9a441;
  --p-thread-300: #e8bf6c;
  --p-bone-100: #efe6d6;
  --p-bone-200: #e2d6c1;
  --p-ash-400: #8a7f74;
  --p-ash-300: #a99d90;
  --p-facebook: #1877f2;
  --p-youtube: #ff0000;

  --p-font-sans: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --p-font-serif: 'Literata', Georgia, 'Times New Roman', serif;

  /* ---- Layer 2 · semantic --------------------------------------------- */
  --bg: var(--p-ink-900);
  --bg-deep: var(--p-ink-950);
  --surface: var(--p-hide-800);
  --surface-2: var(--p-hide-700);
  --line: var(--p-hide-600);
  --text: var(--p-bone-100);
  --text-muted: var(--p-ash-300);
  --accent: var(--p-thread-400);
  --accent-hover: var(--p-thread-300);
  --accent-ink: var(--p-ink-900);         /* text on accent fills */
  --leather: var(--p-cognac-500);

  /* light ground (bone sections) */
  --bg-light: var(--p-bone-100);
  --text-on-light: var(--p-ink-900);
  --muted-on-light: #5e544b;
  --line-on-light: var(--p-bone-200);

  --font-sans: var(--p-font-sans);
  --font-serif: var(--p-font-serif);

  /* type scale (fluid) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-xl: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.4vw, 5rem);

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --container: 1320px;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-card: 8px;      /* text cards & panels. Photos keep --radius / --radius-lg */
  --radius-btn: 12px;      /* buttons, chips, filters: rounded, not pill-shaped */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- Layer 3 · component -------------------------------------------- */
  --stitch: 2px dashed var(--accent);              /* the signature seam */
  --stitch-soft: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  --btn-bg: var(--accent);
  --btn-text: var(--accent-ink);
  --btn-ghost-border: color-mix(in srgb, var(--text) 35%, transparent);
  --card-bg: var(--surface);
  --header-h: 76px;
  --mobilebar-h: 64px;
  --brand-facebook: var(--p-facebook);
  --brand-youtube: var(--p-youtube);
}
