/* Trucker Party Hats — design tokens
   Used by every section. Update here, everything updates. */

:root {
  /* ————— Color ————— */
  --color-navy:       #1a2653;
  --color-navy-deep:  #012054;
  --color-navy-ink:   #0b112d;

  --color-cream:      #faf5ea;
  --color-bone:       #f0e7d2;
  --color-tan:        #d2b48c;

  --color-red:        #c92a2a;
  --color-red-deep:   #8e1616;
  --color-gold:       #d9a441;

  --color-white:      #ffffff;
  --color-ink:        #181818;
  --color-muted:      #6b6f7a;
  --color-line:       #e4ddca;

  /* Role aliases (use these in section code) */
  --bg:               var(--color-cream);
  --bg-alt:           var(--color-bone);
  --surface:          var(--color-white);
  --text:             var(--color-navy-ink);
  --text-muted:       var(--color-muted);
  --accent:           var(--color-navy);
  --accent-contrast:  var(--color-white);
  --sale:             var(--color-red);
  --line:             var(--color-line);

  /* ————— Typography ————— */
  --font-display: "Anton", "Oswald", "Impact", sans-serif;
  --font-accent:  "Alfa Slab One", "Rye", "Georgia", serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* Type scale (fluid, clamp-based) */
  --fs-hero:    clamp(3rem, 8vw, 6.5rem);   /* 48–104 */
  --fs-h1:      clamp(2.25rem, 5vw, 3.75rem); /* 36–60 */
  --fs-h2:      clamp(1.75rem, 3.5vw, 2.5rem); /* 28–40 */
  --fs-h3:      clamp(1.25rem, 2.25vw, 1.625rem); /* 20–26 */
  --fs-body:    1rem;
  --fs-body-lg: 1.125rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.8125rem;

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* ————— Spacing ————— */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ————— Layout ————— */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 3vw, 2rem);

  /* Sticky header offset. Desktop: 44 (top bar) + 108 (main) = 152.
     Below 960px main bar shrinks to 84 → 128. Below 720px top bar
     collapses to ~auto (often ~60) → ~144. */
  --sticky-top: 152px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ————— Elevation ————— */
  --shadow-sm: 0 1px 2px rgba(11, 17, 45, 0.08);
  --shadow-md: 0 6px 18px rgba(11, 17, 45, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 17, 45, 0.18);

  /* ————— Motion ————— */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med:  250ms;
  --dur-slow: 450ms;
}

/* ————— Base reset ————— */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ————— Type presets ————— */
.type-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-navy);
}
.type-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--color-navy);
}
.type-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  color: var(--color-navy);
}
.type-h3 {
  font-family: var(--font-accent);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--color-navy);
}
.type-eyebrow {
  font-family: var(--font-accent);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
}
.type-body    { font-size: var(--fs-body);    line-height: var(--lh-normal); }
.type-body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-normal); }
.type-small   { font-size: var(--fs-small);   color: var(--text-muted); }

/* ————— Utility ————— */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* Visually hidden but still accessible to screen readers. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-navy-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-navy);
}
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn--accent {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}
.btn--accent:hover { background: var(--color-red-deep); border-color: var(--color-red-deep); }
