/* =========================================================
   THE MESSAGE DESIGNER — Design tokens
   Every colour, type size, space and motion value lives here.

   Palette: forest greens on white.
   Sampled:  #FFFFFF paper · #142B22 ink · #0B3B2A forest · #104935 signal · #646A63 slate
   Derived (tints of the sampled greens, for roles the source had no colour for):
             --bone, --mist, media tones
   Added:    --accent-on-dark, a soft champagne gold for accents on dark green
   ========================================================= */

:root {
  /* Core */
  --ink:        #142B22;  /* near-black green. Text, primary buttons */
  --forest:     #0B3B2A;  /* deep forest. Dark sections, footer, menu */
  --paper:      #FFFFFF;  /* default page background */
  --bone:       #EEF3F0;  /* secondary surface, alternating bands */
  --signal:     #104935;  /* THE accent. Italic words, numerals, fills */
  --on-signal:  #FFFFFF;  /* text/icons sitting on a --signal fill */
  --signal-text: #104935; /* small accent text on light surfaces (AA) */
  --accent-on-dark: #E7C77F; /* the accent inside dark sections: soft champagne gold */

  /* Text */
  --slate:      #646A63;  /* body copy on light backgrounds */
  --mist:       #9AA19B;  /* meta, placeholders, disabled */
  --paper-70:   rgba(255, 255, 255, 0.72);
  --paper-40:   rgba(255, 255, 255, 0.40);

  /* Lines */
  --rule:       rgba(20, 43, 34, 0.14);
  --rule-dark:  rgba(255, 255, 255, 0.16);

  /* Glowing forest backdrop shared by the AI assistant and the mobile/tablet menu */
  --glow-bg:
    radial-gradient(ellipse 70% 55% at 50% 46%, #1A5C44 0%, transparent 70%),
    radial-gradient(ellipse at 50% 100%, #0F4A35 0%, transparent 60%),
    #0A3324;

  /* Tone behind images while they load */
  --media-tone:      #E2EAE5;
  --media-tone-dark: #16432F;

  /* Type families */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui:      "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Fluid scale */
  --t-hero:   clamp(3.5rem, 13vw, 11rem);
  --t-d1:     clamp(2.75rem, 7vw, 6rem);
  --t-d2:     clamp(2.25rem, 5vw, 4rem);
  --t-d3:     clamp(1.75rem, 3vw, 2.5rem);
  --t-lead:   clamp(1.125rem, 1.6vw, 1.5rem);
  --t-body:   1.0625rem;
  --t-small:  0.9375rem;
  --t-meta:   0.75rem;

  /* Space */
  --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem;
  --space-4: 2rem;    --space-5: 3rem;   --space-6: 4rem;
  --space-7: 6rem;    --space-8: 8rem;   --space-9: 12rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1440px;
  --section-y: clamp(4rem, 10vw, 10rem);
  --radius: 0;
  --radius-media: 12px;  /* project pictures: work cards and the Selected work carousel */
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 300ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;

  --header-h: 88px;
}

/* Inside dark surfaces the accent flips to a pale green so it stays visible;
   fills there take dark text. */
.on-ink, .menu {
  --signal: var(--accent-on-dark);
  --signal-text: var(--accent-on-dark);
  --on-signal: var(--forest);
}
/* Light panels inside dark sections restore the normal accent */
.on-ink .deliverable {
  --signal: #104935;
  --signal-text: #104935;
  --on-signal: #FFFFFF;
}
