/* ==========================================================================
   KAMIKAZE — DESIGN TOKENS
   Palette derived from the album cover's lighting physics:
   near-black void, one warm tan light source, cold steel-blue shadow bounce.
   ========================================================================== */

:root {
  /* --- Brand ramp (client-supplied) ------------------------------------- */
  --k-void:        #050609;  /* page ground, deepest shadow                 */
  --k-surface:     #0D1018;  /* cards, panels                              */
  --k-surface-2:   #171C2E;  /* raised surfaces, hover beds, input fields  */
  --k-light:       #DED3BA;  /* THE LIGHT — primary text, wordmark, beam   */
  --k-muted:       #9A9EAA;  /* secondary text, concrete, metadata         */
  --k-shadow:      #355B8C;  /* shadow bounce — BORDERS/DECOR ONLY         */
  --k-accent:      #6DA8FF;  /* the one live colour — CTA, focus, active   */

  /* --- Semantic roles ---------------------------------------------------- */
  --color-bg:              var(--k-void);
  --color-surface:         var(--k-surface);
  --color-surface-raised:  var(--k-surface-2);
  --color-text:            var(--k-light);
  --color-text-muted:      var(--k-muted);
  --color-border:          color-mix(in srgb, var(--k-shadow) 45%, transparent);
  --color-border-strong:   var(--k-shadow);
  --color-accent:          var(--k-accent);
  --color-on-accent:       var(--k-void);
  --color-focus:           var(--k-accent);

  /* Feedback — tuned to sit inside the palette rather than fight it */
  --color-danger:          #FF6B6B;
  --color-success:         #7FD4A8;
  --color-on-danger:       var(--k-void);

  /* --- CONTRAST CONTRACT --------------------------------------------------
     Verified against --k-void (#050609):
       --k-light  #DED3BA  ~15.8:1  PASS AAA  — body + headings
       --k-muted  #9A9EAA  ~7.0:1   PASS AAA  — secondary text OK
       --k-accent #6DA8FF  ~7.6:1   PASS AAA  — links, CTA text
       --k-shadow #355B8C  ~2.9:1   FAILS     — NEVER use for text.
                                                Borders / dividers / decor only.
     ---------------------------------------------------------------------- */

  /* --- Typography -------------------------------------------------------- */
  /* Cinzel is lifted straight off the tour-print tee (SOLDIER FIELD block).
     Archivo carries all UI and body copy. Blackletter is reserved for the
     wordmark asset only — never set as live text, it is unreadable small. */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid type scale — 375px floor, 1440px ceiling */
  --step--1: clamp(0.79rem, 0.77rem + 0.09vw, 0.84rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.18vw, 1.13rem);
  --step-1:  clamp(1.27rem, 1.20rem + 0.32vw, 1.50rem);
  --step-2:  clamp(1.60rem, 1.48rem + 0.54vw, 2.00rem);
  --step-3:  clamp(2.03rem, 1.82rem + 0.87vw, 2.67rem);
  --step-4:  clamp(2.57rem, 2.24rem + 1.37vw, 3.55rem);
  --step-5:  clamp(3.25rem, 2.73rem + 2.11vw, 4.74rem);
  /* The display step's floor was 4.11rem (~66px), which overflowed a 375px
     viewport and clipped the hero headline. Floor lowered and the slope
     steepened so it still reaches the same size on desktop. */
  --step-6:  clamp(2.35rem, 1.35rem + 4.6vw, 6.32rem);

  --tracking-display: 0.08em;  /* Cinzel caps need air to read as a poster */
  --tracking-eyebrow: 0.22em;
  --leading-tight: 1.05;
  --leading-body:  1.6;

  /* --- Spacing (8pt rhythm) ---------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --section-y: clamp(4rem, 10vw, 8rem);

  /* --- Layout ------------------------------------------------------------ */
  --container:      75rem;   /* 1200px */
  --container-wide: 90rem;
  --container-text: 42rem;   /* ~68ch measure */
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* --- Edges & elevation -------------------------------------------------- */
  /* Near-square corners: this is a concrete basement, not a SaaS dashboard. */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.6);
  --shadow-md: 0 4px 16px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 16px 48px rgb(0 0 0 / 0.8);
  --glow-accent: 0 0 24px color-mix(in srgb, var(--k-accent) 35%, transparent);
  --glow-light:  0 0 40px color-mix(in srgb, var(--k-light) 18%, transparent);

  /* --- Motion ------------------------------------------------------------- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-both:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   140ms;   /* press feedback, colour shifts */
  --dur-base:   260ms;   /* hovers, small reveals         */
  --dur-slow:   520ms;   /* section reveals               */
  --dur-exit:   170ms;   /* exits ~65% of enter           */

  /* --- Layering ------------------------------------------------------------ */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 20;
  --z-header: 40;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* The palette is intrinsically dark. Declared so the UA paints form controls,
   scrollbars and autofill to match instead of flashing white. */
:root { color-scheme: dark; }
