/* ============================================================
   CRUDE — Editorial theme stylesheet
   Brand: shadow-black / aztec-gold / alabaster / almond-frost
   Type:  Spectral (serif), DM Sans (sans)
   ============================================================ */

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

:root {
  --shadow-black:   #1C1814;
  --shadow-deep:    #130F0C;
  --almond-frost:   #8A7D6B;
  --aztec-gold:     #C8973A;
  --aztec-gold-hi:  #d9a640;
  --alabaster:      #F2EDE4;
  --alabaster-dim:  #EDE8DF;
  --white:          #FFFFFF;

  --serif:          'Spectral', Georgia, 'Times New Roman', serif;
  --sans:           'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --rule-gold:      rgba(200, 151, 58, 0.32);
  --rule-warm:      rgba(138, 125, 107, 0.20);
  --rule-warm-soft: rgba(138, 125, 107, 0.12);
  --ink-warm:       #4a4035;
  --ink-mid:        #5a4f44;
  --ink-soft:       #6b5f52;
}

html {
  scroll-behavior: smooth;
  /* Prevent stray horizontal scroll on mobile without breaking position: sticky */
  overflow-x: clip;
}

body {
  background: var(--shadow-black);
  color: var(--alabaster);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Remove blue tap-flash on iOS */
  -webkit-tap-highlight-color: transparent;
}

/* Restore visible focus on keyboard navigation */
:focus-visible {
  outline: 2px solid var(--aztec-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* ─── Utilities ─────────────────────────────────────────────── */
.gold      { color: var(--aztec-gold); }
.muted     { color: var(--almond-frost); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 680px; margin: 0 auto; padding: 0 28px; }
.container--wide   { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.section-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  margin-bottom: 18px;
  position: relative;
  padding-left: 28px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--aztec-gold);
  opacity: 0.6;
}

/* ─── Marquee / Utility ticker (very top) ──────────────────── */
.utility-strip {
  background: var(--shadow-deep);
  border-bottom: 1px solid rgba(200, 151, 58, 0.18);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--almond-frost);
  overflow: hidden;
  position: relative;
}
.utility-strip__track {
  display: flex;
  gap: 56px;
  padding: 10px 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.utility-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.utility-strip__item strong { color: var(--aztec-gold); font-weight: 700; letter-spacing: 0.14em; }
.utility-strip__item .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--aztec-gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* Live ticker items inside the marquee */
.ticker {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.ticker__price {
  color: var(--alabaster);
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
.ticker__price.flash-up   { color: #a8d68c; }
.ticker__price.flash-down { color: #e58c7a; }
.ticker__delta {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.ticker__delta.up   { color: #8fbb74; }
.ticker__delta.down { color: #d97766; }
.ticker__delta.flat { color: var(--almond-frost); opacity: 0.7; }
.ticker__delta::before { content: ''; }
.ticker__delta.up::before   { content: '▲ '; font-size: 8px; }
.ticker__delta.down::before { content: '▼ '; font-size: 8px; }

/* Tiny status indicator (live / stale / offline) */
.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--almond-frost);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ticker-status__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8fbb74;
  box-shadow: 0 0 0 0 rgba(143, 187, 116, 0.6);
  animation: live-pulse 2.4s ease-out infinite;
}
.ticker-status[data-status="stale"] .ticker-status__dot { background: var(--aztec-gold); animation: none; }
.ticker-status[data-status="offline"] .ticker-status__dot { background: var(--almond-frost); animation: none; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .utility-strip__track { animation: none; }
}

/* ─── Sticky / Main nav ────────────────────────────────────── */
.sticky-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28, 24, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 151, 58, 0.18);
  padding: 11px 0;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.sticky-nav.active { transform: translateY(0); }
.sticky-nav .container { display: flex; align-items: center; justify-content: space-between; }
.sticky-logo { display: block; line-height: 0; }
.sticky-logo img { height: 28px; width: auto; }
.sticky-cta {
  display: inline-block;
  padding: 9px 20px;
  background: var(--aztec-gold);
  color: var(--shadow-black);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.sticky-cta:hover { background: var(--aztec-gold-hi); transform: translateY(-1px); }

nav.site-nav {
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--rule-warm);
  position: relative;
}
nav.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: block; line-height: 0; }
.nav-logo img { height: 44px; width: auto; }
.nav-cluster { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--almond-frost);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--alabaster); }
.nav-subscribe {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  text-decoration: none;
  border: 1px solid var(--rule-gold);
  padding: 8px 18px;
  border-radius: 2px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-subscribe:hover {
  background: rgba(200, 151, 58, 0.09);
  border-color: rgba(200, 151, 58, 0.55);
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 112px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(200, 151, 58, 0.14) 0%, transparent 64%);
  pointer-events: none;
  will-change: transform;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 151, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 151, 58, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-issue-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  border: 1px solid var(--rule-gold);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(200, 151, 58, 0.04);
}
.hero-issue-pill .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aztec-gold);
  box-shadow: 0 0 0 0 rgba(200, 151, 58, 0.6);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 151, 58, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(200, 151, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 151, 58, 0); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.8px;
  color: var(--alabaster);
  max-width: 860px;
  margin: 0 auto 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--aztec-gold);
  font-weight: 700;
}
.hero-sub {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--almond-frost);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 18px;
  border: 1px solid var(--rule-gold);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.subscribe-form:focus-within {
  border-color: rgba(200, 151, 58, 0.65);
  box-shadow: 0 0 0 4px rgba(200, 151, 58, 0.08);
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--alabaster);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.subscribe-form input[type="email"]::placeholder { color: var(--almond-frost); }
.subscribe-form input[type="email"]:focus { background: rgba(200, 151, 58, 0.06); }
.subscribe-form button {
  padding: 16px 26px;
  background: var(--aztec-gold);
  color: var(--shadow-black);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  transition: background 0.18s ease;
  white-space: nowrap;
}
.subscribe-form button:hover { background: var(--aztec-gold-hi); }
.subscribe-form button:disabled { opacity: 0.7; cursor: default; }
.subscribe-form .form-error,
.subscribe-form .form-success {
  display: none;
  width: 100%;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}
