/* =============================================================
   Megaphone — Colors & Type
   Non-profit amplifying artists. Vintage Americana, warm,
   playful, a touch avant garde, minimal and straightforward.
   ============================================================= */

/* ---------- Web fonts (Google Fonts substitutions) ---------- */
/* NOTE: Real Megaphone assets likely use custom lettering.
   These are the closest free web-font substitutions.
   - Yellowtail         ≈ the "Megaphone" brush script
   - Alfa Slab One      ≈ the chunky squared display (MEGA / PHONE / EST. 2025)
   - Oswald             ≈ condensed supporting sans (LOS ANGELES, CA.)
   - DM Sans            ≈ neutral body copy (pairs cleanly with the display)
*/
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Work+Sans:wght@400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  /* ---------- Brand palette (sampled from colorscheme.png) ----- */
  --mp-cream:    #FFFBDA;  /* paper / primary light surface */
  --mp-ochre:    #BF8F40;  /* brass — the "megaphone" tone */
  --mp-ink:      #242924;  /* charcoal-green near-black */
  --mp-sage:     #71A587;  /* dusty sage / matte teal */

  /* ---------- Tonal extensions (derived, keep the family) ----- */
  --mp-cream-50: #FFFDEC;
  --mp-cream-100:#FFFBDA;
  --mp-cream-200:#F6EEBF;
  --mp-cream-300:#E8DEA3;

  --mp-ochre-300:#D8AE6A;
  --mp-ochre-500:#BF8F40;
  --mp-ochre-700:#8A6628;

  --mp-ink-900:  #171A17;
  --mp-ink-800:  #1D221D;
  --mp-ink-700:  #242924;
  --mp-ink-500:  #3A423A;
  --mp-ink-300:  #6E766E;

  --mp-sage-300: #9CC2AC;
  --mp-sage-500: #71A587;
  --mp-sage-700: #4E7C62;

  /* Utility */
  --mp-paper:    var(--mp-cream);
  --mp-stage:    var(--mp-ink);
  --mp-line:     rgba(36, 41, 36, 0.16);
  --mp-line-strong: rgba(36, 41, 36, 0.42);
  --mp-line-on-ink: rgba(255, 251, 218, 0.20);

  /* ---------- Semantic foreground / background ---------------- */
  --fg-1: var(--mp-ink);          /* primary text on light */
  --fg-2: #3A423A;                /* secondary text on light */
  --fg-3: #6E766E;                /* tertiary / meta */
  --fg-inv-1: var(--mp-cream);    /* primary text on dark */
  --fg-inv-2: rgba(255,251,218,0.78);
  --fg-inv-3: rgba(255,251,218,0.55);
  --fg-accent: var(--mp-ochre);
  --fg-success: var(--mp-sage-700);

  --bg-1: var(--mp-cream);        /* page */
  --bg-2: #FBF3C8;                /* card on cream */
  --bg-3: #F3E9B3;                /* emphasis on cream */
  --bg-inv-1: var(--mp-ink);
  --bg-inv-2: var(--mp-ink-800);

  /* ---------- Radii, shadow, spacing --------------------------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 0 rgba(36,41,36,0.08);
  --shadow-md:  0 2px 0 rgba(36,41,36,0.10), 0 6px 18px rgba(36,41,36,0.08);
  --shadow-stamp: 4px 4px 0 var(--mp-ink); /* offset block shadow — our signature */
  --shadow-stamp-ochre: 4px 4px 0 var(--mp-ochre);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---------- Type families ------------------------------------ */
  --font-script:  "Caveat", "Kalam", "Shadows Into Light", cursive;
  --font-display: "Work Sans", "Gotham", "Helvetica Neue", "Inter", sans-serif;
  --font-condensed: "Oswald", "Barlow Condensed", "Impact", sans-serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  /* ---------- Type scale --------------------------------------- */
  --fs-hero:    clamp(64px, 9vw, 128px);
  --fs-display: clamp(44px, 6vw, 80px);
  --fs-h1:      clamp(34px, 4vw, 56px);
  --fs-h2:      clamp(26px, 3vw, 40px);
  --fs-h3:      22px;
  --fs-h4:      18px;
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-micro:   12px;

  --lh-tight:   1.02;
  --lh-snug:    1.15;
  --lh-body:    1.55;
  --lh-relaxed: 1.7;

  --ls-stamp:   0.16em;   /* LOS ANGELES, CA. — wide tracking */
  --ls-tight:   -0.01em;
  --ls-normal:  0em;
}

/* ========== Semantic base elements ========== */
html, body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Signature: script headlines for emotional/brand moments */
.mp-script {
  font-family: var(--font-script);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  line-height: 1.0;
}

/* Display headings: the chunky, slab display is used for titles */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900; /* Work Sans 900 — heavy Gotham-alt */
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
  margin: 0 0 var(--space-4);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-3);
}

h3, .h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-3);
}

h4, .h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.3;
  margin: 0 0 var(--space-2);
}

/* The vintage "stamp" caption — wide-tracked uppercase condensed */
.mp-stamp {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-stamp);
  font-size: var(--fs-small);
}

/* Small quotes like "AMPLIFYING ARTISTS" tagline treatment */
.mp-tagline {
  font-family: var(--font-condensed);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--fs-small);
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  text-wrap: pretty;
  max-width: 68ch;
  margin: 0 0 var(--space-4);
}

small, .small, .meta {
  font-size: var(--fs-small);
  color: var(--fg-2);
}

code, pre, .mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-3);
  padding: 0 0.3em;
  border-radius: var(--radius-xs);
}

a {
  color: var(--mp-ochre-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--mp-ink); text-decoration-color: var(--mp-ochre); }

hr {
  border: none;
  border-top: 2px solid var(--mp-ink);
  margin: var(--space-5) 0;
}

/* ========== Utility surfaces ========== */
.surface-paper { background: var(--mp-cream); color: var(--fg-1); }
.surface-ink   { background: var(--mp-ink);   color: var(--fg-inv-1); }
.surface-ochre { background: var(--mp-ochre); color: var(--mp-ink); }
.surface-sage  { background: var(--mp-sage);  color: var(--mp-ink); }
