/* ==========================================================================
   The Defense Outlook — editorial stylesheet
   --------------------------------------------------------------------------
   Contents
     1. Design tokens
     2. Reset & base
     3. Primitives (buttons, rules, links)
     4. Header: utility bar, masthead, nav, ticker
     5. Front-page components
     6. Article template
     7. Footer & utilities
     8. Responsive
     9. Print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", var(--serif);

  --ink: #111110;
  --ink-2: #35342f;
  --ink-3: #6e6a62;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --rule: #e7e4dc;
  --rule-2: #d6d2c8;
  --accent: #8c1414;
  --accent-soft: #f6e9e9;

  /* Inverted surfaces (newsletter, footer bands) — deliberately not
     derived from --ink, so the band stays inverted in dark mode too. */
  --inv-bg: #111110;
  --inv-fg: #fbfaf7;
  --inv-muted: rgba(251, 250, 247, 0.72);
  --inv-rule: rgba(251, 250, 247, 0.22);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1240px;
  --pad: clamp(16px, 3.2vw, 40px);
  --gap: clamp(18px, 2.4vw, 34px);
  --radius: 3px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 18px 40px -30px rgba(0, 0, 0, 0.45);

  --word-size: clamp(1.35rem, 4.6vw, 3.35rem);
}

[data-theme="dark"] {
  --ink: #f2f0ea;
  --ink-2: #cfcbc2;
  --ink-3: #9b968b;
  --paper: #0f0f0e;
  --surface: #171716;
  --rule: #262624;
  --rule-2: #3a382f;
  --accent: #ff7a6b;
  --accent-soft: #2a1512;

  --inv-bg: #f4f2ec;
  --inv-fg: #111110;
  --inv-muted: rgba(17, 17, 16, 0.68);
  --inv-rule: rgba(17, 17, 16, 0.18);

  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 20px 40px -30px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
input { font: inherit; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Primitives
   -------------------------------------------------------------------------- */
.hl {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.hl:hover,
.hl:focus-visible { text-decoration-color: currentColor; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--rule); color: var(--ink); }
.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.btn-subscribe {
  background: var(--ink);
  color: var(--paper);
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: 0.12em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-subscribe:hover { background: var(--accent); color: #fff; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--inv-fg);
  color: var(--inv-bg);
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
}
.btn-ghost:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--rule); }

.utility-bar {
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  color: var(--ink-3);
}
.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.utility-left { gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-right { gap: 16px; flex: 0 0 auto; }
.utility-right a { color: var(--ink-3); transition: color 0.2s var(--ease); }
.utility-right a:hover { color: var(--ink); }
.utility-right .icon-btn { width: 30px; height: 30px; color: var(--ink-3); }
.utility-right .icon-btn svg { width: 17px; height: 17px; }
.utility-right .btn-subscribe { color: var(--paper); }
.dot-sep { color: var(--rule-2); }
.weather b { font-weight: 600; color: var(--ink-2); }

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: clamp(14px, 2vw, 26px);
  border-bottom: 3px double var(--ink);
}
.mast-left,
.mast-right { display: flex; align-items: center; }
.mast-right { justify-content: flex-end; }

.brand { text-align: center; margin: 0; }
.brand-link { display: block; }
.brand-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.brand-word {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--word-size);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-tag {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.brand-link:hover .brand-word { color: var(--accent); }

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-2);
  transition: box-shadow 0.25s var(--ease);
}
.primary-nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.5); }
@supports (backdrop-filter: blur(1px)) {
  .primary-nav {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
}
.nav-list {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: block;
  padding: 13px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-search { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.nav-search input {
  width: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: width 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.35s var(--ease);
}
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search.is-open input { width: 190px; padding: 8px 2px; opacity: 1; pointer-events: auto; }

.ticker {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.7); }
}
.ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.ticker-viewport {
  display: flex;
  width: max-content;
  animation: ticker 58s linear infinite;
}
.ticker:hover .ticker-viewport { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  position: relative;
  padding-right: 54px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink-2);
}
.ticker-item::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule-2);
  transform: translateY(-50%);
}