.subscribe-form .form-error { color: #ff6b6b; background: rgba(255, 107, 107, 0.08); }
.subscribe-form .form-success { color: var(--aztec-gold); background: rgba(200, 151, 58, 0.08); }

.form-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--almond-frost);
  text-align: center;
  letter-spacing: 0.04em;
}
.form-meta strong { color: var(--alabaster); font-weight: 500; }

/* ─── Market snapshot strip ────────────────────────────────── */
.market-strip {
  padding: 0;
  background: var(--shadow-deep);
  border-top: 1px solid rgba(200, 151, 58, 0.16);
  border-bottom: 1px solid rgba(200, 151, 58, 0.16);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.market-cell {
  padding: 22px 28px;
  border-right: 1px solid rgba(138, 125, 107, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.market-cell:last-child { border-right: none; }
.market-cell__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--almond-frost);
}
.market-cell__value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--alabaster);
  line-height: 1.1;
  letter-spacing: -0.4px;
}
.market-cell__value .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--almond-frost);
  margin-left: 4px;
  letter-spacing: 0;
}
.market-cell__delta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.market-cell__delta.down { color: #d97766; }
.market-cell__delta.up   { color: #8fbb74; }
.market-cell__delta .arrow { font-size: 11px; }
.market-cell__note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--almond-frost);
  letter-spacing: 0.02em;
}

/* ─── Editorial pull quote ─────────────────────────────────── */
.pull-quote-section {
  background: var(--alabaster);
  color: var(--shadow-black);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.pull-quote-section::before {
  content: '';
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--aztec-gold);
  opacity: 0.6;
}
.pull-quote {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.pull-quote__mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.6;
  color: var(--aztec-gold);
  opacity: 0.35;
  margin-bottom: 8px;
  display: block;
  font-style: italic;
  user-select: none;
}
.pull-quote__text {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.28;
  color: var(--shadow-black);
  letter-spacing: -0.4px;
  margin-bottom: 28px;
}
.pull-quote__text em { color: var(--aztec-gold); font-style: italic; }
.pull-quote__source {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.pull-quote__source::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--aztec-gold);
  vertical-align: middle;
  margin-right: 14px;
}

/* ─── The Lens (gap section) ───────────────────────────────── */
.gap-section {
  background: var(--alabaster);
  color: var(--shadow-black);
  padding: 88px 0 64px;
  border-top: 1px solid rgba(28, 24, 20, 0.08);
}
.gap-section .section-label { color: var(--aztec-gold); }
.gap-section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--shadow-black);
  margin-bottom: 18px;
  max-width: 740px;
}
.gap-section .lead {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink-warm);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
}
.gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: rgba(28, 24, 20, 0.12);
  border: 1px solid rgba(28, 24, 20, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.gap-card {
  background: var(--alabaster-dim);
  padding: 36px 32px;
}
.gap-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.gap-card:nth-child(2) { grid-column: 1; grid-row: 2; }
.gap-card.gap-card--crude {
  grid-column: 2;
  grid-row: 1 / 3;
  background: var(--shadow-black);
  color: var(--alabaster);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.gap-card.gap-card--crude::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(200, 151, 58, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.gap-card-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--almond-frost);
  margin-bottom: 14px;
}
.gap-card--crude .gap-card-label { color: var(--aztec-gold); }
.gap-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--shadow-black);
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.gap-card--crude h3 { color: var(--alabaster); position: relative; z-index: 1; }
.gap-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.gap-card--crude p { color: var(--almond-frost); position: relative; z-index: 1; }
.gap-card p strong { color: var(--aztec-gold); font-weight: 600; }
.gap-cross {
  display: block;
  margin-bottom: 18px;
  opacity: 0.35;
  color: var(--shadow-black);
}
.gap-crude-logo {
  width: 144px;
  margin-bottom: 16px;
  margin-left: -18px;
  opacity: 0.92;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ─── Sample issue / format ────────────────────────────────── */
.sample-section {
  background: var(--alabaster);
  padding: 56px 0 96px;
}
.sample-section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  color: var(--shadow-black);
  margin-bottom: 18px;
  letter-spacing: -0.6px;
  line-height: 1.12;
}
.sample-section .lead {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink-mid);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 440px;
}
.sample-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.sample-copy { padding-top: 4px; }

.section-list { display: flex; flex-direction: column; }
.section-item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(28, 24, 20, 0.1);
}
.section-item:last-child { border-bottom: 1px solid rgba(28, 24, 20, 0.1); }
.section-num {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--aztec-gold);
  min-width: 24px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.section-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--shadow-black);
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}
.section-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.sample-cta { margin-top: 28px; padding-top: 22px; }
.sample-cta-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--aztec-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 151, 58, 0.4);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.sample-cta-link:hover { color: var(--aztec-gold-hi); border-color: rgba(200, 151, 58, 0.85); }

