/* =========================================================
   Advertising Wheels - Base reset & tokens
   Brand colors per Brand Guidelines AW 2026
   - Primary  : Charcoal  #1A1917
   - Accent   : Yellow    #FCD119
   - Secondary: Blue-grey #909ABA  (data layer)
   - Tertiary : Warm neutral #B1AA98
   - Cream/off-white surface for light mode: #F4F0E8
   ========================================================= */

@font-face {
  font-family: 'Made Tommy';
  src: url('./assets/fonts/made-tommy.light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('./assets/fonts/made-tommy.regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('./assets/fonts/made-tommy.medium.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('./assets/fonts/made-tommy.bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('./assets/fonts/made-tommy.extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('./assets/fonts/made-tommy.black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  /* Brand colors */
  --aw-charcoal:   #1A1917;
  --aw-charcoal-2: #232220;
  --aw-charcoal-3: #2D2C2A;
  --aw-yellow:     #FCD119;
  --aw-yellow-dim: #E5BD16;
  --aw-bluegrey:   #909ABA;
  --aw-bluegrey-2: #7C87A8;
  --aw-bluegrey-light: #DCDAD2;
  --aw-neutral:    #B1AA98;
  --aw-neutral-2:  #A29A85;
  --aw-cream:      #F4F0E8;
  --aw-cream-2:    #EAE4D6;
  --aw-white:      #FAF8F2;

  /* Semantic tokens (beige-led theme default — Primary Beige 50% / Secondary Periwinkle 30% / Tertiary Charcoal 15% / Accent Yellow 5%, never as a section background) */
  --color-bg:        var(--aw-neutral);
  --color-surface:   var(--aw-bluegrey-light);
  --color-surface-2: var(--aw-bluegrey);
  --color-fg:        var(--aw-charcoal);
  --color-fg-dim:    #3A3835;
  --color-fg-muted:  #6B655C;
  --color-border:    rgba(26,25,23,0.14);
  --color-border-strong: rgba(26,25,23,0.22);
  --color-accent:    var(--aw-yellow);
  --color-data:      var(--aw-neutral);

  /* Typography */
  --font-display: 'Made Tommy', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Made Tommy', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem); 
  --text-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.07rem + 0.27vw, 1.25rem);
  --text-xl:   clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-2xl:  clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --text-3xl:  clamp(2.75rem, 2.2rem + 2.75vw, 4.25rem);
  --text-hero: clamp(3.25rem, 2.4rem + 4.25vw, 6.5rem);

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows tuned for the beige-led default theme */
  --shadow-sm: 0 1px 2px rgba(26,25,23,0.08);
  --shadow-md: 0 12px 28px rgba(26,25,23,0.14);
  --shadow-lg: 0 28px 72px rgba(26,25,23,0.20);

  /* Easing */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  /* Container */
  --container-max: 96%;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
}

/* Light theme variant (default brand expression — beige-led, same as :root) */
:root[data-theme="light"] {
  --color-bg:        var(--aw-neutral);
  --color-surface:   var(--aw-bluegrey-light);
  --color-surface-2: var(--aw-cream);
  --color-fg:        var(--aw-charcoal);
  --color-fg-dim:    #3A3835;
  --color-fg-muted:  #6B655C;
  --color-border:    rgba(26,25,23,0.14);
  --color-border-strong: rgba(26,25,23,0.22);
  --shadow-sm: 0 1px 2px rgba(26,25,23,0.08);
  --shadow-md: 0 12px 28px rgba(26,25,23,0.14);
  --shadow-lg: 0 28px 72px rgba(26,25,23,0.20);
  --color-accent: var(--aw-yellow);
}

/* Dark theme variant (optional alternate via toggle — charcoal-led) */
:root[data-theme="dark"] {
  --color-bg:        var(--aw-charcoal);
  --color-surface:   var(--aw-charcoal-2);
  --color-surface-2: var(--aw-charcoal-3);
  --color-fg:        var(--aw-cream);
  --color-fg-dim:    #B8B2A4;
  --color-fg-muted:  #7A7670;
  --color-border:    rgba(244,240,232,0.08);
  --color-border-strong: rgba(244,240,232,0.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.45);
  --color-accent: var(--aw-bluegrey);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background: var(--aw-yellow);
  color: var(--aw-charcoal);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--aw-charcoal);
  color: var(--aw-cream);
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 9999;
}
.skip-link:focus { left: 8px; }
