/* =====================================================================
   Vivian Lee Foundation — Foundations
   Two systems: VLF Core (everyday) + In Bloom (spring gala campaign)
   --------------------------------------------------------------------- */

/* ------- Brand webfonts ------------------------------------------------
   Real brand fonts are loaded from /fonts (user-provided). League Spartan
   remains a Google Fonts load (it's the genuine brand subhead family and
   open-licensed).
   ------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700;800&display=swap");

@font-face {
  font-family: "MADE Mirage";
  src: url("fonts/MADE_Mirage_Thin_PERSONAL_USE.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MADE Mirage";
  src: url("fonts/MADE_Mirage_Regular_PERSONAL_USE.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MADE Mirage";
  src: url("fonts/MADE_Mirage_Medium_PERSONAL_USE.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MADE Mirage";
  src: url("fonts/MADE_Mirage_Bold_PERSONAL_USE.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GeosansLight";
  src: url("fonts/GeosansLight.ttf") format("truetype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Adelia";
  src: url("fonts/adelia.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Adorn Story Serif";
  src: url("fonts/AdornStorySerif.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===== VLF CORE PALETTE ===== */
  --vlf-bronze:        #96774e; /* primary warm — bronze / olive-gold */
  --vlf-sage:          #9da6a6; /* logo script color, calming neutral */
  --vlf-cream:         #e9dccd; /* warm off-cream, large fields */
  --vlf-blush:         #dfcbc4; /* dusty blush, secondary surface */
  --vlf-ivory:         #f4f0eb; /* paper / page background */
  --vlf-mauve:         #8d5e5d; /* dusty mauve — accents, links */
  --vlf-pink:          #e3bab3; /* soft pink, heart, highlight chips */
  --vlf-charcoal:      #3f3931; /* warm near-black for body text */
  --vlf-black:         #000000; /* true black, sparingly */

  /* Tints / on-darks derived from above */
  --vlf-cream-50:      #f7f1e8;
  --vlf-blush-50:      #efe2dd;
  --vlf-charcoal-80:   #5b544b;
  --vlf-charcoal-60:   #7a7269;
  --vlf-line:          #d8cdc1;     /* hairline rule on cream */
  --vlf-line-soft:     #e7ddd1;
  --vlf-overlay:       rgba(63, 57, 49, .55); /* charcoal scrim over imagery */

  /* ===== BREATHE EASY RETREAT PALETTE (CF moms retreat) ===== */
  --be-peach:          #e3a991; /* warm peach — primary accent / cards */
  --be-peach-soft:     #f1d3c3; /* paler peach surface */
  --be-peach-tint:     #fbeee5; /* the lightest wash, page bg */
  --be-taupe:          #c69f88; /* "Breathe Easy" wordmark color */
  --be-sage-deep:      #687c6f; /* sage panel — header chip behind logo */
  --be-ink:            #4a4f4d; /* warm slate body text */
  --be-cream:          #fdf9f4;

  /* ===== IN BLOOM CAMPAIGN PALETTE (spring gala) ===== */
  --bloom-sage:        #88b59a; /* fresh garden sage */
  --bloom-blush-white: #f4e9e9; /* watercolor wash background */
  --bloom-rose:        #d58f8c; /* dusty rose — primary accent */
  --bloom-peach:       #e9c3b6; /* warm peach */
  --bloom-teal:        #204648; /* deep teal — display headlines */
  --bloom-mustard:     #ecc25c; /* mustard yellow accent */
  --bloom-bluegray:    #9ba8af; /* cool blue-gray */
  --bloom-ink:         #2b3a3b; /* near-teal for body text */

  /* ===== SEMANTIC — VLF CORE (default theme) ===== */
  --color-bg:          var(--vlf-ivory);
  --color-bg-alt:      var(--vlf-cream);
  --color-bg-tint:     var(--vlf-blush-50);
  --color-surface:     #ffffff;
  --color-fg:          var(--vlf-charcoal);
  --color-fg-muted:    var(--vlf-charcoal-80);
  --color-fg-subtle:   var(--vlf-charcoal-60);
  --color-fg-on-dark:  var(--vlf-ivory);
  --color-accent:      var(--vlf-bronze);
  --color-accent-soft: var(--vlf-pink);
  --color-link:        var(--vlf-mauve);
  --color-line:        var(--vlf-line);
  --color-line-soft:   var(--vlf-line-soft);

  /* Status (kept gentle, never alarming reds — this is a CF-family org) */
  --color-success:     #6f8f7a;
  --color-warning:     #c89a4a;
  --color-info:        var(--vlf-sage);

  /* ===== TYPOGRAPHY ===== */
  --font-display:  "MADE Mirage", "Cormorant Garamond", Georgia, serif;
  /* Secondary display — Adorn Story Serif. Hand-drawn soft serif. Use for
     editorial moments where Mirage feels too formal: section labels,
     program-card titles, captions on family photography. */
  --font-display-soft: "Adorn Story Serif", "Cormorant Garamond", Georgia, serif;
  --font-subhead:  "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --font-body:     "GeosansLight", "Outfit", "Helvetica Neue", Arial, sans-serif;
  /* Script accent — Adelia. RARE & CEREMONIAL: 1 word at a time, gala
     invitations, name cards, save-the-dates. Never body, never long phrases. */
  --font-script:   "Adelia", "Pinyon Script", "Snell Roundhand", cursive;

  /* Type scale — print-leaning, generous */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.375rem;
  --fs-xl:    1.75rem;
  --fs-2xl:   2.5rem;
  --fs-3xl:   3.5rem;
  --fs-4xl:   5rem;
  --fs-5xl:   7rem;

  /* Weights */
  --fw-light: 300;
  --fw-reg:   400;
  --fw-med:   500;
  --fw-bold:  700;
  --fw-black: 800;

  /* Tracking — subheads are ALWAYS spaced out */
  --tr-tight:    -0.01em;
  --tr-normal:    0;
  --tr-wide:      0.08em;
  --tr-wider:     0.18em;   /* League Spartan eyebrows */
  --tr-widest:    0.28em;   /* short labels in caps */

  /* Line heights */
  --lh-display:  1.05;
  --lh-heading:  1.15;
  --lh-body:     1.55;
  --lh-tight:    1.25;

  /* ===== SPACING (8pt-leaning, with tighter print steps) ===== */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ===== RADII — soft, never pill-everything ===== */
  --radius-xs:  2px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ===== ELEVATION — almost flat, paper-like ===== */
  --shadow-xs:  0 1px 2px rgba(63, 57, 49, .06);
  --shadow-sm:  0 2px 8px rgba(63, 57, 49, .08);
  --shadow-md:  0 8px 24px rgba(63, 57, 49, .10);
  --shadow-lg:  0 18px 48px rgba(63, 57, 49, .14);
  --shadow-inset-soft: inset 0 0 0 1px var(--vlf-line-soft);

  /* ===== MOTION — restrained, paper-soft ===== */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast:    160ms;
  --dur-base:    240ms;
  --dur-slow:    420ms;

  /* Layout */
  --container:   1200px;
  --container-narrow: 760px;
}

