/*
 * SHOKKER EDITORIAL PREMIUM DESIGN SYSTEM (v1.0)
 * Luxury Apple / Monocle / Financial Times / Editorial Magazine Architecture
 * Shared across: founding-100.html, founding-50.html, partner-analytics.html,
 *                sponsorship-agreement.html, store.html
 *
 * Palette Discipline:
 *   - Warm Archival Paper (#F7F4ED) + Deep Architectural Ink (#111317)
 *   - Matte Obsidian (#0C0E12) + Warm Bone (#F3EFE6)
 *   - Hairline 1px editorial rules, generous negative space, zero neon box soup,
 *     zero pill bloat (strictly architectural 0-6px radii).
 */

:root {
  /* Archival Paper Band */
  --ed-paper: #F7F4ED;
  --ed-paper-pure: #FBF9F4;
  --ed-paper-tint: #EFEAE0;
  --ed-paper-warm: #E8E1D3;
  --ed-ink: #111317;
  --ed-ink-2: #343944;
  --ed-ink-muted: #5F6572;
  --ed-rule: rgba(17, 19, 23, 0.13);
  --ed-rule-strong: rgba(17, 19, 23, 0.28);

  /* Matte Obsidian Band */
  --ed-obsidian: #0C0E12;
  --ed-obsidian-deep: #080A0D;
  --ed-obsidian-elev: #14171F;
  --ed-obsidian-soft: #1B202B;
  --ed-bone: #F3EFE6;
  --ed-bone-2: rgba(243, 239, 230, 0.78);
  --ed-bone-muted: rgba(243, 239, 230, 0.52);
  --ed-dark-rule: rgba(243, 239, 230, 0.14);
  --ed-dark-rule-strong: rgba(243, 239, 230, 0.28);

  /* Refined Editorial Accents (Zero Neon Glow) */
  --ed-gold: #9A7020;
  --ed-gold-light: #D6B05A;
  --ed-gold-soft-paper: rgba(154, 112, 32, 0.08);
  --ed-gold-soft-dark: rgba(214, 176, 90, 0.12);
  --ed-gold-rule: rgba(214, 176, 90, 0.36);

  --ed-crimson: #B42724;
  --ed-crimson-deep: #8D1B19;
  --ed-emerald: #176B4A;
  --ed-emerald-light: #4AD09B;
  --ed-emerald-soft-paper: rgba(23, 107, 74, 0.08);
  --ed-emerald-soft-dark: rgba(74, 208, 155, 0.11);

  /* Typography */
  --ed-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ed-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ed-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spatial Rhythm & Architectural Radii */
  --ed-max-w: 1240px;
  --ed-gutter: clamp(20px, 4vw, 48px);
  --ed-band-py: clamp(64px, 8.5vw, 120px);
  --ed-band-py-tight: clamp(44px, 6vw, 84px);
  --ed-r-none: 0px;
  --ed-r-sm: 2px;
  --ed-r-md: 4px;
  --ed-r-lg: 6px;

  /* Motion */
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ed-page {
  margin: 0;
  padding: 0;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 15.5px;
  line-height: 1.62;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Editorial Containers & Alternating Full-Bleed Bands ── */
.ed-container {
  width: 100%;
  max-width: var(--ed-max-w);
  margin-inline: auto;
  padding-inline: var(--ed-gutter);
}

.ed-band {
  position: relative;
  width: 100%;
  padding-block: var(--ed-band-py);
}

.ed-band-tight {
  padding-block: var(--ed-band-py-tight);
}

.ed-band-paper {
  background-color: var(--ed-paper);
  color: var(--ed-ink);
}

.ed-band-paper-pure {
  background-color: var(--ed-paper-pure);
  color: var(--ed-ink);
}

.ed-band-obsidian {
  background-color: var(--ed-obsidian);
  color: var(--ed-bone);
}

/* ── Minimal Sticky Masthead Navigation (3-4 Clean Links) ── */
.ed-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  transition: background-color 220ms var(--ed-ease), border-color 220ms var(--ed-ease);
}

.ed-nav--obsidian {
  background: rgba(12, 14, 18, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ed-dark-rule);
  color: var(--ed-bone);
}

.ed-nav--paper {
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ed-rule);
  color: var(--ed-ink);
}

.ed-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding-block: 10px;
}