/* Email mock window */
.nl-window {
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(28, 24, 20, 0.22),
    0 6px 18px rgba(28, 24, 20, 0.12);
  border: 1px solid rgba(28, 24, 20, 0.12);
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.nl-window:hover {
  transform: translateY(-4px);
  box-shadow:
    0 36px 96px rgba(28, 24, 20, 0.28),
    0 8px 24px rgba(28, 24, 20, 0.16);
}
.nl-email-toolbar {
  background: var(--alabaster-dim);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(28, 24, 20, 0.1);
}
.nl-toolbar-left { display: flex; align-items: center; gap: 14px; }
.nl-toolbar-btn {
  background: none; border: none; padding: 0; cursor: default;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 11px; color: #4a3f34; font-weight: 500;
}
.nl-toolbar-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.nl-toolbar-right { display: flex; align-items: center; gap: 16px; }
.nl-toolbar-icon { color: #6b5f52; display: flex; align-items: center; }
.nl-toolbar-icon svg { width: 14px; height: 14px; }

.nl-email-header {
  background: #F7F3EC;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.1);
}
.nl-email-subject {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--shadow-black);
  margin-bottom: 10px;
  line-height: 1.3;
}
.nl-email-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nl-sender { display: flex; align-items: center; gap: 9px; }
.nl-sender-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--shadow-black);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.nl-sender-avatar img { height: 14px; width: auto; }
.nl-sender-info { line-height: 1.35; }
.nl-sender-name { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--shadow-black); }
.nl-sender-addr { font-family: var(--sans); font-size: 10px; color: var(--almond-frost); }
.nl-email-date {
  font-family: var(--sans); font-size: 10px; color: var(--almond-frost);
  white-space: nowrap; align-self: flex-start; margin-top: 2px;
}

.nl-scroll {
  max-height: 580px;
  overflow-y: auto;
  background: var(--alabaster);
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 125, 107, 0.4) transparent;
}
.nl-scroll::-webkit-scrollbar { width: 4px; }
.nl-scroll::-webkit-scrollbar-track { background: transparent; }
.nl-scroll::-webkit-scrollbar-thumb { background: rgba(138, 125, 107, 0.4); border-radius: 2px; }

.nl-header {
  background: var(--shadow-black);
  padding: 16px 20px 14px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.nl-header-logo { height: 26px; width: auto; }
.nl-issue-info { font-family: var(--sans); text-align: right; line-height: 1.4; }
.nl-issue-info .nl-issue-num {
  font-size: 9px; color: var(--almond-frost);
  letter-spacing: 0.10em; text-transform: uppercase;
}
.nl-issue-info .nl-issue-date {
  font-family: var(--serif); font-size: 13px;
  font-weight: 600; color: var(--alabaster);
}

.nl-ticker {
  background: var(--shadow-black);
  border-top: 1px solid rgba(200, 151, 58, 0.2);
  border-bottom: 2px solid rgba(200, 151, 58, 0.35);
  padding: 8px 20px;
  font-family: var(--sans); font-size: 10px;
  font-weight: 600; letter-spacing: 0.06em;
  color: var(--alabaster);
}
.nl-ticker .nl-tick-label { color: var(--aztec-gold); font-weight: 700; margin-right: 6px; }
.nl-ticker .nl-tick-sep { color: var(--aztec-gold); margin: 0 6px; opacity: 0.6; }

.nl-body { padding: 20px 20px 0; background: var(--alabaster); }
.nl-story-tag {
  font-family: var(--serif); font-size: 9px; font-style: italic;
  font-weight: 400; letter-spacing: 0.06em;
  color: var(--almond-frost); margin-bottom: 5px;
}
.nl-lead-grid { display: grid; grid-template-columns: 44% 56%; gap: 14px; margin-bottom: 14px; }
.nl-headline {
  font-family: var(--serif); font-size: 18px;
  font-weight: 700; color: var(--shadow-black);
  line-height: 1.12; margin-bottom: 5px; letter-spacing: -0.2px;
}
.nl-deck { font-family: var(--serif); font-size: 10px; font-style: italic; color: var(--aztec-gold); margin-bottom: 8px; }
.nl-body-text { font-family: var(--sans); font-size: 10px; line-height: 1.6; color: #3d3328; margin-bottom: 8px; }
.nl-body-text a { color: var(--aztec-gold); text-decoration: none; }
.nl-read-more {
  font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--aztec-gold);
  text-decoration: underline; text-underline-offset: 2px; display: inline-block;
}
.nl-col-story .nl-headline { font-size: 16px; line-height: 1.1; margin-bottom: 4px; }
.nl-col-story .nl-story-tag {
  font-family: var(--sans); font-size: 8px;
  font-style: normal; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--almond-frost); margin-bottom: 4px;
}

.nl-chart-box { background: var(--shadow-black); border-radius: 4px; padding: 10px; }
.nl-chart-title {
  font-family: var(--sans); font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--alabaster); margin-bottom: 2px;
}
.nl-chart-source { font-family: var(--sans); font-size: 7px; color: var(--almond-frost); margin-bottom: 8px; }
.nl-chart-image {
  background: var(--white);
  border-radius: 2px;
  padding: 6px;
  overflow: hidden;
}
.nl-chart-image img { width: 100%; height: auto; display: block; }
.nl-chart-caption {
  font-family: var(--sans); font-size: 8px; line-height: 1.55;
  color: var(--almond-frost); margin-top: 8px;
  border-top: 1px solid rgba(138, 125, 107, 0.25); padding-top: 7px;
}
.nl-chart-caption strong { color: var(--aztec-gold); font-style: italic; }
.nl-divider { height: 1px; background: rgba(28, 24, 20, 0.15); margin: 16px 0; }
.nl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 20px; }
.nl-footer {
  background: var(--shadow-black);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nl-footer-logo { height: 20px; width: auto; }
.nl-footer-links { display: flex; gap: 14px; }
.nl-footer-links a {
  font-family: var(--sans); font-size: 9px;
  color: var(--almond-frost); text-decoration: none;
  letter-spacing: 0.06em;
}
.nl-footer-links .nl-sep { color: var(--aztec-gold); opacity: 0.5; }

/* ─── Archive teaser on home ───────────────────────────────── */
.archive-teaser {
  background: var(--shadow-black);
  padding: 96px 0;
  border-top: 1px solid var(--rule-warm);
}
.archive-teaser__head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.archive-teaser__head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--alabaster);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.archive-teaser__head .section-label { color: var(--aztec-gold); margin-bottom: 14px; }
.archive-teaser__all {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 151, 58, 0.35);
  padding-bottom: 2px;
  align-self: end;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.archive-teaser__all:hover { color: var(--aztec-gold-hi); border-color: rgba(200, 151, 58, 0.7); }

