/* ============================================================
   SeaTox — Design Tokens v2.0  (BLUE-FIRST)
   ------------------------------------------------------------
   Derived by pixel-sampling seatox_branding/ (the real packaging).
   Supersedes /tokens/tokens.css v1.0, which was built on a
   bone-paper + kelp-teal direction the client has rejected.

   THE RULE THAT GOVERNS COLOR:
   Green is only permitted as a PHOTOGRAPH of something that came
   out of the ocean (kelp, seaweed, algae in water). Never as a UI
   color — never a button, field, border, or type color.
   Reason: green is AG1's territory. SeaTox is the ocean. Blue.
   ============================================================ */

:root {
  /* ---- Navy scale — sampled from the box, bottle label & lid ---- */
  --st-abyss:       #060F1A;  /* deepest field, page bg          */
  --st-deep:        #0A1B2A;  /* primary dark field              */
  --st-navy:        #0C1F30;  /* THE packaging navy (sampled)    */
  --st-navy-raised: #123048;  /* cards, raised surfaces          */
  --st-navy-line:   #1E3F58;  /* hairlines/borders on dark       */

  /* ---- Accent — sampled from the emblem ring on the box lid ---- */
  --st-glow:        #8CE6D8;  /* hero accent. 11.5:1 on navy     */
  --st-foam:        #C7F2EA;  /* palest — large display type     */
  --st-signal:      #5AA9E6;  /* true blue — data, maps, links   */

  /* ---- Light side — sea glass, NOT bone paper ---- */
  --st-glass:       #E9F1F3;  /* light field, cool blue cast     */
  --st-glass-2:     #F4F8F9;  /* raised light surface            */
  --st-deep-cyan:   #10727F;  /* accent that survives on light   */

  /* ---- Text ---- */
  --st-on-dark:      #FFFFFF;
  --st-on-dark-body: #B9CBD6;
  --st-on-dark-mute: #7B96A8;
  --st-on-light:      #0C1F30;
  --st-on-light-mute: #47606F;

  /* ---- Ocean-provenance green: PHOTOGRAPHY ONLY ----
     Present so nobody invents their own. Do not apply to UI. */
  --st-kelp-photo: #4E7A5C;

  /* ---- Type ----
     Display  : Bodoni Moda  — matches the wordmark's hairline
                serifs and thin/thick contrast far better than
                Cormorant, and is less of a default.
     UI       : Archivo      — true 300 weight, wide caps, holds
                the packaging's letterspaced-uppercase labels.
     Data     : IBM Plex Mono — coordinates, specimen labels.  */
  --st-font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --st-font-ui:      "Archivo", -apple-system, system-ui, sans-serif;
  --st-font-data:    "IBM Plex Mono", ui-monospace, monospace;

  --st-fw-light: 300; --st-fw-reg: 400; --st-fw-med: 500; --st-fw-semi: 600;

  /* Fluid scale — clamp() so all three sites are responsive by default */
  --st-size-hero:  clamp(2.75rem, 8vw, 7rem);
  --st-size-h1:    clamp(2.25rem, 5.5vw, 4.5rem);
  --st-size-h2:    clamp(1.75rem, 3.5vw, 2.75rem);
  --st-size-h3:    clamp(1.25rem, 2vw, 1.75rem);
  --st-size-body-lg: clamp(1.05rem, 1.4vw, 1.25rem);
  --st-size-body:  1rem;
  --st-size-small: 0.875rem;
  --st-size-eyebrow: 0.75rem;

  /* Tracking — straight off the packaging */
  --st-track-eyebrow: 0.18em;   /* "93 NUTRIENTS", "DAILY SUPPORT" */
  --st-track-button:  0.12em;
  --st-track-wordmark:0.22em;   /* S E A T O X */
  --st-track-tight:  -0.015em;

  --st-lead-tight: 1.04; --st-lead-snug: 1.2; --st-lead-body: 1.65;

  /* ---- Space (8pt) ---- */
  --st-1:4px;  --st-2:8px;   --st-3:12px; --st-4:16px; --st-6:24px;
  --st-8:32px; --st-10:40px; --st-12:48px; --st-16:64px; --st-20:80px;
  --st-24:96px; --st-32:128px; --st-40:160px;

  /* ---- Radius ---- */
  --st-r-xs:4px; --st-r-sm:8px; --st-r-md:12px;
  --st-r-lg:20px; --st-r-xl:28px; --st-r-pill:999px;

  /* ---- Elevation — on navy, prefer hairline + glow over shadow ---- */
  --st-shadow-md: 0 4px 24px rgba(3,10,18,.45);
  --st-shadow-lg: 0 24px 70px rgba(3,10,18,.60);
  --st-glow-soft: 0 0 60px rgba(140,230,216,.18);

  /* ---- Motion — tidal, never bouncy ---- */
  --st-dur-micro:150ms; --st-dur-base:320ms; --st-dur-slow:600ms;
  --st-dur-tide:900ms;
  --st-ease: cubic-bezier(.4,0,.2,1);
  --st-ease-out: cubic-bezier(.16,1,.3,1);

  --st-container: 1240px;
  --st-measure: 68ch;
}

/* ---- Shared primitives every direction inherits ---- */
*, *::before, *::after { box-sizing: border-box; }

.st-eyebrow {
  font-family: var(--st-font-ui);
  font-size: var(--st-size-eyebrow);
  font-weight: var(--st-fw-med);
  letter-spacing: var(--st-track-eyebrow);
  text-transform: uppercase;
}

/* The wordmark. Serif, caps, wide-tracked — never set in the grotesque. */
.st-wordmark {
  font-family: var(--st-font-display);
  font-weight: var(--st-fw-reg);
  letter-spacing: var(--st-track-wordmark);
  text-transform: uppercase;
}

/* The squiggle divider from under "DAILY DETOX". Recurring brand signal. */

:focus-visible {
  outline: 2px solid var(--st-glow);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; scroll-behavior:auto !important;
  }
}
