/* ========================================================================
   Scale Your Earn — Editorial Stylesheet
   Dark editorial magazine aesthetic. Self-contained, no dependencies.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=Geist:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --bg-card: #101015;
  --border: #1f1f25;
  --border-strong: #2a2a32;
  --text-primary: #e9e6dd;
  --text-secondary: #95918a;
  --text-tertiary: #5c594f;
  --accent: #c9a961;
  --accent-soft: rgba(201, 169, 97, 0.12);
  --accent-dim: #8a7840;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max-w: 1240px;
  --max-w-narrow: 720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 169, 97, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201, 169, 97, 0.03), transparent);
  background-attachment: fixed;
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  z-index: 1;
  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='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ============================ Layout containers ============================ */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ============================ Header ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 11, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  transform: rotate(-2deg);
}

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  position: relative;
}

.nav a:hover { color: var(--text-primary); }

.nav a.active { color: var(--text-primary); }

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

/* ============================ Hero ============================ */

.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 144;
}

.stat-num .unit {
  font-size: 18px;
  color: var(--accent);
  margin-left: 2px;
  vertical-align: top;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ============================ Section headings ============================ */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 64px;
  gap: 32px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-aside {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* ============================ Featured article ============================ */

.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.featured-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.featured-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.featured-title a { transition: color 0.3s var(--ease); }
.featured-title a:hover { color: var(--accent); }

.featured-excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 300;
}

.featured-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.featured-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.02)),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.featured-visual .glyph {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 180px;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-style: italic;
  opacity: 0.4;
  z-index: 1;
  line-height: 1;
}

.featured-visual .label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

/* ============================ Article grid ============================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.article-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: background 0.3s var(--ease);
  position: relative;
}

.article-card:last-child { border-right: none; }
.article-card:hover { background: var(--bg-card); }

.article-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.article-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 40, 'SOFT' 30;
}

.article-card h3 a { transition: color 0.2s var(--ease); }
.article-card h3 a:hover { color: var(--accent); }

.article-card .excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: auto;
  padding-bottom: 24px;
  font-weight: 300;
}

.article-card .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-card .category { color: var(--accent); }

/* ============================ Article page ============================ */

.article-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { color: var(--border-strong); }
.article-breadcrumb .current { color: var(--accent); }

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  max-width: 22ch;
}

.article-dek {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 48px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.article-byline {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.byline-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.byline-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.byline-value {
  font-size: 14px;
  color: var(--text-primary);
}

/* ============================ Article body ============================ */

.article-body {
  padding: 72px 0 96px;
  max-width: 680px;
  margin: 0 auto;
}

.article-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-weight: 400;
}

.article-body p.lead::first-letter {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 40px 0 16px;
  font-variation-settings: 'opsz' 40;
}

.article-body ul, .article-body ol {
  margin: 0 0 28px 24px;
  color: var(--text-primary);
}

.article-body li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.article-body li::marker { color: var(--accent); }

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--text-primary);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s var(--ease);
}

.article-body a:hover { border-bottom-color: var(--accent); }

.callout {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  padding: 28px 32px;
  margin: 40px 0;
  position: relative;
}

