/* =========================================================
   eMergeAlpha Design System — Foundations
   Colors, type, and semantic variables.
   Brand: eMergeAlpha (a closed manager network from Attucks).
   This system also serves the public conference subsite at
   eMergeAlpha.com/conference-2026 — "The Attucks eMergeAlpha
   Conference 2026."
   Wordmark: full italic — eMergeAlpha (Fraunces italic).
   ========================================================= */

/* Webfonts — served from Google Fonts.
   Fraunces (Phaedra Charles / Undercase Type, SIL OFL)
   Inter Tight (Rasmus Andersson, SIL OFL) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,500&family=Inter+Tight:wght@300;400;500;600&display=swap');

:root {
  /* ---------- COLORS ---------- */

  /* Primary palette — navy-dominant */
  --brand-navy:     #16425F;  /* Accent on light bg, structural rules, italics */
  --deep-navy:      #0E2E45;  /* Dark surfaces (conference, footer) */
  --powder-blue:    #B8D2E1;  /* Accent on dark bg */
  --ink:            #0E1C26;  /* Primary text */

  /* Neutral palette — warm paper */
  --paper:          #F4F0E8;  /* Page background */
  --paper-warm:     #EAE4D6;  /* Section contrast (The Signal) */
  --ink-soft:       #2A3E4C;  /* Body text, subdued */
  --muted:          #6B7580;  /* Captions, metadata, timestamps */

  /* Accent — jewel color, use sparingly (2 places on homepage) */
  --ember:          #C2532A;  /* Live dot; register-btn hover */

  /* ---------- SEMANTIC ALIASES ---------- */
  --bg:             var(--paper);
  --bg-warm:        var(--paper-warm);
  --bg-dark:        var(--deep-navy);

  --fg:             var(--ink);
  --fg-soft:        var(--ink-soft);
  --fg-muted:       var(--muted);
  --fg-on-dark:     var(--paper);
  --fg-on-dark-soft: rgba(244, 240, 232, 0.78);

  --accent:         var(--brand-navy);          /* on light */
  --accent-on-dark: var(--powder-blue);         /* on dark */
  --accent-warm:    var(--ember);

  --rule:           rgba(14, 28, 38, 0.12);     /* default hairline on paper */
  --rule-strong:    var(--ink);                 /* dominant structural rule */
  --rule-on-dark:   rgba(244, 240, 232, 0.2);

  /* ---------- TYPOGRAPHY ---------- */
  --font-display:   'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-text:      'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale — from the mockup */
  --fs-hero:        clamp(60px, 9vw, 138px);
  --fs-display-l:   clamp(48px, 6vw, 92px);   /* Conference headline */
  --fs-display-m:   clamp(42px, 5.5vw, 80px); /* Agenda headline */
  --fs-display-s:   clamp(40px, 5vw, 72px);   /* Signal headline */
  --fs-note:        clamp(28px, 3.5vw, 44px); /* eMergeAlpha italic note */
  --fs-feature:     38px;  /* Signal feature dispatch */
  --fs-dispatch:    26px;  /* Signal dispatch + agenda row title */
  --fs-meta-value:  22px;  /* Conference meta value; hero lede */
  --fs-body-l:      17px;  /* Section body */
  --fs-body:        16px;  /* Default body */
  --fs-small:       14px;  /* Dispatch body, footer links */
  --fs-caption:     13px;
  --fs-caps:        11px;  /* All-caps labels */
  --fs-caps-xs:     9px;   /* Nav wordmark attribution */

  /* Tracking */
  --tracking-caps:        0.18em;
  --tracking-caps-wide:   0.22em;  /* Nav attribution */
  --tracking-caps-tight:  0.1em;
  --tracking-display:    -0.035em;
  --tracking-hero:       -0.045em;

  /* Line-height */
  --lh-body:       1.55;
  --lh-body-long:  1.65;
  --lh-display:    0.92;
  --lh-tight:      1.0;

  /* ---------- SPACING ---------- */
  --section-pad-y:   140px;
  --section-pad-y-m: 80px;
  --page-pad-x:      48px;
  --page-pad-x-m:    24px;
  --max-w:           1400px;

  /* ---------- MOTION ---------- */
  --ease-confident:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:          200ms;
  --t-base:          300ms;
  --t-slow:          1s;
}

/* =========================================================
   Base element styles — the brand's default rendering.
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Site-wide paper grain (brief §6 Texture).
   Apply via: <body class="with-grain">.
   Cool-toned, 35% opacity, multiply blend. Nearly imperceptible. */
.with-grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.06 0 0 0 0 0.08 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ---------- DISPLAY ---------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-hero);
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-display-m);
  line-height: 0.95;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-dispatch);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-dispatch);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h5, .h5 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-caps);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

/* Italic emphasis within display type —
   brand navy on light, powder blue on dark. */
h1 em, h2 em, h3 em, h4 em,
.h1 em, .h2 em, .h3 em, .h4 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-navy);
}

.on-dark h1 em, .on-dark h2 em, .on-dark h3 em, .on-dark h4 em {
  color: var(--powder-blue);
}

/* ---------- BODY ---------- */
p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}

.lede {
  font-family: var(--font-display);
  font-size: var(--fs-meta-value);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.lede em { font-style: italic; color: var(--brand-navy); }

/* =========================================================
   WORDMARK — eMergeAlpha
   The brand wordmark is set entirely in Fraunces italic.
   Use .wordmark for the inline brand mark. Do not bold.
   ========================================================= */
.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: inherit;
  display: inline-block;
  line-height: 1;
}
.wordmark-attribution {
  font-family: var(--font-text);
  font-size: var(--fs-caps-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 12px;
}

/* ---------- LABELS ---------- */
.mono-caps,
.kicker,
.label-caps {
  font-family: var(--font-text);
  font-size: var(--fs-caps);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.label-caps-xs {
  font-family: var(--font-text);
  font-size: var(--fs-caps-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps-wide);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CONTEXT ---------- */
.on-dark {
  background: var(--deep-navy);
  color: var(--paper);
}
.on-dark p { color: var(--fg-on-dark-soft); }
.on-dark .kicker,
.on-dark .label-caps { color: var(--powder-blue); }

/* ---------- LINKS ---------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--brand-navy); }
.on-dark a:hover { color: var(--powder-blue); }

/* ---------- RULES ---------- */
hr, .rule {
  border: 0;
  height: 1px;
  background: var(--rule-strong);
}
.rule-soft { background: var(--rule); }
.on-dark .rule { background: var(--rule-on-dark); }
