/* ============================================
   UNSTYLERS TATTOO — DESIGN TOKENS
   Inherits Unstylers system, overrides accent to steel blue.
   ============================================ */

:root {
  /* --- Color: surfaces --- */
  --bg: #0D0D0D;
  --surface: #161616;
  --surface-alt: #1E1E1E;
  --surface-hover: #242424;

  /* --- Color: borders --- */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* --- Color: text --- */
  /* The over-photography ladder, licensed for the hero only — see DESIGN.md,
     The Warm-On-Cold Rule. Three rungs, brightest first: the emphasis word,
     the title, the supporting line. Everything else reads in bone. */
  --hero-white-peak: #FFFFFF;
  --hero-white: #FBF9F6;
  --hero-white-soft: #F2EFEB;
  --text-primary: #E8E4DF;
  --text-secondary: #8A8580;
  --text-dim: #5A5550;
  /* Foreground on a saturated fill — accent buttons, the FAB, brand swatches,
     ::selection. The one other place pure white is licensed, and the value was
     written out fifteen times before it had a name. */
  --text-on-fill: #FFFFFF;

  /* --- Color: accent (steel blue) --- */
  --accent: #4388a3;
  --accent-hover: #4d9bb8;
  --accent-active: #3a7994;
  --accent-subtle: rgba(67, 136, 163, 0.12);
  --accent-text: #7ec8e3;
  --accent-glow: rgba(67, 136, 163, 0.35);

  /* --- Color: photographic scrims ---
     Neutral black at alpha, used only to hold text legible over imagery.
     Not palette colours: never fill a surface with these. */
  --scrim-soft: rgba(0, 0, 0, 0.55);
  --scrim-strong: rgba(0, 0, 0, 0.85);

  /* --- Color: destination brands ---
     The one licensed break from the single-accent palette. Applies to icon
     swatches so the channel is recognisable; never to text or borders at rest. */
  --brand-whatsapp: #25D366;
  --brand-email: #EA4335;
  --brand-instagram-edge: #DC2743;
  --brand-instagram: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);

  /* --- Typography --- */
  /* Both faces are loaded as variable ranges, so every weight between the
     endpoints genuinely exists — including Unbounded 600, which eight rules
     use and which the old fixed `500;700` request never delivered.
     Fallback must be a sans: a display face degrading to `cursive` lands on
     the system handwriting font, which is nothing like Unbounded. */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);

  /* --- Tracking ---
     Direction encodes register: display and headings go negative, uppercase
     labels go positive, body stays at normal. Three steps each way, no more —
     the scale replaced thirteen ad-hoc values. */
  --track-display: -0.035em;
  --track-title: -0.02em;
  --track-heading: -0.01em;
  --track-button: 0.04em;
  --track-label: 0.14em;
  --track-label-wide: 0.22em;

  /* --- Leading ---
     Light text on a dark surface wants a touch more leading than the same
     face on white, so body sits at 1.6 rather than 1.5. */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --leading-relaxed: 1.75;

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* --- Layout --- */
  /* Sticky header height. Consumed by the mobile nav inset, hero top padding
     and anchor scroll-margin, so all three stay in sync. */
  --header-h: 72px;
  --section-py: clamp(3rem, 8vw, 6rem);
  --section-px: clamp(1.25rem, 4vw, 2rem);
  /* Interval between major blocks *inside* one section — a repeated row and the
     action that closes it are not siblings, so they must not sit at the same
     distance. Floored above --space-12 (the sibling gap) at every viewport. */
  --space-block: clamp(4.5rem, 9vw, 6rem);
  --max-width: 80rem;
  --max-width-narrow: 52rem;
  --max-width-text: 40rem;

  /* --- Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

@media (max-width: 959px) {
  :root { --header-h: 60px; }
}