.callout::before {
  content: 'Key insight';
  position: absolute;
  top: -9px;
  left: 20px;
  background: var(--bg);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.callout p {
  font-size: 16px !important;
  margin-bottom: 0 !important;
  color: var(--text-secondary) !important;
}

.data-table {
  margin: 40px 0;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.data-table-header {
  background: var(--bg-card);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  gap: 16px;
}

.data-row:last-child { border-bottom: none; }
.data-row span:last-child { font-family: var(--font-mono); color: var(--accent); font-size: 14px; }

/* ============================ Article footer / related ============================ */

.article-foot {
  padding: 56px 0 96px;
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
}

.foot-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-block {
  margin: 48px 0;
  padding: 48px 40px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(201, 169, 97, 0.04), transparent),
    var(--bg-card);
  text-align: center;
}

.cta-block h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

.cta-block p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn:hover { background: transparent; color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================ About page ============================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.about-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-sidebar .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.about-sidebar h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.about-sidebar .est {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 32px;
  letter-spacing: 0.1em;
}

.about-content p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.about-content p.intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 40px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.principles {
  margin-top: 64px;
  display: grid;
  gap: 40px;
}

.principle {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.principle-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
}

.principle h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.principle p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================ Contact page ============================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.contact-intro h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.contact-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-list {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.contact-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
}

.contact-item .key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contact-item .val {
  font-size: 16px;
  color: var(--text-primary);
}

.contact-item a.val:hover { color: var(--accent); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-tertiary);
}

.form-submit { margin-top: 12px; align-self: start; border: none; }

.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ============================ Footer ============================ */

.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  max-width: 14ch;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 40ch;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

/* ============================ Animations ============================ */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero-lede, .hero-meta, .hero-stats, .section-title, .featured, .article-card {
  animation: riseIn 0.8s var(--ease) both;
}

.hero-meta { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-lede { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.5s; }

/* ============================ Responsive ============================ */

@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; gap: 32px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card { border-right: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .article-body h2 { font-size: 28px; }
  .contact-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-body p, .article-body li { font-size: 16.5px; }
  .cta-block { padding: 32px 24px; }
}

::selection { background: var(--accent); color: var(--bg); }

/* ========================================================================
   BATCH 1 — Cookie banner, 404, legal pages
   ======================================================================== */

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  z-index: 1000;
  padding: 24px 28px 22px;
  background: rgba(16, 16, 21, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.cookie-banner.visible { transform: translateY(0); opacity: 1; }

.cookie-banner .cb-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.cookie-banner h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.cookie-banner p a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
}

.cookie-banner .cb-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.cookie-banner .cb-accept {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.cookie-banner .cb-accept:hover { background: transparent; color: var(--accent); }
.cookie-banner .cb-reject:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px 22px 20px; }
  .cookie-banner button { flex: 1; min-width: 0; padding: 11px 14px; }
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 101;
  pointer-events: none;
}

.reading-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(201, 169, 97, 0.5);
}

/* 404 page */
.error-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.error-wrap .code {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(120px, 22vw, 260px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  font-style: italic;
  opacity: 0.95;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.error-wrap p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 auto 32px;
}

.error-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Legal pages (privacy, terms, disclosure) */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  padding: 80px 0 120px;
  max-width: 1080px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.legal-toc .toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.legal-toc ul { list-style: none; }

.legal-toc li {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.legal-toc a {
  color: var(--text-secondary);
  font-family: var(--font-body);
  padding-left: 12px;
  border-left: 1px solid transparent;
  display: block;
  padding-top: 4px;
  padding-bottom: 4px;
  transition: all 0.2s var(--ease);
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.legal-content .legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-content .legal-meta .on { color: var(--accent); }

.legal-content .intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 48px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  max-width: 54ch;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 64px 0 20px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  scroll-margin-top: 100px;
}

.legal-content h2 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-right: 14px;
  vertical-align: middle;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 24px 20px;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content li::marker { color: var(--accent); }

.legal-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
}
.legal-content a:hover { border-bottom-color: var(--accent); }

.legal-content strong { color: var(--text-primary); font-weight: 600; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 72px; }
  .legal-toc { position: static; border-right: none; padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .legal-toc ul { display: flex; gap: 12px; flex-wrap: wrap; }
  .legal-toc li { margin: 0; }
}

/* ========================================================================
   BATCH 2 — Archive, Masthead, Newsletter, Pull quotes, SVG charts
   ======================================================================== */

/* Archive page */
.archive-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
}

.archive-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

.archive-hero .lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 54ch;
  font-weight: 300;
  line-height: 1.6;
}

.issues-grid {
  padding: 64px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.issue-card {
  padding: 48px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 32px;
  align-items: start;
  transition: background 0.3s var(--ease);
}

.issue-card:nth-child(2n) { border-right: none; }
.issue-card:hover { background: var(--bg-card); }

.issue-card .issue-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.issue-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.issue-card h3 a { transition: color 0.2s var(--ease); }
.issue-card h3 a:hover { color: var(--accent); }

.issue-card .issue-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.issue-card .issue-summary {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 300;
}

.issue-card .issue-cover {
  aspect-ratio: 3/4;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

@media (max-width: 860px) {
  .issues-grid { grid-template-columns: 1fr; }
  .issue-card { border-right: none; grid-template-columns: 1fr 100px; gap: 20px; padding: 32px 24px; }
}

/* Masthead section in About */
.masthead {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  margin-top: 72px;
}

.masthead-head {
  margin-bottom: 48px;
}

.masthead-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.masthead-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.masthead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.mh-person {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mh-person:nth-child(3n) { border-right: none; }

.mh-person .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.mh-person .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 40;
}

.mh-person .bio {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 760px) {
  .masthead-grid { grid-template-columns: 1fr; }
  .mh-person { border-right: none; }
}

/* Newsletter inline form */
.newsletter-inline {
  margin-top: 48px;
  padding: 40px 36px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.newsletter-inline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.08), transparent 60%);
  pointer-events: none;
}