.issue-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule-warm);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.issue-row:last-child { border-bottom: 1px solid var(--rule-warm); }
.issue-row:hover { padding-left: 8px; }
.issue-row:hover .issue-row__title { color: var(--aztec-gold); }
.issue-row:hover .issue-row__arrow { opacity: 1; transform: translateX(0); }
.issue-row__number {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--aztec-gold);
  text-transform: uppercase;
}
.issue-row__body { display: flex; flex-direction: column; gap: 6px; }
.issue-row__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--alabaster);
  line-height: 1.25;
  letter-spacing: -0.2px;
  transition: color 0.18s ease;
}
.issue-row__title em { color: var(--aztec-gold); font-style: italic; }
.issue-row__excerpt {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--almond-frost);
  line-height: 1.55;
  max-width: 680px;
}
.issue-row__date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--almond-frost);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.issue-row__arrow {
  display: inline-block;
  color: var(--aztec-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.archive-year-divider {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  padding: 32px 0 12px;
  border-top: 1px solid var(--rule-warm);
  margin-top: 24px;
}
.archive-year-divider:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.archive-teaser__empty {
  padding: 60px 0;
  text-align: center;
  font-family: var(--sans);
  color: var(--almond-frost);
  font-size: 15px;
  border-top: 1px solid var(--rule-warm);
  border-bottom: 1px solid var(--rule-warm);
}

/* ─── About / Voice ────────────────────────────────────────── */
.about-section {
  background: var(--shadow-black);
  padding: 104px 0;
  border-top: 1px solid var(--rule-warm);
  position: relative;
}
/* Editorial section-break ornament — centered gold rule above the eyebrow */
.about-section::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--aztec-gold);
  opacity: 0.55;
}
.about-section .section-label { margin-bottom: 14px; }
.about-section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--alabaster);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.about-section p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--almond-frost);
  margin-bottom: 20px;
  max-width: 620px;
}
.about-section p strong { color: var(--alabaster); font-weight: 500; }

.byline-card {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-warm);
  max-width: 620px;
}
.byline-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--shadow-deep);
  border: 1px solid var(--rule-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--aztec-gold);
  letter-spacing: 0.5px;
}
.byline-card__meta { line-height: 1.5; }
.byline-card__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--alabaster);
  letter-spacing: -0.1px;
}
.byline-card__role {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--almond-frost);
}
.byline-card__role .sep { color: var(--aztec-gold); opacity: 0.5; margin: 0 8px; }

.about-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--almond-frost);
  margin-top: 18px;
}
.flag-icon { font-size: 18px; line-height: 1; }

/* ─── Bottom CTA ───────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 60% 90% at 96% 50%, rgba(28, 24, 20, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 70% at 4% 50%, rgba(28, 24, 20, 0.08) 0%, transparent 70%),
    var(--aztec-gold);
  padding: 96px 0;
  text-align: center;
}
.cta-section__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--shadow-black);
  opacity: 0.6;
  margin-bottom: 18px;
}
.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  color: var(--shadow-black);
  margin-bottom: 14px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.cta-section .sub {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(28, 24, 20, 0.7);
  margin-bottom: 28px;
}
.cta-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto 16px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(28, 24, 20, 0.22);
}
.cta-form input[type="email"] {
  flex: 1;
  padding: 18px 22px;
  background: var(--shadow-black);
  border: none;
  color: var(--alabaster);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.cta-form input[type="email"]::placeholder { color: var(--almond-frost); }
.cta-form button {
  padding: 18px 26px;
  background: var(--alabaster);
  color: var(--shadow-black);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}
.cta-form button:hover { background: var(--white); transform: translateY(-1px); }
.cta-form .form-error,
.cta-form .form-success {
  display: none;
  width: 100%;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}
.cta-form .form-error { color: #a33; background: rgba(170, 51, 51, 0.1); }
.cta-form .form-success { color: var(--shadow-black); font-weight: 600; background: rgba(28, 24, 20, 0.1); }
.cta-meta { font-family: var(--sans); font-size: 12px; color: rgba(28, 24, 20, 0.6); }

/* When the dark .subscribe-form partial is placed inside the gold .cta-section
   (used on /archive/, /tag/, /author/, fallback /index/), give it the proper
   high-contrast dark-on-gold treatment to match the home page CTA. */
.cta-section .subscribe-form {
  border: none;
  border-radius: 3px;
  max-width: 460px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 28px rgba(28, 24, 20, 0.22);
}
.cta-section .subscribe-form:focus-within {
  box-shadow: 0 6px 28px rgba(28, 24, 20, 0.28);
}
.cta-section .subscribe-form input[type="email"] {
  background: var(--shadow-black);
  color: var(--alabaster);
  padding: 18px 22px;
}
.cta-section .subscribe-form input[type="email"]:focus {
  background: var(--shadow-deep);
}
.cta-section .subscribe-form input[type="email"]::placeholder {
  color: var(--almond-frost);
}
.cta-section .subscribe-form button {
  background: var(--alabaster);
  color: var(--shadow-black);
  padding: 18px 26px;
}
.cta-section .subscribe-form button:hover {
  background: var(--white);
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--shadow-deep);
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule-warm-soft);
}
.site-footer .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-logo { display: block; line-height: 0; }
.footer-logo img { height: 34px; width: auto; }
.footer-links {
  display: flex; gap: 30px; justify-content: flex-end; flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--almond-frost);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--alabaster); }
.footer-copy {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(138, 125, 107, 0.55);
  border-top: 1px solid var(--rule-warm-soft);
  padding-top: 24px;
  margin-top: 8px;
}

