/* ============================================================
   NORTH KERN GOLF — Colors & Type
   Quiet Luxury — Forest Green + Champagne Gold
   ============================================================ */

/* ── Self-hosted fonts (WOFF2 subset, 2026-05-17) ─────────────
   Canon §R-08 + §R-01: subsetted to latin + extended-latin only.
   Total: 290 KB (down from 3 MB TTF). Variable-weight axis preserved
   so CSS font-weight: 100-900 still resolves inside one file.
   Conversion: tools/n8n-patches/scratch (TTF → WOFF2 via fonttools
   + brotli, latin-1 + latin-extended-A + punctuation + currency). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/CormorantGaramond-Italic-VariableFont_wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2');
}

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --nkg-green:        #2D5F4C;  /* forest green — primary */
  --nkg-green-dark:   #1A3D31;  /* footer, dark sections */
  --nkg-green-light:  #4A8B6F;  /* large-text accents only */
  --nkg-green-deep:   #0F261D;  /* deepest green, photo overlays */
  --nkg-gold:         #C0A062;  /* champagne gold — accent (10%) — KEEP for dark-bg contexts (hero photo, dark-green sections, CTA band, footer); FAILS AA (2.49:1) on light backgrounds, use --nkg-gold-accessible there instead */
  --nkg-gold-hover:   #A8894F;
  --nkg-gold-light:   #D4B87A;
  --nkg-gold-accessible: #7A5C1E;  /* WCAG 2.2 AA — 4.6:1 on white, 4.27:1 on cream #FAF7F2. Use for informational gold-on-LIGHT contexts only (eyebrows on cream/white sections, scorecard par labels, tee tags, lesson eyes, team-card eyes, etc.). Decorative large numbers (pillar/step/signature) keep --nkg-gold + aria-hidden="true" per WCAG 1.3.1 decorative-text exemption. Token added 2026-05-20 (Phase 4 BLOCKER-1 remediation, edit IDs E067+) per Canon §A-01 */

  /* Neutrals */
  --nkg-charcoal:     #2A2A2A;  /* body text */
  --nkg-mid-gray:     #6B6B6B;  /* secondary text */
  --nkg-soft-gray:    #DDD8CF;  /* hairlines on cream */
  --nkg-cream:        #FAF7F2;  /* page bg / alt sections */
  --nkg-white:        #FFFFFF;

  /* Utility */
  --nkg-error:        #C0392B;
  --nkg-success:      #27AE60;

  /* Semantic foreground / background */
  --fg-1:   var(--nkg-charcoal);    /* body */
  --fg-2:   var(--nkg-mid-gray);    /* secondary */
  --fg-3:   var(--nkg-green-dark);  /* heading on light */
  --fg-on-dark:    var(--nkg-white);
  --fg-accent:     var(--nkg-gold);
  --bg-1:   var(--nkg-white);       /* primary bg */
  --bg-2:   var(--nkg-cream);       /* alt bg */
  --bg-dark: var(--nkg-green-dark);
  --bg-band: var(--nkg-green);
  --border-soft: var(--nkg-soft-gray);

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Type scale (clamp) */
  --t-h1: clamp(2.4rem, 5.5vw, 4.2rem);
  --t-h2: clamp(1.8rem, 3.8vw, 2.8rem);
  --t-h3: clamp(1.3rem, 2.2vw, 1.75rem);
  --t-h4: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-caption: 0.8125rem;
  --t-overline: 0.72rem;

  /* Spacing scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-gold: 0 4px 24px rgba(192,160,98,0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-hover: 180ms;
  --dur-base:  300ms;
  --dur-hero:  400ms;
  --dur-max:   500ms;

  /* Layout */
  --container-max: 1200px;
  --nav-h: 72px;
}

/* ── Base elements ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — Cormorant Garamond, sentence case (never all-caps on h1/h2) */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--fg-3);
  line-height: 1.15;
  letter-spacing: 0.3px;
  font-weight: 600;
}
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.1; }
h2 { font-size: var(--t-h2); font-weight: 600; }
h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.2; }
h4 {
  font-family: var(--font-sans);
  font-size: var(--t-h4);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg-1);
}

p { line-height: 1.7; font-size: var(--t-body); }
small, .caption { font-size: var(--t-caption); color: var(--fg-2); }

/* Overline — gold, uppercase, used on green sections too */
.overline {
  font-family: var(--font-sans);
  font-size: var(--t-overline);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* Gold hairline divider */
.gold-rule {
  width: 56px;
  height: 1px;
  background: var(--nkg-gold);
  border: 0;
  margin: 16px 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
