/* Bigger Dreams design tokens — v5 (2026-11-14)
   THE single source for colour, type, spacing, marks and motion.
   Every BD artifact links or inlines this file. Never hand-pick a hex or font.
   Decisions behind every value: Desktop/WYWHAutomation/bd_merch/BRAND_DECISIONS.md

   Fonts (Google Fonts, all OFL):
   <link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@800;900&family=Red+Hat+Text:wght@400;500;700&family=Red+Hat+Mono:wght@500;600&family=Caveat:wght@700&display=swap" rel="stylesheet">
*/

:root {
  /* ── Core four (every BD piece; company pieces use ONLY these) ── */
  --sky:    #4FB6E6;   /* lead colour: covers, title slides, buttons, pills, mark ground */
  --cherry: #E5243B;   /* hot accent: section labels, stickers, one highlight per view */
  --black:  #111111;   /* ink + dark ground */
  --white:  #FAFAF7;   /* light ground (warm off-white) */
  --pure-white: #FFFFFF; /* the cloud mark only, and type on photos */

  /* quiet neutrals derived from the four (rules, meta text) */
  --ink-2:  #444444;   /* body text on white */
  --ink-3:  #888888;   /* labels, page numbers, meta */
  --rule:   #E3E3DD;   /* hairlines, card borders */

  /* ── Drop colours: BD Clothing ONLY, one per drop/season, never on company pieces ── */
  --drop-sunshine: #F7D154;
  --drop-lavender: #B9A6FF;
  --drop-kelly:    #1FA34A;
  --drop-chrome:   #C9CDD2;
  --drop: var(--drop-sunshine); /* set per drop */

  /* ── Type ── */
  --font-display: 'Red Hat Display', system-ui, sans-serif; /* 800–900, headlines, big numbers */
  --font-text:    'Red Hat Text', system-ui, sans-serif;    /* 400–500, reading */
  --font-mono:    'Red Hat Mono', ui-monospace, monospace;  /* 500–600, CAPS labels */
  --font-hand:    'Caveat', cursive;                         /* 700, max one note per piece */

  --display-weight: 900;
  --display-tracking: -0.03em;
  --display-leading: 0.95;
  --label-tracking: 0.14em;

  /* ── Photo: always full-bleed. Three overlays, by job ── */
  --photo-fade: linear-gradient(180deg, rgba(0,0,0,.2) 0%, transparent 30%, transparent 50%, rgba(0,0,0,.85) 100%); /* posts, work tiles, deck proof slides */
  --reel-fade:  linear-gradient(180deg, rgba(17,17,17,.15) 0%, rgba(17,17,17,.3) 45%, rgba(17,17,17,.95) 100%);    /* reel covers (deeper, overall) */
  --hero-dim:   rgba(0,0,0,.5);                                                                                     /* web hero (even darken, text centred mid) */

  /* ── Mark ── */
  --cloud-ratio: 1.59;  /* cloud PNG is 512x322; never force it square */
  --cloud-lift: drop-shadow(0 6px 10px rgba(0,0,0,.18)); /* alt mark: stickers, merch, hero moments */

  /* ── Shape + space ── */
  --radius-sm: 8px;     /* tiles, cards */
  --radius-md: 14px;    /* panels */
  --radius-pill: 999px; /* pills, buttons */
  --gutter: clamp(16px, 4vw, 48px);
  --frame-inset: 24px;  /* corner labels / page numbers sit this far in */

  /* ── Motion: soft float is the base ── */
  --ease-float: cubic-bezier(.25,.8,.3,1);
  --rise-distance: 26px;
  --rise-duration: 560ms;
  --stagger: 150ms;
  --cloud-drift: 3s;    /* float loop, ±6px */
}

/* ── Utilities ── */
.bd-display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: var(--display-leading); color: var(--black); }
.bd-text    { font-family: var(--font-text); font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.bd-label   { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--ink-3); }
.bd-hand    { font-family: var(--font-hand); font-weight: 700; color: var(--cherry); }
.bd-num     { font-variant-numeric: tabular-nums; }

.bd-pill { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--sky); color: var(--black); }
.bd-pill--cherry { background: var(--cherry); color: var(--pure-white); }
.bd-sticker { transform: rotate(-8deg); }

.bd-rule { height: 1px; background: var(--rule); border: 0; }

.bd-button { display: inline-block; font-family: var(--font-text); font-weight: 500; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--sky); color: var(--black); text-decoration: none; }

/* cloud mark: <img class="bd-cloud" src="assets/cloud-white.png"> (also cloud-sky.png, cloud-black.png).
   Pre-coloured PNGs, not CSS masks: masks fail on file:// renders and in email. Set width only. */
.bd-cloud { display: inline-block; height: auto; aspect-ratio: var(--cloud-ratio); vertical-align: middle; }
.bd-cloud--lift { filter: var(--cloud-lift); }

/* full-bleed photo piece */
.bd-photo { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.bd-photo::after { content: ""; position: absolute; inset: 0; background: var(--photo-fade); pointer-events: none; }
.bd-photo > * { position: relative; z-index: 1; }
/* type on photos: soft shadow so it reads on busy frames (the fade alone isn't always enough) */
.bd-photo .bd-display, .bd-photo .bd-text { text-shadow: 0 2px 24px rgba(0,0,0,.5); }

/* reel cover: centred low, sky label, CAPS headline, short sky line */
.bd-reel-line { width: 160px; height: 4px; background: var(--sky); }
.bd-caps { text-transform: uppercase; letter-spacing: -.02em; }

/* soft float entrance (web; video goes through editing_suite.motion_styles) */
@keyframes bd-rise { from { opacity: 0; transform: translateY(var(--rise-distance)); } to { opacity: 1; transform: none; } }
@keyframes bd-drift { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-6px); } 75% { transform: translateY(5px); } }
.bd-rise  { animation: bd-rise var(--rise-duration) var(--ease-float) both; }
.bd-drift { animation: bd-drift var(--cloud-drift) ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bd-rise, .bd-drift { animation: none; } }
