/* ============================================================
   BROWARD BEES — Colors & Type
   The honey palette, comb browns, and warm typographic system.
   ============================================================ */

/* -- Fonts ------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Caveat:wght@500;700&display=swap");

/* Manrope — brand font, locally hosted (variable + per-weight static files) */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-VariableFont_wght.ttf") format("truetype-variations"),
       url("fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraLight.ttf") format("truetype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Light.ttf")      format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Regular.ttf")    format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Medium.ttf")     format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-SemiBold.ttf")   format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Bold.ttf")       format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraBold.ttf")  format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* ============================================================
     PRIMITIVE COLORS — raw palette tokens.
     ============================================================ */

  /* Honey — primary brand color, warm gold gradient */
  --honey-50:  #FFF8EC;  /* lightest cream wash */
  --honey-100: #FFEBCD;  /* blanched almond — BBA stated theme color */
  --honey-200: #FFE0A8;
  --honey-300: #FFD274;  /* light honey */
  --honey-400: #F5C242;  /* mid honey */
  --honey-500: #E6A817;  /* signature honey gold */
  --honey-600: #C68A0E;  /* deep amber */
  --honey-700: #9E6A0A;
  --honey-800: #7A5108;  /* @kind color */

  /* Comb — warm browns, like beeswax + wood frames */
  --comb-50:   #F7F1E6;
  --comb-100:  #EADFC9;
  --comb-200:  #D6BE93;
  --comb-300:  #B9985F;
  --comb-500:  #8B6539;  /* mid wood */
  --comb-700:  #6B4423;  /* darker wood */
  --comb-800:  #4A2E1A;  /* deep cocoa */
  --comb-900:  #2B1810;  /* near-black wax */

  /* Pollen — vibrant accent for CTAs */
  --pollen-400: #FFC233;
  --pollen-500: #F2A900;  /* sharp, ripe pollen */
  --pollen-600: #D89000;

  /* Leaf — natural sage green for "save the bees" accents */
  --leaf-100: #E4ECD8;
  --leaf-500: #5F7A3E;
  --leaf-700: #3F5226;

  /* Sky — soft cool counterpoint */
  --sky-100: #DCE9F0;
  --sky-500: #6E9BB5;

  /* Neutrals — warm, never gray */
  --paper:    #FFFCF5;   /* page background, warm white */
  --ink:      #1A1208;   /* warm near-black */
  --line:     #E8D9B8;   /* hairlines on cream backgrounds */
  --line-soft:#F0E4C6;

  /* Semantic */
  --danger:   #B83A2A;
  --success:  var(--leaf-500);
  --info:     var(--sky-500);

  /* ============================================================
     SEMANTIC COLOR TOKENS — use these in components.
     ============================================================ */
  --bg:           var(--paper);
  --bg-cream:     var(--honey-50);
  --bg-honey:     var(--honey-100);
  --bg-dark:      var(--comb-900);
  --bg-elevated:  #FFFFFF;
  --bg-subtle:    var(--honey-50);  /* @kind color */

  --fg:           var(--ink);
  --fg-muted:     var(--comb-700);
  --fg-subtle:    var(--comb-500);
  --fg-inverse:   var(--honey-50);

  --accent:       var(--honey-500);
  --accent-hover: var(--pollen-500);
  --accent-press: var(--honey-700);
  --accent-fg:    var(--comb-900);

  --border:       var(--line);
  --border-strong:var(--comb-300);

  /* ============================================================
     TYPOGRAPHY — fonts + scale.
     ============================================================ */
  --font-display: "DM Serif Display", "Georgia", "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand:    "Caveat", "Bradley Hand", cursive;   /* signature notes, bee-pun asides */
  --font-mono:    ui-monospace, "SF Mono", "Menlo", monospace;

  /* Type scale — generous, editorial-warm */
  --fs-xs:    0.75rem;   /* 12px */
  --fs-sm:    0.875rem;  /* 14px */
  --fs-base:  1rem;      /* 16px */
  --fs-md:    1.125rem;  /* 18px */
  --fs-lg:    1.375rem;  /* 22px */
  --fs-xl:    1.75rem;   /* 28px */
  --fs-2xl:   2.25rem;   /* 36px */
  --fs-3xl:   3rem;      /* 48px */
  --fs-4xl:   4rem;      /* 64px */
  --fs-5xl:   5.5rem;    /* 88px — hero */

  --lh-tight:  1.05;  /* @kind font */
  --lh-snug:   1.2;   /* @kind font */
  --lh-normal: 1.55;  /* @kind font */
  --lh-loose:  1.75;  /* @kind font */

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-eyebrow: 0.18em; /* for ALL-CAPS eyebrows */

  /* ============================================================
     SPACING, RADII, SHADOWS, MOTION
     ============================================================ */
  --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;
  --space-10: 128px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows — soft, warm-tinted (never neutral gray) */
  --shadow-xs: 0 1px 2px rgba(74, 46, 26, 0.06);
  --shadow-sm: 0 2px 6px rgba(74, 46, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 46, 26, 0.10);
  --shadow-lg: 0 20px 60px rgba(74, 46, 26, 0.14);
  --shadow-glow-honey: 0 0 0 6px rgba(230, 168, 23, 0.16);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.4);

  /* Motion — gentle, organic, no bounce */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);  /* @kind other */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);  /* @kind other */
  --dur-fast: 140ms;  /* @kind other */
  --dur-med:  220ms;  /* @kind other */
  --dur-slow: 380ms;  /* @kind other */
}

/* ============================================================
   BASE — html/body defaults + reset niceties
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   SEMANTIC TYPE — drop-in element styles.
   ============================================================ */
.eyebrow,
[data-eyebrow] {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--honey-700);
}

/* Display font handles (c)(r)(tm) as literal characters, never as ligatures. */
h1, h2, h3, .h1, .h2, .h3,
[class*="__title"],
.bb-tier__amount,
.bb-stat__n,
.bb-hero__day,
.bb-quote__body,
.bb-event__day {
  font-feature-settings: "calt" 0, "liga" 0;
  font-variant-ligatures: no-contextual;
}

/* Body lede + any inline mention of "(c)" should also opt out — DM Serif italic emphasis sometimes
   inherits onto these. Keeping body Manrope unaffected; only the lede uses display-y kerning. */
.lede, .bb-hero__lede {
  font-variant-ligatures: no-contextual;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, var(--fs-5xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  color: var(--fg);
  margin: 0 0 0.4em;
  text-wrap: balance;
}

/* Headings on dark surfaces inherit the light text color of their band
   instead of the near-black --fg. Guards every dark hero across the site. */
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.hd h1, .hd h2, .hd h3,
[data-surface="dark"] h1, [data-surface="dark"] h2, [data-surface="dark"] h3 {
  color: inherit;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw + 1rem, var(--fs-3xl));
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  font-weight: 400;
  margin: 0 0 0.4em;
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5em;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--fg);
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lede {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--fg-muted);
  font-weight: 500;
}

.note,
.handwritten {
  font-family: var(--font-hand);
  font-size: var(--fs-xl);
  color: var(--comb-700);
  line-height: 1.1;
  transform: rotate(-2deg);
  display: inline-block;
}

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

a {
  color: var(--comb-800);
  text-decoration: underline;
  text-decoration-color: var(--honey-400);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out),
              text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover {
  color: var(--honey-700);
  text-decoration-color: var(--pollen-500);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--honey-100);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background: var(--honey-400);
  color: var(--comb-900);
}
