/* ==========================================================================
   Fangorn Analytics - THEME
   This is the only file you need to edit to re-skin the site.
   Brand palette (analogous forest greens): #134E0E  #0E4E29  #0E4E49
   ========================================================================== */

@font-face {
  font-family: "Ringbearer";
  src: url("../fonts/RingbearerMedium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Brand greens */
  --brand-1: #134E0E;   /* moss / leaf green   */
  --brand-2: #0E4E29;   /* forest green        */
  --brand-3: #0E4E49;   /* deep teal-pine      */

  /* Signature gradient across the three greens */
  --brand-gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);

  /* Surfaces & text (light mode) */
  --bg:          #F7F7F2;   /* off-white page background */
  --bg-alt:      #EEF1EA;   /* alternating section tint */
  --surface:     #FFFFFF;   /* cards */
  --surface-2:   #F1F4EE;
  --border:      #D9DFD4;
  --text:        #0F1A14;
  --text-muted:  #4A5A50;
  --accent:      var(--brand-2);
  --accent-soft: rgba(14, 78, 41, 0.10);
  --on-accent:   #F7F7F2;

  /* Dark "forest" band used for hero/CTA in both modes */
  --forest-bg:   #0A2416;
  --forest-text: #EAF0E6;

  /* Hero animation colors (read by hero.js) */
  --hero-node:   rgba(234, 240, 230, 0.75);
  --hero-line:   rgba(150, 200, 160, 0.18);

  /* Typography */
  --font-brand: "Ringbearer", Georgia, serif;   /* company name only (header + footer) */
  --font-sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --fs-hero: clamp(2.4rem, 5.5vw, 4.4rem);
  --fs-h2:   clamp(1.8rem, 3.4vw, 2.6rem);
  --fs-h3:   1.25rem;

  /* Shape & motion */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(15, 26, 20, 0.06), 0 8px 24px rgba(15, 26, 20, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 26, 20, 0.14);
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --maxw:      1180px;

  color-scheme: light;
}

/* Dark mode (toggled via data-theme="dark" on <html>) */
:root[data-theme="dark"] {
  --bg:          #08130D;
  --bg-alt:      #0C1C13;
  --surface:     #102419;
  --surface-2:   #13291D;
  --border:      #1F3A2A;
  --text:        #EAF0E6;
  --text-muted:  #A3B5A8;
  --accent:      #5FB37A;   /* lightened green for contrast on dark */
  --accent-soft: rgba(95, 179, 122, 0.14);
  --on-accent:   #08130D;
  --forest-bg:   #051009;
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:   0 20px 50px rgba(0,0,0,.5);
  color-scheme: dark;
}