/* ===== BREATHE EASY THEME OVERRIDE =====
   Wrap any subtree in `.theme-breathe-easy` for the retreat sub-brand.
   Display headlines should use the chunky-serif Breathe Easy wordmark
   image asset (assets/logos/breathe-easy-wordmark.png) — the typeface
   itself is not currently bundled. Body type is GeosansLight as usual. */
.theme-breathe-easy {
  --color-bg:         var(--be-peach-tint);
  --color-bg-alt:     var(--be-cream);
  --color-bg-tint:    var(--be-peach-soft);
  --color-surface:    #ffffff;
  --color-fg:         var(--be-ink);
  --color-fg-muted:   #6a716e;
  --color-fg-subtle:  #8a918e;
  --color-fg-on-dark: var(--be-cream);
  --color-accent:     var(--be-peach);
  --color-accent-soft:var(--be-peach-soft);
  --color-link:       var(--be-sage-deep);
  --color-line:       #e8d3c4;
  --color-line-soft:  #f1e3d6;
}

/* ===== IN BLOOM THEME OVERRIDE =====
   Wrap any subtree in `.theme-in-bloom` to flip the semantic vars
   to the spring campaign palette without re-tagging components.       */
.theme-in-bloom {
  --color-bg:         var(--bloom-blush-white);
  --color-bg-alt:     #fdf6f1;
  --color-bg-tint:    #f1ece5;
  --color-surface:    #ffffff;
  --color-fg:         var(--bloom-ink);
  --color-fg-muted:   #4d6062;
  --color-fg-subtle:  #6b7a7c;
  --color-fg-on-dark: var(--bloom-blush-white);
  --color-accent:     var(--bloom-rose);
  --color-accent-soft:var(--bloom-peach);
  --color-link:       var(--bloom-teal);
  --color-line:       #e6d5d1;
  --color-line-soft:  #f0e2dc;
}

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

h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-reg);
  font-size: var(--fs-3xl);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-tight);
  color: var(--color-fg);
  margin: 0 0 var(--sp-4);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-reg);
  font-size: var(--fs-2xl);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tight);
  margin: 0 0 var(--sp-3);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-med);
  font-size: var(--fs-xl);
  line-height: var(--lh-heading);
  margin: 0 0 var(--sp-3);
}
h4, .h4 {
  font-family: var(--font-subhead);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: var(--tr-wider);
  margin: 0 0 var(--sp-2);
}
.eyebrow {
  font-family: var(--font-subhead);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--tr-widest);
  color: var(--color-accent);
}
.script {
  font-family: var(--font-script);
  font-weight: var(--fw-reg);
  letter-spacing: 0;
  line-height: 1;
}

p {
  margin: 0 0 var(--sp-4);
  max-width: 62ch;
  text-wrap: pretty;
}
small, .small { font-size: var(--fs-sm); color: var(--color-fg-muted); }
hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: var(--sp-6) 0;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-accent); }

::selection { background: var(--vlf-pink); color: var(--vlf-charcoal); }