.ed-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.ed-wordmark-main {
  font-family: var(--ed-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.ed-wordmark-sep {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.28;
}

.ed-wordmark-sub {
  font-family: var(--ed-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.ed-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}

.ed-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ed-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: inherit;
  opacity: 0.76;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: opacity 160ms var(--ed-ease), color 160ms var(--ed-ease);
}

.ed-nav-link:hover,
.ed-nav-link:focus-visible {
  opacity: 1;
}

.ed-nav--obsidian .ed-nav-link:hover {
  color: var(--ed-gold-light);
}

.ed-nav--paper .ed-nav-link:hover {
  color: var(--ed-gold);
}

/* ── Editorial Typography Primitives ── */
.ed-kicker {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ed-band-paper .ed-kicker,
.ed-band-paper-pure .ed-kicker {
  color: var(--ed-gold);
}

.ed-band-obsidian .ed-kicker {
  color: var(--ed-gold-light);
}

.ed-display {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.025em;
  margin: 0;
}

.ed-display em {
  font-style: italic;
  font-weight: 400;
}

.ed-h2 {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

.ed-h2 em {
  font-style: italic;
}

.ed-h3 {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

.ed-lead {
  font-family: var(--ed-sans);
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
}

.ed-band-paper .ed-lead,
.ed-band-paper-pure .ed-lead {
  color: var(--ed-ink-2);
}

.ed-band-obsidian .ed-lead {
  color: var(--ed-bone-2);
}

.ed-tabular {
  font-family: var(--ed-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Chapter Header & Oversized Muted Chapter Numerals ── */
.ed-chapter-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px clamp(20px, 3.5vw, 44px);
  align-items: start;
  padding-top: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
  border-top: 1px solid currentColor;
}

.ed-band-paper .ed-chapter-head,
.ed-band-paper-pure .ed-chapter-head {
  border-top-color: var(--ed-rule-strong);
}

.ed-band-obsidian .ed-chapter-head {
  border-top-color: var(--ed-dark-rule-strong);
}

.ed-chapter-num {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-size: clamp(46px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.03em;
  opacity: 0.24;
  user-select: none;
  padding-top: 4px;
}

.ed-chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 36px;
}

.ed-chapter-titles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.ed-chapter-aside {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

.ed-band-paper .ed-chapter-aside,
.ed-band-paper-pure .ed-chapter-aside {
  color: var(--ed-ink-muted);
}

.ed-band-obsidian .ed-chapter-aside {
  color: var(--ed-bone-2);
}

/* ── Razor-Thin Hairline Rules ── */
.ed-rule {
  height: 1px;
  width: 100%;
  border: 0;
  margin: 0;
}

.ed-band-paper .ed-rule,
.ed-band-paper-pure .ed-rule {
  background: var(--ed-rule);
}

.ed-band-obsidian .ed-rule {
  background: var(--ed-dark-rule);
}

.ed-rule-double {
  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;
  height: 5px;
  width: 100%;
  opacity: 0.85;
}

/* ── Asymmetrical 2-Column Magazine Spread ── */
.ed-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.ed-spread--balanced {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ed-spread-sticky {
  position: sticky;
  top: 96px;
}

@media (max-width: 960px) {
  .ed-spread,
  .ed-spread--balanced {
    grid-template-columns: 1fr;
  }
  .ed-spread-sticky {
    position: static;
  }
}

/* ── Refined Architectural Buttons (Zero Pill Bloat, >= 44px Tap Targets) ── */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--ed-r-sm);
  font-family: var(--ed-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 180ms var(--ed-ease), color 180ms var(--ed-ease), border-color 180ms var(--ed-ease), transform 140ms var(--ed-ease);
  white-space: nowrap;
  touch-action: manipulation;
}

.ed-btn:active {
  transform: translateY(1px);
}

.ed-btn:focus-visible {
  outline: 2px solid var(--ed-gold-light);
  outline-offset: 2px;
}

.ed-btn--gold {
  background: var(--ed-gold-light);
  color: var(--ed-obsidian);
  border-color: var(--ed-gold-light);
}

.ed-btn--gold:hover {
  background: #E4C272;
  border-color: #E4C272;
}

.ed-btn--ink {
  background: var(--ed-ink);
  color: var(--ed-paper);
  border-color: var(--ed-ink);
}

.ed-btn--ink:hover {
  background: #232732;
  border-color: #232732;
}

.ed-btn--outline-dark {
  background: transparent;
  color: var(--ed-bone);
  border-color: var(--ed-dark-rule-strong);
}

.ed-btn--outline-dark:hover {
  border-color: var(--ed-gold-light);
  color: var(--ed-gold-light);
  background: rgba(214, 176, 90, 0.07);
}

.ed-btn--outline-paper {
  background: transparent;
  color: var(--ed-ink);
  border-color: var(--ed-rule-strong);
}

.ed-btn--outline-paper:hover {
  border-color: var(--ed-ink);
  background: rgba(17, 19, 23, 0.04);
}

.ed-btn--text {
  background: transparent;
  border-color: transparent;
  padding-inline: 4px;
  color: inherit;
  opacity: 0.82;
}

.ed-btn--text:hover {
  opacity: 1;
}

.ed-btn--sm {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 12px;
}

/* ── Custom Inline SVG Icon Utility ── */
.ed-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.ed-icon--lg {
  width: 20px;
  height: 20px;
}

/* ── Subtle Live Status Dot ── */
.ed-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ed-emerald-light);
  flex-shrink: 0;
}

.ed-band-paper .ed-live-dot,
.ed-band-paper-pure .ed-live-dot {
  background: var(--ed-emerald);
}

/* ── Subtle Editorial Fade-In Choreography ── */
@keyframes edFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ed-reveal {
  animation: edFadeUp 620ms var(--ed-ease) both;
}

.ed-reveal-d1 { animation-delay: 80ms; }
.ed-reveal-d2 { animation-delay: 160ms; }
.ed-reveal-d3 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .ed-reveal,
  .ed-reveal-d1,
  .ed-reveal-d2,
  .ed-reveal-d3 {
    animation: none !important;
  }
}

/* ── Mobile Ergonomics (<= 768px) ── */
@media (max-width: 768px) {
  .ed-chapter-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ed-btn,
  .ed-btn--sm {
    min-height: 44px;
    min-width: 44px;
    white-space: normal;
    text-align: center;
  }
}