/* ─── Mobile subscribe bar ─────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 98;
  background: rgba(28, 24, 20, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(200, 151, 58, 0.28);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.mobile-bar.hidden { transform: translateY(100%); }
.mobile-bar-text {
  font-family: var(--sans); font-size: 13px;
  color: var(--almond-frost); line-height: 1.35; flex: 1;
}
.mobile-bar-text strong { color: var(--alabaster); font-weight: 500; }
.mobile-bar-btn {
  display: inline-block; padding: 11px 20px;
  background: var(--aztec-gold); color: var(--shadow-black);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.18s ease;
}
.mobile-bar-btn:hover { background: var(--aztec-gold-hi); }

/* ─── Subscribe Modal ──────────────────────────────────────── */
.subscribe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 24, 20, 0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.subscribe-modal.is-open { display: flex; }
.subscribe-modal__inner {
  background: #222018;
  border: 1px solid rgba(200, 151, 58, 0.35);
  border-radius: 6px;
  max-width: 420px;
  width: 100%;
  padding: 40px 36px;
  text-align: center;
  position: relative;
  animation: modal-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-pop {
  from { transform: translateY(8px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.subscribe-modal__check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(200, 151, 58, 0.12);
  border: 1px solid rgba(200, 151, 58, 0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.subscribe-modal__label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aztec-gold);
  margin-bottom: 12px;
}
.subscribe-modal__title {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  color: var(--alabaster);
  margin-bottom: 12px;
  line-height: 1.2;
}
.subscribe-modal__text {
  font-family: var(--sans);
  font-size: 15px; color: var(--almond-frost);
  line-height: 1.6; margin-bottom: 28px;
}
.subscribe-modal__close {
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--aztec-gold);
  color: var(--shadow-black);
  border: none;
  padding: 12px 28px;
  border-radius: 2px;
}

/* ─── Archive Page (full) ──────────────────────────────────── */
.archive-header {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--rule-warm-soft);
}
.archive-header .section-label { margin-bottom: 16px; }
.archive-header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--alabaster);
  margin-bottom: 16px;
  line-height: 1.05;
}
.archive-header h1 em { color: var(--aztec-gold); font-style: italic; font-weight: 700; }
.archive-header p {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--almond-frost);
  max-width: 580px;
  line-height: 1.65;
}

.archive-list {
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
}

/* Wraps the Ghost {{pagination}} helper output (<nav class="pagination">) */
.archive-list-section { padding: 0 0 64px; }

.pagination {
  padding: 48px 0 24px;
  display: flex !important; /* override Ghost's default block nav */
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-warm-soft);
  margin-top: 8px;
}
.pagination a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  text-decoration: none;
  border: 1px solid var(--rule-gold);
  padding: 10px 20px;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.pagination a:hover {
  background: rgba(200, 151, 58, 0.08);
  border-color: rgba(200, 151, 58, 0.5);
}
.pagination .page-number {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--almond-frost);
  padding: 10px 4px;
}

/* ─── Post / Issue Page ────────────────────────────────────── */
.post-header { padding: 80px 0 32px; }
.post-issue-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aztec-gold);
  margin-bottom: 18px;
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  color: var(--alabaster);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.post-title em { color: var(--aztec-gold); font-style: italic; }
.post-excerpt {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--almond-frost);
  margin-bottom: 24px;
  max-width: 680px;
  line-height: 1.4;
}
.post-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--almond-frost);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--rule-warm);
  border-bottom: 1px solid var(--rule-warm);
  padding: 16px 0;
  margin-top: 24px;
}
.post-meta__sep { color: var(--aztec-gold); opacity: 0.5; }
.post-meta__author { color: var(--alabaster); font-weight: 500; }

.post-feature-image {
  margin: 32px 0 0;
  border-radius: 4px;
  overflow: hidden;
}

.post-body {
  padding: 40px 28px 64px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--alabaster);
  max-width: 736px; /* 680 content + 28×2 horizontal padding */
  margin: 0 auto;
}
.post-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--aztec-gold);
  margin: 48px 0 18px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.post-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--alabaster);
  margin: 36px 0 14px;
  line-height: 1.25;
}
.post-body p { margin-bottom: 22px; color: var(--almond-frost); }
.post-body p > a {
  color: var(--aztec-gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 151, 58, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.post-body p > a:hover { text-decoration-color: var(--aztec-gold); }
.post-body strong { color: var(--alabaster); font-weight: 600; }
.post-body em { font-style: italic; color: var(--alabaster); }
.post-body ul, .post-body ol { margin: 20px 0 24px 28px; color: var(--almond-frost); }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid var(--aztec-gold);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  color: var(--alabaster);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}
.post-body img,
.post-body figure { margin: 32px 0; border-radius: 4px; overflow: hidden; }
.post-body figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--almond-frost);
  text-align: center;
  margin-top: 12px;
}
.post-body hr {
  border: none;
  height: 1px;
  background: var(--rule-warm);
  margin: 40px 0;
}
.post-body code {
  background: rgba(200, 151, 58, 0.08);
  color: var(--aztec-gold);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.92em;
}
.post-body pre {
  background: var(--shadow-deep);
  color: var(--alabaster);
  padding: 18px 22px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  border: 1px solid var(--rule-warm-soft);
}

/* Ghost Koenig editor width classes (required) */
.kg-width-wide   { margin-left: -8vw; margin-right: -8vw; }
.kg-width-full   { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.kg-image        { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.kg-card         { margin: 32px 0; }
.kg-bookmark-card { border: 1px solid var(--rule-warm); border-radius: 4px; overflow: hidden; }
.kg-callout-card {
  background: rgba(200, 151, 58, 0.08);
  border-left: 3px solid var(--aztec-gold);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
  margin: 28px 0;
}

/* Editorial chart card — used to wrap real chart images (IEA, EIA, etc.) */
.chart-card {
  margin: 40px 0;
  background: var(--shadow-deep);
  border: 1px solid var(--rule-warm);
  border-radius: 6px;
  padding: 28px;
}
.chart-card__eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  margin-bottom: 6px;
}
.chart-card__title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--alabaster);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}
.chart-card__source {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--almond-frost);
  margin-bottom: 20px;
}
.chart-card__image-wrap {
  background: var(--white);
  border-radius: 4px;
  padding: 18px;
  overflow: hidden;
}
.chart-card__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.chart-card__caption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--almond-frost);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-warm);
}
.chart-card__caption strong { color: var(--aztec-gold); font-weight: 600; }

