/* UNIKE design tokens.
   Source of truth for the site. Values are normalised from the Figcraft mockup
   (1728 desktop / 402 mobile); fluid values interpolate between those widths. */

:root {
  /* Colour: brand */
  --ui-ink: #000000;
  --ui-paper: #ffffff;
  --ui-sand: #f0eddf;
  --ui-gold: #c3b580;
  --ui-gold-deep: #746a43;  /* AA-safe gold (5.4:1 on white, 4.6:1 on sand) */
  --ui-night: #21201f;

  /* Colour: roles */
  --ui-text: var(--ui-ink);
  --ui-text-muted: color-mix(in srgb, var(--ui-ink) 70%, transparent);
  --ui-bg: var(--ui-paper);
  --ui-line: color-mix(in srgb, var(--ui-ink) 14%, transparent);
  --ui-overlay: rgb(0 0 0 / 0.4);
  --ui-glass: rgb(255 255 255 / 0.72);

  /* Gold roles. Default = the mockup as designed (white on #C3B580, 2.0:1: fails WCAG AA).
     To switch, set data-ui-gold on <html> (or copy that block's values here):
       "a" = brand gold surface with ink text (10:1)
       "b" = deeper gold surface with white text (5.4:1)
     Both also darken gold-coloured text on light backgrounds (eyebrows, labels). */
  --ui-gold-surface: var(--ui-gold);
  --ui-on-gold: var(--ui-paper);
  --ui-gold-text: var(--ui-gold);

  /* Typography */
  --ui-font-display: "Dazzle Unicase", "Poppins VF", system-ui, sans-serif;
  --ui-font-text: "Poppins VF", system-ui, sans-serif;

  --ui-fs-display-xl: clamp(2.5rem, 2.1211rem + 1.5083vw, 3.75rem);      /* 40 → 60 */
  --ui-fs-display: clamp(1.625rem, 1.5492rem + 0.3017vw, 1.875rem);      /* 26 → 30 */
  --ui-fs-display-sm: 1.5625rem;                                          /* 25 (phone and desktop) */
  --ui-fs-statement-lg: clamp(1.5rem, 1.3863rem + 0.4525vw, 1.875rem);   /* 24 → 30: closing statements */
  --ui-fs-statement: clamp(1.25rem, 1.1553rem + 0.3771vw, 1.5625rem);   /* 20 → 25: lines under photos, on cards */
  --ui-fs-h3: clamp(1.25rem, 1.1742rem + 0.3017vw, 1.5rem);              /* 20 → 24 */
  --ui-fs-lead: clamp(1.0625rem, 1.0057rem + 0.2262vw, 1.25rem);         /* 17 → 20 */
  --ui-fs-body: clamp(0.9375rem, 0.9186rem + 0.0754vw, 1rem);            /* 15 → 16 */
  --ui-fs-small: 0.875rem;                                                /* 14 */
  --ui-fs-label: 0.75rem;                                                 /* 12 */

  --ui-lh-tight: 1.1;
  --ui-lh-heading: 1.25;
  --ui-lh-body: 1.6;
  --ui-tracking-display: 0.02em;
  --ui-tracking-label: 0.06em;

  /* Space (8-based) */
  --ui-space-1: 0.25rem;  /* 4 */
  --ui-space-2: 0.5rem;   /* 8 */
  --ui-space-3: 0.75rem;  /* 12 */
  --ui-space-4: 1rem;     /* 16 */
  --ui-space-5: 1.5rem;   /* 24 */
  --ui-space-6: 2rem;     /* 32 */
  --ui-space-7: 3rem;     /* 48 */
  --ui-space-8: 4rem;     /* 64 */
  --ui-space-9: 6rem;     /* 96 */

  /* Layout */
  --ui-gutter: clamp(1.25rem, -1.4027rem + 10.5581vw, 10rem);   /* page margin 20 → 160 */
  --ui-gap: clamp(1.25rem, 0.4921rem + 3.0166vw, 3.75rem);      /* column gap 20 → 60 */
  --ui-section: clamp(5rem, 3.4842rem + 6.0332vw, 10rem);       /* section padding 80 → 160 */
  --ui-container: 88rem;         /* 1408 */
  --ui-container-narrow: 75.5rem; /* 1208 */
  --ui-measure: 38rem;           /* comfortable line length */
  --ui-header-h: 3.75rem;        /* 60 phone, 80 from 768 (below) */

  /* Shape */
  --ui-radius: 10px;
  --ui-border: 1.5px;

  /* Motion */
  --ui-ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* expo-like, for entrances */
  --ui-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* for state changes */
  --ui-dur-fast: 240ms;
  --ui-dur: 600ms;
  --ui-dur-slow: 1100ms;
  --ui-dur-hero: 2400ms;
  --ui-stagger: 90ms;
  --ui-reveal-distance: 24px;
}

@media (min-width: 768px) { :root { --ui-header-h: 5rem; } }

[data-ui-gold="a"] {
  --ui-on-gold: var(--ui-ink);
  --ui-gold-text: var(--ui-gold-deep);
}
[data-ui-gold="b"] {
  --ui-gold-surface: var(--ui-gold-deep);
  --ui-gold-text: var(--ui-gold-deep);
}
