/* Tourist Brands — design tokens (Brand Guidelines v2.0, 2026-12-05).
   THIS IS THE ONLY FILE THAT MAY CONTAIN LITERAL HEX VALUES.
   v2 rules: the brand lives on Night Swim. One Sunset moment per viewport
   (primary button OR numeral OR the sun — not all three). Never Sunset text
   on Sand/White — use Sunset Deep there. Sunset on Deep Tide only at 24px+.
   Magenta/coral are limited-edition drop accents, never routine UI. */

:root {
  /* ── v2 brand tokens (use these in all new work) ─────────────── */
  --tb-night-swim: #10242A;   /* backgrounds — the brand lives here */
  --tb-deep-tide: #1B3A42;    /* panels and cards on dark */
  --tb-sand: #F5EEE3;         /* light backgrounds, text on dark */
  --tb-white: #FFFFFF;        /* garment mockup grounds, form fields */
  --tb-sunset: #FF6B3D;       /* the one accent: primary buttons, numerals, the sun */
  --tb-sunset-deep: #B53A0B;  /* Sunset for text and links on light grounds */
  --tb-line-teal: #2F7F8A;    /* tide-line pattern and dividers on light layouts */
  --tb-ink: #0A0C0C;          /* deepest base (night gradient floor) */

  /* ── Type — Archivo variable (wdth 62–125, wght 100–900), Google Fonts ── */
  --tb-font-display: 'Archivo', Arial, sans-serif; /* 700–800, width 75–87%, uppercase H1 */
  --tb-font-body: 'Archivo', Arial, sans-serif;    /* 400 and 600, normal width */
  --tb-display-stretch: 80%;
  --tb-radius: 10px;
  --tb-space: 8px;            /* all spacing in multiples of 8 */

  /* ── Legacy aliases (pre-v2 names; CRM and older components keep
        working and shift to v2 visually — do not use in new work) ── */
  --brand-teal: var(--tb-line-teal);
  --brand-teal-deep: var(--tb-deep-tide);
  --brand-teal-night: var(--tb-night-swim);
  --brand-sunset: var(--tb-sunset);
  --brand-gold: var(--tb-sunset);
  --brand-ink: var(--tb-night-swim);
  --brand-cream: var(--tb-sand);

  /* Limited-use accents (special-edition drops) — NOT routine UI */
  --accent-magenta: #B52E6B;
  --accent-coral: #F64D3C;

  /* ── Derived neutrals ────────────────────────────────────────── */
  --surface: var(--tb-white);
  --ink-70: color-mix(in srgb, var(--tb-night-swim) 68%, var(--tb-sand));
  --line: color-mix(in srgb, var(--tb-night-swim) 13%, var(--tb-sand));
  --line-strong: color-mix(in srgb, var(--tb-night-swim) 30%, var(--tb-sand));
  --teal-ghost: color-mix(in srgb, var(--tb-line-teal) 12%, var(--tb-sand));

  /* ── Gradients ───────────────────────────────────────────────── */
  --grad-sunset: linear-gradient(100deg, var(--tb-sunset) 0%, var(--tb-sunset-deep) 100%);
  --grad-ocean: linear-gradient(140deg, var(--tb-line-teal) 0%, var(--tb-deep-tide) 52%, var(--tb-night-swim) 100%);
  --grad-night: linear-gradient(180deg, var(--tb-night-swim) 0%, var(--tb-ink) 100%);

  /* ── Typography (legacy names) ───────────────────────────────── */
  --font-display: var(--tb-font-display);
  --font-body: var(--tb-font-body);

  /* ── Shape + depth ───────────────────────────────────────────── */
  --radius: var(--tb-radius);
  --radius-lg: 18px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--tb-night-swim) 8%, transparent),
            0 10px 28px color-mix(in srgb, var(--tb-night-swim) 9%, transparent);
  --shadow-lift: 0 2px 6px color-mix(in srgb, var(--tb-night-swim) 12%, transparent),
                 0 16px 40px color-mix(in srgb, var(--tb-deep-tide) 16%, transparent);

  /* ── Semantic status colors (CRM chips, alerts) — not brand chrome ── */
  --ok: #1F7A4D;        --ok-bg: #E3F4EB;
  --warn: #B3382C;      --warn-bg: #FBE9E7;
  --info: #1D4F91;      --info-bg: #E7F0FD;
  --purple: #5B2D91;    --purple-bg: #EFE7FD;
  --amber: #7A5B00;     --amber-bg: #FFF2CF;
  --amber-line: #F0DCAE;
}

/* ── Shared brand-logo sizing (owner UI spec 2026-11-21) ───────────────
   One logo, once: max-height 56px desktop / 40px mobile, width auto.
   v2: never recolor, stretch or add effects; clear space = sun height;
   minimum 150px wide — below that use the sun icon alone. */
.brand-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; flex: none; display: block; }
@media (min-width: 56.25rem) { .brand-logo { height: 56px; max-width: 280px; } }