@media (max-width: 720px) {
  .chart-card { padding: 22px 18px; margin: 32px 0; }
  .chart-card__title { font-size: 17px; }
  .chart-card__image-wrap { padding: 12px; }
  .chart-card__caption { font-size: 12.5px; }
}

.post-footer {
  padding: 40px 0 96px;
  border-top: 1px solid var(--rule-warm);
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.post-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  text-decoration: none;
  border: 1px solid var(--rule-gold);
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.post-nav a:hover { background: rgba(200, 151, 58, 0.08); border-color: rgba(200, 151, 58, 0.55); }
.post-nav__prev::before { content: '←  '; }
.post-nav__next::after  { content: '  →'; }
/* When only one of prev/next exists, push the visible one to the right edge */
.post-nav__next { margin-left: auto; }

.post-cta {
  background: var(--shadow-deep);
  border: 1px solid var(--rule-warm);
  border-radius: 6px;
  padding: 36px 32px;
  text-align: center;
}
.post-cta h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--alabaster);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.post-cta p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--almond-frost);
  margin-bottom: 22px;
}

/* ─── Page (static) ────────────────────────────────────────── */
.page-header { padding: 88px 0 32px; }
.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 800;
  color: var(--alabaster);
  letter-spacing: -1px;
  line-height: 1.05;
}
.page-body {
  padding: 24px 28px 96px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--alabaster);
  max-width: 736px;
  margin: 0 auto;
}
.page-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--aztec-gold);
  margin: 40px 0 16px;
}
.page-body p { margin-bottom: 22px; color: var(--almond-frost); }
.page-body a { color: var(--aztec-gold); }

/* ─── Error ────────────────────────────────────────────────── */
.error-section {
  padding: 160px 0;
  text-align: center;
}
.error-section h1 {
  font-family: var(--serif);
  font-size: clamp(60px, 9vw, 140px);
  font-weight: 800;
  color: var(--aztec-gold);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
}
.error-section p {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--almond-frost);
  margin-bottom: 32px;
}
.error-section a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aztec-gold);
  text-decoration: none;
  border: 1px solid var(--rule-gold);
  padding: 12px 24px;
  border-radius: 2px;
}
.error-section a:hover { background: rgba(200, 151, 58, 0.08); }

