/* ============================================================
   SMOKE & STICK — Design System  ·  PRIDE EDITION
   Rustic Heritage · Cinematic · Apple-style motion
   Deep cinematic blacks + Pride-spectrum accents (love & acceptance).
   All sections share these tokens & primitives.
   ============================================================ */

:root {
  /* ---- Color: cinematic dark base + Pride spectrum accent ---- *
     Heritage-Pride edition: the deep cinematic blacks stay (that's
     what makes it filmic), but the warm ember accent is recast as a
     living rainbow — celebration, acceptance, love. The old ember/
     gold names are kept as aliases so every existing var() keeps
     working; they just now resolve to Pride hues.                  */
  --bg:          #07060a;   /* deep cinematic near-black base   */
  --bg-2:        #0d0a12;   /* slightly lifted, faint violet    */
  --surface:     #140f1b;   /* cards / panels                   */
  --surface-2:   #1d1626;   /* raised surface                   */
  --line:        rgba(243,231,255,0.10);
  --line-strong: rgba(243,231,255,0.22);

  /* ---- Pride spectrum (the 6-stripe flag) ---- */
  --pride-red:    #e63b2e;
  --pride-orange: #f59000;
  --pride-yellow: #ffcf2d;
  --pride-green:  #2bb24b;
  --pride-blue:   #1f7fe0;
  --pride-violet: #8a3fd1;
  /* Progress-flag extras for the warmest detail moments */
  --pride-pink:   #f5a9c8;
  --pride-cyan:   #5bcffa;

  /* The signature gradient — used for text, buttons, glows, rules */
  --pride-grad: linear-gradient(95deg,
      var(--pride-red), var(--pride-orange), var(--pride-yellow),
      var(--pride-green), var(--pride-blue), var(--pride-violet));
  --pride-grad-soft: linear-gradient(95deg,
      #ff6a5a, #ffb13d, #ffe27a, #5fd07e, #5aa9f0, #b07ce6);

  /* ---- Legacy accent names → recast onto the Pride spectrum ---- */
  --ember:       #f59000;   /* primary accent (warm Pride orange) */
  --ember-2:     #e63b2e;   /* deeper accent (Pride red)          */
  --flame:       #ffcf2d;   /* bright highlight (Pride yellow)     */
  --gold:        #ffcf2d;   /* premium accent (Pride yellow-gold)  */
  --salami:      #8a3fd1;   /* deep accent (Pride violet)          */

  --cream:       #f6eeff;   /* primary text on dark            */
  --cream-dim:   #d8ccea;   /* softened headline text          */
  --muted:       #9a8fb0;   /* secondary text                  */
  --paper:       #efe6f5;   /* light-section surface           */

  /* ---- Typography ---- */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, sans-serif;

  /* fluid type scale (min .. max viewport 360 .. 1440) */
  --t-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --t-body:    clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  --t-lead:    clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  --t-h3:      clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  --t-h2:      clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
  --t-h1:      clamp(3rem, 1.6rem + 6.6vw, 8.5rem);
  --t-mega:    clamp(4rem, 1rem + 14vw, 13rem);

  /* ---- Spacing & layout ---- */
  --gutter:    clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);
  --maxw:      1320px;
  --maxw-text: 760px;
  --radius:    14px;
  --radius-lg: 24px;

  /* ---- Motion ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine:     cubic-bezier(0.62, 0.05, 0.01, 0.99);
  --ease-soft:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur:           0.7s;

  /* ---- Effects ---- */
  --glow-ember:  0 0 60px -10px rgba(245,144,0,0.45);
  --glow-pride:  0 0 70px -8px rgba(138,63,209,0.45), 0 0 40px -12px rgba(31,127,224,0.4);
  --shadow-deep: 0 40px 80px -30px rgba(0,0,0,0.9);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--pride-violet); color: #fff; }

/* ---- Shared primitives ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* rainbow gradient text */
  background: var(--pride-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.8em; height: 2px; border-radius: 2px;
  -webkit-text-fill-color: initial;
  background: var(--pride-grad);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  color: var(--cream);
}
.display em {
  font-style: italic;
  background: var(--pride-grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--cream-dim);
  max-width: var(--maxw-text);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1em 1.9em;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .4s var(--ease-out-expo), background .4s, box-shadow .4s, color .4s;
  will-change: transform;
}
.btn--primary {
  background: var(--pride-grad);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #15101c;
  box-shadow: var(--glow-pride);
  transition: transform .4s var(--ease-out-expo), background-position .8s var(--ease-soft), box-shadow .4s;
}
.btn--primary:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 0 90px -6px rgba(138,63,209,0.6), 0 0 50px -10px rgba(245,144,0,0.5);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--pride-violet); color: var(--cream); transform: translateY(-3px); }

/* Decorative Pride divider */
.rule {
  height: 2px; border: 0; opacity: 0.85;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  background: var(--pride-grad);
}

/* Reusable Pride helpers */
.text-pride {
  background: var(--pride-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pride-flag {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(180deg,
    var(--pride-red) 0 16.66%, var(--pride-orange) 16.66% 33.33%,
    var(--pride-yellow) 33.33% 50%, var(--pride-green) 50% 66.66%,
    var(--pride-blue) 66.66% 83.33%, var(--pride-violet) 83.33% 100%);
}

/* Section scaffold */
.section { position: relative; padding-block: var(--section-y); }

/* ---- Accessibility / reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* utility */
.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;
}