.newsletter-inline .nl-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.newsletter-inline h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.newsletter-inline p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 52ch;
  line-height: 1.55;
}

.nl-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.nl-form input[type="email"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.nl-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.nl-form input[type="email"]::placeholder { color: var(--text-tertiary); }

.nl-form button {
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.nl-form button:hover { background: transparent; color: var(--accent); }
.nl-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.nl-msg {
  margin-top: 16px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  display: none;
}

.nl-msg.show { display: block; animation: riseIn 0.4s var(--ease) both; }
.nl-msg.success { border: 1px solid var(--accent); color: var(--accent); }
.nl-msg.error { border: 1px solid #c95b5b; color: #e88888; }

.nl-footnote {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-top: 14px;
  text-transform: uppercase;
}

/* Pull quote breakout */
.pullquote {
  margin: 72px -40px;
  padding: 0;
  position: relative;
  text-align: center;
}

.pullquote::before,
.pullquote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 32px auto;
}

.pullquote p {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.3 !important;
  color: var(--text-primary) !important;
  max-width: 20ch !important;
  margin: 0 auto !important;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.pullquote .attribution {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-top: 24px;
  display: block;
}

@media (max-width: 740px) {
  .pullquote { margin: 48px 0; }
}

/* SVG data chart */
.data-chart {
  margin: 48px 0;
  padding: 32px 32px 40px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}

.data-chart .chart-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.data-chart .chart-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.data-chart svg { display: block; width: 100%; height: auto; }

.data-chart .chart-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  margin-top: 16px;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Bar chart specific */
.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 72px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.bar-row:last-of-type { border-bottom: none; }

.bar-row .bar-label {
  color: var(--text-primary);
  font-weight: 400;
}

.bar-row .bar-track {
  height: 8px;
  background: var(--bg);
  position: relative;
  border: 1px solid var(--border);
}

.bar-row .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  width: 0;
  transition: width 1.2s var(--ease);
}

.bar-row.revealed .bar-fill { width: var(--fill-to, 0%); }

.bar-row .bar-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-align: right;
}

.bar-row.negative .bar-fill { background: linear-gradient(90deg, #8a4a4a, #c95b5b); }
.bar-row.negative .bar-value { color: #e88888; }

@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .bar-row .bar-value { text-align: left; }
  .data-chart { padding: 24px 20px 28px; }
}

/* ========================================================================
   BATCH 3 — Issue covers, scroll reveals, cursor, print
   ======================================================================== */

/* Scroll reveal (uses IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero-lede, .hero-meta, .hero-stats, .section-title, .featured, .article-card { animation: none; }
}

/* Issue cover SVG containers — 4 variants */
.cover-svg { display: block; width: 100%; height: 100%; }

/* Desktop custom cursor trail for interactive elements */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease);
  }
  .cursor-dot.active { opacity: 0.7; }
  .cursor-dot.hover { width: 32px; height: 32px; opacity: 0.5; }
}

/* Print stylesheet */
@media print {
  .site-header, .site-footer, .cookie-banner, .reading-progress,
  .cta-block, .partner-block, .newsletter-inline,
  .menu-toggle, .article-foot, nav { display: none !important; }

  body { background: #fff; color: #000; }
  body::before { display: none; }

  .article-body { max-width: 100%; padding: 0; }
  .article-body p { font-size: 12pt; line-height: 1.6; color: #000; }
  .article-body h1, .article-body h2, .article-body h3 { color: #000; page-break-after: avoid; }
  .article-hero h1 { font-size: 28pt; }
  .article-dek { font-size: 14pt; color: #333; }
  .pullquote p { color: #000 !important; }
  .article-body a { color: #000; border-bottom: 1px solid #000; }
  .article-body a::after { content: " (" attr(href) ")"; font-size: 10pt; color: #666; }
  .data-chart { border: 1px solid #000; background: #fff; }
  .bar-row .bar-fill { background: #666 !important; }
}