/* ─── Scroll Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { 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; }
.reveal-delay-5 { transition-delay: 0.40s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-rule {
  position: relative;
}
.reveal-rule::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0%;
  background: var(--aztec-gold);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-rule.visible::after { width: 100%; }

/* Hero specific entry */
.hero-issue-pill,
.hero h1,
.hero-sub,
.subscribe-form,
.form-meta {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-issue-pill { animation-delay: 0.05s; }
.hero h1        { animation-delay: 0.18s; }
.hero-sub       { animation-delay: 0.30s; }
.subscribe-form { animation-delay: 0.40s; }
.form-meta      { animation-delay: 0.48s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Counter for stat numbers */
.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible,
  .reveal-scale, .reveal-scale.visible,
  .reveal-rule::after,
  .hero-issue-pill, .hero h1, .hero-sub, .subscribe-form, .form-meta {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .reveal-rule::after { width: 100%; }
  .live-dot { animation: none; }
}

/* ============================================================
   RESPONSIVE
   Breakpoints:
     ≤ 1040px   container tightening
     ≤ 960px    tablet
     ≤ 720px    mobile (primary phone tier)
     ≤ 480px    small phone
     ≤ 380px    very small phone (iPhone SE 1st gen, etc.)
   ============================================================ */

/* ─── Tablet down ─────────────────────────────────────────── */
@media (max-width: 1040px) {
  .container,
  .container--wide { padding: 0 24px; }
}

@media (max-width: 960px) {
  /* Market strip: 4 → 2 columns */
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .market-cell { padding: 22px 24px; }
  .market-cell:nth-child(2) { border-right: none; }
  .market-cell:nth-child(1),
  .market-cell:nth-child(2) { border-bottom: 1px solid rgba(138, 125, 107, 0.18); }

  /* Sample section: stack the email mock under the copy */
  .sample-layout { grid-template-columns: 1fr; gap: 48px; }
  .nl-window { max-width: 100%; margin: 0 auto; }

  /* Archive teaser head */
  .archive-teaser__head { gap: 20px; }

  /* Footer reflow */
  .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-content: flex-start; }
}

/* ─── Mobile (≤ 720px) ────────────────────────────────────── */
@media (max-width: 720px) {

  /* Persistent bottom bar, leave room for it on the body */
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta { display: none; }

  /* iOS Safari: prevent zoom on focused input by keeping font-size ≥ 16px */
  input[type="email"] { font-size: 16px !important; }

  /* ─── Containers / spacing rhythm ─── */
  .container,
  .container--narrow,
  .container--wide { padding: 0 20px; }

  .hero              { padding: 64px 0 52px; }
  .market-strip      { /* keep flush */ }
  .pull-quote-section{ padding: 64px 0; }
  .gap-section       { padding: 56px 0 44px; }
  .sample-section    { padding: 44px 0 64px; }
  .archive-teaser    { padding: 64px 0 72px; }
  .about-section     { padding: 64px 0 72px; }
  .cta-section       { padding: 64px 0; }

  /* ─── Utility marquee ─── */
  .utility-strip__track { animation-duration: 52s; gap: 38px; padding: 11px 0; }
  .utility-strip__item  { font-size: 11px; }
  .ticker__price        { font-size: 11px; }
  .ticker__delta        { font-size: 10px; }

  /* ─── Site nav ─── */
  nav.site-nav { padding: 16px 0 14px; }
  .nav-logo img { height: 32px; }
  .nav-cluster { gap: 12px; }
  .nav-link { display: none; }
  .nav-subscribe {
    padding: 9px 16px;
    font-size: 11px;
    letter-spacing: 0.08em;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  /* ─── Hero ─── */
  .hero-issue-pill {
    font-size: 10px;
    padding: 6px 14px;
    letter-spacing: 0.14em;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    line-height: 1.08;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 26px;
    line-height: 1.55;
    max-width: 460px;
  }

  /* ─── Subscribe forms — stack and enlarge tap targets ─── */
  .subscribe-form {
    flex-direction: column;
    max-width: 100%;
    border-radius: 4px;
  }
  .subscribe-form input[type="email"] {
    border-bottom: 1px solid var(--rule-gold);
    border-radius: 0;
    padding: 16px 18px;
  }
  .subscribe-form button {
    padding: 16px;
    text-align: center;
    width: 100%;
    min-height: 50px;
    font-size: 14px;
  }
  .form-meta { font-size: 12px; padding: 0 16px; }

  /* ─── Pull quote ─── */
  .pull-quote__mark { font-size: 88px; margin-bottom: 4px; }
  .pull-quote__text { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.32; }
  .pull-quote__source { font-size: 11px; letter-spacing: 0.14em; }
  .pull-quote__source::before { width: 18px; margin-right: 10px; }

  /* ─── The Lens / gap section ─── */
  .gap-section h2  { font-size: clamp(26px, 6.4vw, 32px); margin-bottom: 14px; line-height: 1.14; letter-spacing: -0.3px; }
  .gap-section .lead { font-size: 15px; margin-bottom: 36px; line-height: 1.6; }
  .gap-grid { display: flex; flex-direction: column; gap: 12px; background: transparent; border: none; border-radius: 0; }
  .gap-card {
    border-radius: 6px;
    padding: 26px 22px;
    border: 1px solid rgba(28, 24, 20, 0.08);
    background: var(--alabaster-dim);
  }
  .gap-card:nth-child(1),
  .gap-card:nth-child(2),
  .gap-card--crude { grid-column: unset; grid-row: unset; }
  .gap-card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.2px; }
  .gap-card p { font-size: 14.5px; line-height: 1.6; }
  .gap-card--crude {
    order: 3;
    padding: 32px 24px;
    border: 1px solid rgba(200, 151, 58, 0.25) !important;
  }
  .gap-card--crude h3 { font-size: 23px; }
  .gap-crude-logo { margin-left: -16px; width: 116px; margin-bottom: 12px; }
  .gap-cross { margin-bottom: 14px; }

  /* ─── Sample / format section ─── */
  .sample-section h2 { font-size: clamp(26px, 6.4vw, 32px); line-height: 1.15; }
  .sample-section .lead { max-width: 100%; font-size: 16px; margin-bottom: 24px; line-height: 1.6; }
  .section-item { padding: 16px 0; gap: 14px; }
  .section-name { font-size: 16px; }
  .section-desc { font-size: 13.5px; line-height: 1.55; }
  .nl-window { display: none; } /* email mock too dense at phone width */
  .sample-cta { padding-top: 18px; }

  /* ─── Archive teaser / list ─── */
  .archive-teaser__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .archive-teaser__head h2 { font-size: clamp(24px, 6vw, 30px); }
  .archive-teaser__all {
    font-size: 11px;
    align-self: flex-start; /* override the default `end` alignment on mobile */
  }
  .issue-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }
  .issue-row__number { font-size: 11px; letter-spacing: 0.14em; }
  .issue-row__title  { font-size: 19px; line-height: 1.28; }
  .issue-row__excerpt { font-size: 13.5px; line-height: 1.5; }
  .issue-row__date { font-size: 12px; order: 3; gap: 8px; }
  /* Hover/arrow only makes sense on pointer devices — toned down on touch */
  .issue-row:hover { padding-left: 0; }
  .issue-row__arrow { display: none; }

  /* ─── About ─── */
  .about-section h2 { font-size: clamp(24px, 6.2vw, 30px); line-height: 1.22; margin-bottom: 22px; }
  .about-section p  { font-size: 15.5px; line-height: 1.75; }
  .byline-card__name { font-size: 16px; }
  .about-flag { font-size: 13px; }

  /* ─── Bottom CTA ─── */
  .cta-section h2 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.12; margin-bottom: 12px; }
  .cta-section .sub { font-size: 15px; margin-bottom: 24px; }
  .cta-section__eyebrow { font-size: 10px; letter-spacing: 0.16em; margin-bottom: 14px; }
  .cta-form { flex-direction: column; max-width: 100%; }
  .cta-form input[type="email"] {
    border-bottom: 1px solid rgba(28, 24, 20, 0.12);
    padding: 16px 18px;
  }
  .cta-form button {
    padding: 16px;
    min-height: 50px;
    width: 100%;
  }
  .cta-meta { font-size: 12px; padding: 0 16px; }

  /* ─── Footer ─── */
  .site-footer { padding: 44px 0 32px; }
  .footer-logo img { height: 30px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .footer-links a { font-size: 13px; }
  .footer-copy { font-size: 11px; line-height: 1.55; padding-top: 22px; }

  /* ─── Mobile subscribe bar — safe-area + bigger tap target ─── */
  .mobile-bar {
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bar-text { font-size: 12.5px; line-height: 1.35; }
  .mobile-bar-btn {
    padding: 12px 18px;
    font-size: 12.5px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  /* ─── Sticky nav (small) ─── */
  .sticky-nav { padding: 9px 0; }
  .sticky-logo img { height: 26px; }

  /* ─── Modal — give it breathing room from screen edges ─── */
  .subscribe-modal { padding: 18px; }
  .subscribe-modal__inner { padding: 32px 26px; }
  .subscribe-modal__title { font-size: 22px; }
  .subscribe-modal__text { font-size: 14.5px; }

  /* ─── Post / page typography ─── */
  .post-header  { padding: 56px 0 24px; }
  .post-title   { font-size: clamp(28px, 7.4vw, 38px); letter-spacing: -0.4px; line-height: 1.1; }
  .post-excerpt { font-size: 17px; line-height: 1.45; }
  .post-meta    { font-size: 12px; gap: 10px 14px; }
  .post-body    { font-size: 17px; line-height: 1.7; padding: 32px 20px 56px; }
  .page-body    { font-size: 17px; padding: 24px 20px 72px; }
  .post-body h2 { font-size: 24px; margin: 36px 0 14px; }
  .post-body h3 { font-size: 19px; margin: 28px 0 10px; }
  .post-body blockquote { font-size: 18px; margin: 24px 0; padding-left: 18px; }
  .post-footer  { padding: 32px 0 64px; }
  .post-cta     { padding: 30px 24px; }
  .post-cta h3  { font-size: 21px; }
  .post-cta p   { font-size: 13.5px; }
  .post-nav a   { font-size: 12px; padding: 10px 18px; }

  /* ─── Archive header ─── */
  .archive-header { padding: 56px 0 36px; }
  .archive-header h1 { font-size: clamp(30px, 7.6vw, 40px); letter-spacing: -0.5px; }
  .archive-header p  { font-size: 15.5px; line-height: 1.6; }
  .archive-year-divider { padding: 24px 0 10px; font-size: 12px; }
  .archive-pagination { padding: 32px 0 64px; flex-wrap: wrap; }
  .archive-pagination a,
  .archive-pagination span { font-size: 12px; padding: 9px 18px; }

  /* ─── Page (static) ─── */
  .page-header { padding: 56px 0 24px; }
  .page-title  { font-size: clamp(32px, 8vw, 42px); }
  .page-body   { font-size: 17px; padding: 24px 0 72px; }
}

/* ─── Small phone (≤ 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .container,
  .container--narrow,
  .container--wide { padding: 0 18px; }

  .hero { padding: 52px 0 44px; }
  .hero-issue-pill { font-size: 9.5px; padding: 6px 12px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); letter-spacing: -0.3px; }
  .hero-sub { font-size: 15px; }

  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .market-cell { padding: 16px 16px; }
  .market-cell__label { font-size: 9.5px; letter-spacing: 0.16em; }
  .market-cell__value { font-size: 20px; }
  .market-cell__value .unit { font-size: 12px; margin-left: 2px; }
  .market-cell__delta { font-size: 11px; }
  .market-cell__note  { font-size: 10.5px; }

  .pull-quote__text { font-size: clamp(20px, 5.6vw, 24px); line-height: 1.3; }
  .pull-quote__mark { font-size: 72px; }
  .pull-quote-section { padding: 56px 0; }

  .gap-card { padding: 24px 18px; }
  .gap-card h3 { font-size: 20px; }
  .gap-card--crude { padding: 28px 22px; }
  .gap-card--crude h3 { font-size: 21px; }

  .archive-header h1 { font-size: clamp(28px, 8.6vw, 36px); }

  .post-body { font-size: 16.5px; padding: 28px 18px 48px; }
  .page-body { padding: 20px 18px 64px; }
  .post-body h2 { font-size: 22px; }
  .post-body h3 { font-size: 18px; }

  .cta-section h2 { font-size: clamp(24px, 7.4vw, 30px); }

  .nl-email-subject { font-size: 11px; }
  .footer-links { gap: 14px 22px; }
}

/* ─── Very small phone (≤ 380px) — iPhone SE etc. ────────── */
@media (max-width: 380px) {
  .container,
  .container--narrow,
  .container--wide { padding: 0 16px; }

  .hero h1 { font-size: clamp(28px, 9.4vw, 32px); }
  .hero-sub { font-size: 14.5px; }
  .post-body { padding: 24px 16px 40px; }
  .page-body { padding: 16px 16px 56px; }
  .market-cell { padding: 14px 14px; }
  .market-cell__value { font-size: 18px; }
  .pull-quote__text { font-size: 19px; }
  .gap-card h3 { font-size: 19px; }
  .archive-header h1 { font-size: 26px; }
  .post-title { font-size: 26px; }
  .nav-subscribe { padding: 8px 12px; font-size: 10.5px; letter-spacing: 0.06em; }

  /* Tighten the mobile bar so the CTA still fits on 320px-wide devices */
  .mobile-bar-text { font-size: 12px; }
  .mobile-bar-btn { padding: 10px 14px; font-size: 11.5px; }
}

/* ─── Touch-device tweaks (no hover) ──────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Hovered states would otherwise stick after tap — neutralize them */
  .issue-row:hover { padding-left: 0; }
  .issue-row:hover .issue-row__title { color: var(--alabaster); }
  .nav-subscribe:hover { background: transparent; border-color: var(--rule-gold); }
  .nl-window:hover { transform: none; box-shadow: 0 28px 80px rgba(28, 24, 20, 0.22), 0 6px 18px rgba(28, 24, 20, 0.12); }

  /* Tap feedback */
  .issue-row:active { background: rgba(200, 151, 58, 0.05); }
  .nav-subscribe:active { background: rgba(200, 151, 58, 0.12); }
  .subscribe-form button:active,
  .cta-form button:active,
  .mobile-bar-btn:active,
  .sticky-cta:active { transform: scale(0.98); }
}