/* Mobile section drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  background: var(--paper);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 3px double var(--ink);
}
.drawer-brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.drawer-list { flex: 1; overflow-y: auto; }
.drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.drawer-list a::after { content: "→"; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }

/* --------------------------------------------------------------------------
   5. Front-page components
   -------------------------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kicker .sep { width: 16px; height: 1px; background: var(--rule-2); }
.kicker .muted { color: var(--ink-3); font-weight: 600; }

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #6d2020, #1f2f47);
}
.avatar-lg { width: 40px; height: 40px; font-size: 12px; }

.meta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 0;
  padding-block: clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.lede-story { padding-right: clamp(20px, 3vw, 44px); }
.lede-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--rule);
}
.lede-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.lede-media:hover img { transform: scale(1.03); }
.lede-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
}
.lede-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.deck {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 62ch;
}
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.byline b { color: var(--ink); font-weight: 600; }
.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rule-2);
  vertical-align: middle;
}

.rail {
  border-left: 1px solid var(--rule);
  padding-left: clamp(20px, 3vw, 44px);
}
.rail-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.rail-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.rail-list li:last-child { border-bottom: 0; }
.rank {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.rail-list h3 {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.32;
}
.rail-list .meta { display: block; margin-top: 6px; }

.section {
  padding-block: clamp(26px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 2px solid var(--ink);
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.section-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.section-link:hover { color: var(--accent); }

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 11px; }
.card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--rule);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.02rem, 1.3vw, 1.3rem);
  line-height: 1.24;
  letter-spacing: -0.005em;
}
.card-summary {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.card-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
}
.feature .card-media { aspect-ratio: 16 / 10; }
.feature .card-title { font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.16; }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * + * {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 3vw, 48px);
}
.split > :first-child { padding-right: clamp(24px, 3vw, 48px); }

.story-list { margin-top: 22px; border-top: 1px solid var(--rule); }
.story-list li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.story-list li:last-child { border-bottom: 0; }
.story-list h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.story-list .meta { display: block; margin-top: 5px; }

.feed-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: 0; }
.feed-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.feed-item h3 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.32;
}
.feed-item .meta { display: block; margin-top: 6px; }
.badge-line { margin-bottom: 6px; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-live .pulse { width: 4px; height: 4px; }

.opinion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.opinion-card {
  padding-top: 14px;
  border-top: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.opinion-card .head { display: flex; align-items: center; gap: 10px; }
.opinion-card .avatar { width: 30px; height: 30px; font-size: 10px; }
.opinion-card .name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.opinion-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.24;
}
.opinion-card p { font-size: 13px; line-height: 1.55; color: var(--ink-3); }

.chart-card {
  margin-top: 24px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chart-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .num {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat .lbl {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat.is-up .num { color: var(--accent); }
.spark { width: 100%; height: 90px; overflow: visible; }
.chart-note { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }

.newsletter { padding-block: clamp(26px, 4vw, 52px); }
.newsletter-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(24px, 4vw, 52px);
  background: var(--inv-bg);
  color: var(--inv-fg);
  border-radius: var(--radius);
}
.newsletter-card h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.newsletter-card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--inv-muted);
  max-width: 46ch;
}
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--inv-rule);
  border-radius: 2px;
  background: transparent;
  color: var(--inv-fg);
  font-size: 13px;
}
.form-row input::placeholder { color: var(--inv-muted); }
.form-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { margin-top: 10px; font-size: 11px; color: var(--inv-muted); }

/* --------------------------------------------------------------------------
   6. Article template
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: var(--rule);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(24px, 3.4vw, 48px);
}
.article-head { max-width: 780px; }
.article-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.article-deck {
  margin-top: 16px;
  max-width: 62ch;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-3);
}
.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-3);
}
.byline-id { display: flex; flex-direction: column; gap: 1px; margin-right: 4px; }
.byline-name { font-weight: 600; color: var(--ink); font-size: 12.5px; }
.byline-role { font-size: 10.5px; letter-spacing: 0.04em; }
.article-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-figure { margin: clamp(22px, 3vw, 36px) 0; }
.article-figure img { width: 100%; height: auto; }
.article-figure--narrow { max-width: 560px; }
.article-figure figcaption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.article-body {
  max-width: 690px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.72;
}
.article-body > p { margin-bottom: 1.35em; }
.article-body > p:first-of-type::first-letter {
  float: left;
  padding: 6px 10px 0 0;
  font-family: var(--display);
  font-size: 3.9em;
  font-weight: 700;
  line-height: 0.8;
}
.article-body h2 {
  margin: 1.9em 0 0.6em;
  font-family: var(--serif);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pull-quote {
  margin: 2.2em 0;
  padding: 6px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55em;
  line-height: 1.34;
}
.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.tags-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.tag {
  padding: 5px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.article-cta {
  margin-top: 40px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.article-cta h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.article-cta p { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.article-cta form { margin-top: 16px; }
.article-cta .form-row input {
  border-color: var(--rule-2);
  color: var(--ink);
}
.article-cta .form-row input::placeholder { color: var(--ink-3); }

.article-rail {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.rail-block { display: flex; flex-direction: column; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-align: center;
}
.ad-label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ad-body { font-family: var(--serif); font-size: 14px; color: var(--ink-3); }

.more-from { border-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Footer & utilities
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(10px, 2vw, 24px);
  padding-block: clamp(28px, 4vw, 52px) 24px;
  background: var(--surface);
  border-top: 3px double var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.footer-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.footer-brand p {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}
.footer-col h4 {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-3);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lede { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 920px) {
  .lede { grid-template-columns: 1fr; }
  .lede-story { padding-right: 0; }
  .rail {
    border-left: 0;
    padding-left: 0;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
  }
  .split { grid-template-columns: 1fr; }
  .split > * + * {
    border-left: 0;
    padding-left: 0;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }
  .split > :first-child { padding-right: 0; }
  .newsletter-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .article-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
  }
  .ad-slot { display: none; }
}

@media (max-width: 680px) {
  .utility-left .weather { display: none; }
  .utility-right { gap: 12px; }
  .utility-right > a:not(.btn-subscribe) { display: none; }
  .nav-search { display: none; }
  .brand-tag { display: none; }
  .brand-eyebrow { letter-spacing: 0.24em; font-size: 8px; }
  .masthead { grid-template-columns: auto 1fr auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-rail { grid-template-columns: 1fr; }
  .article-body > p:first-of-type::first-letter { font-size: 3.2em; }
  .pull-quote { font-size: 1.35em; }
  .share-btn span { display: none; }
  .share-btn { padding: 9px; }
}

@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 9; }
  .brand-eyebrow { display: none; }
  .article-actions { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-viewport { animation: none !important; }
  .lede-media:hover img,
  .card:hover .card-media img { transform: none; }
}

/* --------------------------------------------------------------------------
   9. Print
   -------------------------------------------------------------------------- */
@media print {
  .utility-bar,
  .primary-nav,
  .ticker,
  .article-actions,
  .article-rail,
  .article-tags,
  .article-cta,
  .to-top,
  .toast,
  .drawer,
  .skip-link,
  .more-from,
  .newsletter,
  .footer-col,
  .footer-bottom { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .article-layout { display: block; }
  .article-head { max-width: none; }
  .article-title { font-size: 26pt; }
  .article-body { max-width: none; font-size: 11pt; line-height: 1.6; }
  .article-figure { break-inside: avoid; }
  .site-footer { border-top: 1px solid #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
