/* =========================================================================
   LUMINARI CLUB — Design Tokens  ·  v2
   Parchment · Champagne · Forest  ·  EB Garamond + Mulish
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Mulish:wght@300;400;500;600&display=swap');

:root {
  /* ---------------------------------------------------------------------
     COLOR — Core palette (from the brand)
     --------------------------------------------------------------------- */
  --parchment:      #F4F1EA;   /* primary light surface — never pure white */
  --parchment-dim:  #ECE7DA;   /* panel / card on parchment */
  --champagne:      #D4C9A8;   /* warm metallic accent, dividers, panels */
  --champagne-deep: #BFB088;   /* pressed champagne / hairline-on-light */
  --forest:         #1B4332;   /* PRIMARY brand — titles, body on light */
  --forest-deep:    #0F2A1E;   /* dark gradient covers / footer base */
  --forest-soft:    #2C5A45;   /* hover for forest surfaces */
  --cream:          #FBF9F4;   /* brightest light — text on photos */

  /* Supporting neutrals (warm-leaning) */
  --stone-90: #2B2A24;
  --stone-70: #5A584E;
  --stone-50: #87857A;
  --stone-30: #B6B3A6;
  --stone-15: #DAD6CA;
  --stone-08: #EAE6DB;

  /* Cover gradient (the dark editorial cover) */
  --cover-top:  #1A2438;   /* deep navy-plum */
  --cover-mid:  #3E3247;   /* dusk plum */
  --cover-low:  #6B4A4E;   /* warm horizon */

  /* ---------------------------------------------------------------------
     COLOR — Semantic
     --------------------------------------------------------------------- */
  --bg:          var(--parchment);
  --bg-alt:      var(--cream);
  --bg-panel:    var(--parchment-dim);
  --bg-dark:     var(--forest);
  --bg-darker:   var(--forest-deep);

  --fg1:         var(--forest);       /* primary heading + body on light */
  --fg2:         var(--stone-70);     /* secondary / captions */
  --fg3:         var(--stone-50);     /* tertiary / metadata */
  --fg-on-dark:      var(--cream);
  --fg-on-dark-soft: rgba(251, 249, 244, 0.74);
  --accent:      var(--champagne);
  --accent-deep: var(--champagne-deep);

  --rule:        rgba(27, 67, 50, 0.16);    /* hairline on light */
  --rule-strong: rgba(27, 67, 50, 0.32);
  --rule-dark:   rgba(251, 249, 244, 0.22); /* hairline on dark */

  /* ---------------------------------------------------------------------
     TYPE
     Display + editorial: EB Garamond (the brand face). Titles set in CAPS.
     Body / UI: Mulish — quiet humanist sans.
     SUBSTITUTION: EB Garamond is exact (Google Fonts). Mulish is our pick
     for the body sans seen in the reference posts — swap if you have a
     licensed grotesque.
     --------------------------------------------------------------------- */
  --font-display: 'EB Garamond', 'Garamond', Georgia, serif;
  --font-serif:   'EB Garamond', 'Garamond', Georgia, serif;
  --font-sans:    'Mulish', 'Helvetica Neue', system-ui, sans-serif;

  /* Type scale */
  --t-hero:     clamp(52px, 8vw, 112px); /* @kind font */
  --t-display:  clamp(40px, 6vw, 76px); /* @kind font */
  --t-h1:       clamp(32px, 4vw, 54px); /* @kind font */
  --t-h2:       30px; /* @kind font */
  --t-h3:       23px; /* @kind font */
  --t-h4:       18px; /* @kind font */
  --t-body-lg:  20px; /* @kind font */
  --t-body:     17px; /* @kind font */
  --t-body-sm:  15px; /* @kind font */
  --t-caption:  13px; /* @kind font */
  --t-label:    11px; /* @kind font */
  --t-micro:    10px; /* @kind font */

  --lh-tight:   1.02; /* @kind font */
  --lh-snug:    1.16; /* @kind font */
  --lh-normal:  1.45; /* @kind font */
  --lh-loose:   1.62; /* @kind font */

  --tr-tight:   -0.01em; /* @kind font */
  --tr-snug:    0; /* @kind font */
  --tr-caps:     0.14em; /* @kind font */
  --tr-label:    0.24em; /* @kind font */
  --tr-wide:     0.06em; /* @kind font */

  /* ---------------------------------------------------------------------
     SPACING — 4px base, generous editorial scale
     --------------------------------------------------------------------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* ---------------------------------------------------------------------
     RADII — minimal, angular luxury
     --------------------------------------------------------------------- */
  --r-none: 0; /* @kind radius */
  --r-xs: 2px; --r-sm: 4px; --r-md: 8px;
  --r-pill: 999px; --r-circle: 50%;

  /* ---------------------------------------------------------------------
     SHADOWS — sparse, print-like
     --------------------------------------------------------------------- */
  --shadow-1: 0 1px 2px rgba(15, 42, 30, 0.06);
  --shadow-2: 0 10px 30px rgba(15, 42, 30, 0.08);
  --shadow-3: 0 24px 60px rgba(15, 42, 30, 0.14);
  --shadow-image: 0 30px 60px -22px rgba(15, 42, 30, 0.4);

  /* ---------------------------------------------------------------------
     MOTION
     --------------------------------------------------------------------- */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-in:  cubic-bezier(0.4, 0, 0.6, 1); /* @kind other */
  --dur-fast: 180ms; /* @kind other */
  --dur: 320ms; /* @kind other */
  --dur-slow: 600ms; /* @kind other */

  --grain: 0.035; /* @kind other */
}

/* =========================================================================
   SEMANTIC ELEMENT DEFAULTS
   ========================================================================= */
html, body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Display titles — EB Garamond, CAPS (the brand signature) */
.title, .display, .hero {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  line-height: var(--lh-tight);
  margin: 0;
}
.hero    { font-size: var(--t-hero); }
.display { font-size: var(--t-display); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: var(--lh-snug);
  font-weight: 500;
  font-style: italic;
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--t-h4);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
  margin: 0;
}

p, .body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-loose);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}
.body-lg { font-size: var(--t-body-lg); line-height: var(--lh-loose); }
.body-sm { font-size: var(--t-body-sm); line-height: var(--lh-normal); }

/* Italic editorial eyebrow (EB Garamond italic, like "THE LUMINARI EDIT") */
.eyebrow-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
}

/* Tracked sans label */
.label, .eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg2);
}

.caption {
  font-family: var(--font-sans);
  font-size: var(--t-caption);
  line-height: var(--lh-normal);
  letter-spacing: var(--tr-wide);
  color: var(--fg2);
}

/* Wordmark — "Luminari Club" set in EB Garamond, lightly tracked caps */
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

hr, .rule {
  border: 0; height: 1px; background: var(--rule); margin: var(--s-6) 0;
}
.rule-champagne { background: var(--champagne); height: 1.5px; width: 56px; border: 0; display: block; }

a { color: inherit; text-decoration: none; }

/* Film grain overlay for imagery containers */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity: var(--grain); mix-blend-mode: overlay;
}
