/* =====================================================================
   THE GAZETTE — broadsheet-modern news portal
   Design layer for uiCookies. Bootstrap 5 vendor stays untouched.
   Palette : cool ink on crisp paper, one authoritative press-red accent
   Type    : Newsreader (display) · Archivo (UI/body) · IBM Plex Mono (labels)
   ===================================================================== */

:root {
  /* palette — cool broadsheet neutrals + press red */
  --ink:      #15181e;   /* cool near-black — headlines & body */
  --ink-2:    #4a515c;   /* secondary text */
  --ink-3:    #78808c;   /* muted meta */
  --paper:    #f4f5f7;   /* cool broadsheet white (hued neutral) */
  --card:     #ffffff;   /* cards float above paper */
  --band:     #e7eaef;   /* cool grey section band */
  --rule:     #d2d7de;   /* hairline rules */
  --press:    #c8102e;   /* press red — masthead rule, breaking, labels */
  --press-d:  #9c0c23;   /* darker red for hover */
  --up:       #1b7a4b;   /* markets up */
  --down:     #c8102e;   /* markets down (= press) */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1220px;
  --gap: clamp(1.1rem, 2.4vw, 2rem);
  --shadow: 0 1px 2px rgba(21,24,30,.05), 0 8px 24px -14px rgba(21,24,30,.18);
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- a11y ---------- */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 2000;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 6px 6px; font: 600 .85rem/1 var(--sans);
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--press); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.section { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.section.band { background: var(--band); }

/* generic image frame — kills the aspect-ratio collapse bug */
.frame { position: relative; overflow: hidden; background: var(--band); display: block; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--3x2  { aspect-ratio: 3 / 2; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--1x1  { aspect-ratio: 1 / 1; }
.frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(21,24,30,.06); pointer-events: none; }

/* ---------- kicker / labels ---------- */
.kicker {
  font-family: var(--mono);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--press);
  display: inline-flex; align-items: center; gap: .45rem;
}
.kicker--ink { color: var(--ink-2); }
.dateline {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.tag {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--press); border: 1px solid currentColor;
  padding: .18rem .5rem; display: inline-block; line-height: 1;
}
.tag--solid { background: var(--press); color: #fff; border-color: var(--press); }
.tag--ink { color: var(--ink); }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin: 0 .5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .7rem 1.25rem; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: #000; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--press { background: var(--press); border-color: var(--press); }
.btn--press:hover { background: var(--press-d); border-color: var(--press-d); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .5rem .9rem; font-size: .72rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--rule); background: transparent;
  color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--band); border-color: var(--ink-3); }
.icon-btn svg { width: 20px; height: 20px; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--ink); color: #cfd4dc;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: #cfd4dc; }
.topbar a:hover { color: #fff; }
.tb-left { text-transform: uppercase; }
.tb-mid { color: #9aa2ad; text-transform: uppercase; }
.tb-right { display: flex; gap: 1.1rem; text-transform: uppercase; }
@media (max-width: 780px) { .tb-mid { display: none; } }

/* ===================== MASTHEAD ===================== */
.masthead { border-bottom: 3px solid var(--press); }
.masthead-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding-block: clamp(1.1rem, 3vw, 1.9rem);
}
.mh-side { font-family: var(--mono); font-size: .7rem; line-height: 1.5; color: var(--ink-2); letter-spacing: .04em; }
.mh-side b { color: var(--ink); font-weight: 600; }
.mh-side--right { text-align: right; }
.nameplate { text-align: center; }
.nameplate .the {
  display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .42em;
  text-transform: uppercase; color: var(--press); margin-bottom: .2rem; padding-left: .42em;
}
.nameplate .word {
  font-family: var(--serif); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(2.6rem, 9vw, 5rem); line-height: .92; letter-spacing: -.02em;
  display: block; color: var(--ink);
}
.nameplate .sub {
  display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-3); margin-top: .5rem;
}
@media (max-width: 860px) {
  .masthead-inner { grid-template-columns: auto 1fr auto; text-align: left; }
  .mh-side { display: none; }
  .nameplate { text-align: left; }
  .nameplate .the { padding-left: 0; }
}

/* ===================== PRIMARY NAV ===================== */
.nav-bar {
  position: sticky; top: 0; z-index: 900;
  background: var(--card); border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease;
}
.nav-bar.is-stuck { box-shadow: 0 6px 18px -12px rgba(21,24,30,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Desktop inline links (inside nav-bar) */
.nav-links-desktop {
  list-style: none; display: flex; align-items: center;
  gap: clamp(.9rem, 2vw, 1.7rem); margin: 0; padding: 0;
}
.nav-links-desktop a {
  display: block; padding: .95rem 0; font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links-desktop a:hover,
.nav-links-desktop a[aria-current="page"] { color: var(--press); border-color: var(--press); }

/* Mobile drawer nav — lives outside .nav-bar in HTML so position:fixed
   is always relative to the viewport, not the sticky ancestor.
   Hidden on desktop; only revealed on mobile via the max-width query below. */
@media (min-width: 901px) {
  .main-nav { display: none !important; }
}

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-close, .nav-toggle { display: none; }

/* mobile drawer */
@media (max-width: 900px) {
  .nav-links-desktop { display: none; }
  /* push actions to the right edge, hide desktop-only CTA */
  .nav-actions { margin-left: auto; }
  .nav-actions .btn--press { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(82vw, 340px);
    z-index: 1200;
    background: var(--card);
    transform: translateX(102%);
    transition: transform .28s ease;
    padding: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
    display: block;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    list-style: none; display: flex; flex-direction: column;
    gap: 0; margin: 2.5rem 0 0; padding: 0;
  }
  .main-nav a {
    display: block; padding: .85rem 0;
    font-family: var(--sans); font-weight: 600;
    font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); border-bottom: 1px solid var(--rule);
    transition: color .15s;
  }
  .main-nav a:hover { color: var(--press); }
  .nav-close { display: inline-flex; position: absolute; top: 1rem; right: 1rem; }
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(15,17,22,.5); z-index: 1100;
  opacity: 0; visibility: hidden; transition: opacity .28s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* search slide-down */
.searchbar { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; background: var(--ink); }
.searchbar.open { grid-template-rows: 1fr; }
.searchbar > div { overflow: hidden; }
.searchbar form { display: flex; gap: .6rem; padding-block: 1rem; }
.searchbar input {
  flex: 1; border: 1px solid #3a414c; background: #1d2129; color: #fff;
  padding: .7rem 1rem; font-family: var(--sans); font-size: .95rem;
}
.searchbar input::placeholder { color: #7d858f; }
.searchbar input:focus { outline: none; border-color: var(--press); }

/* ===================== LIVE TICKER ===================== */
.ticker { background: var(--ink); color: #eef1f5; overflow: hidden; }
.ticker-inner { display: flex; align-items: stretch; }
.ticker-label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--press); color: #fff; padding: .55rem 1rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.ticker-viewport { position: relative; flex: 1 1 auto; overflow: hidden; }
.ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ticker 42s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.4rem;
  font-size: .85rem; color: #dfe3e9;
}
.ticker-item + .ticker-item { border-left: 1px solid #333a45; }
.ticker-item b { color: var(--press); font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.ticker-item a { color: #eef1f5; }
.ticker-item a:hover { color: #fff; text-decoration: underline; }
.ticker-sep { color: #4a515c; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-viewport { overflow-x: auto; }
  .ticker-track { animation: none; }
}
.live-dot--static { animation: none; }

/* ===================== SECTION HEADER ===================== */
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.sec-head h2 {
  font-family: var(--sans); font-weight: 800; font-size: 1.02rem;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
}
.sec-head h2::before { content: ""; width: 12px; height: 12px; background: var(--press); flex: 0 0 auto; }
.sec-head .rule { flex: 1 1 auto; height: 1px; background: var(--rule); }
.sec-head .more {
  flex: 0 0 auto; font-family: var(--sans); font-weight: 600; font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .35rem;
}
.sec-head .more:hover { color: var(--press); }
.sec-head .more svg { width: 14px; height: 14px; }

/* headline links */
.hl { color: var(--ink); transition: color .14s; }
.hl:hover { color: var(--press); }
.byline { font-family: var(--sans); font-size: .8rem; color: var(--ink-3); margin: 0; }
.byline strong { color: var(--ink-2); font-weight: 600; }

/* ===================== FRONT PAGE ===================== */
.frontpage { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.fp-grid { display: grid; grid-template-columns: 250px 1fr 300px; gap: var(--gap); align-items: start; }

/* left rail: in brief */
.briefs { border-top: 3px solid var(--ink); padding-top: .9rem; }
.briefs h2 {
  font-family: var(--sans); font-weight: 800; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.brief-list li:last-child { border-bottom: 0; }
.brief-list .dateline { display: block; margin-bottom: .25rem; }
.brief-list h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.22; }
.brief-more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .8rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--press); }
.brief-more svg { width: 13px; height: 13px; }

/* center: dominant lead */
.lead { position: relative; }
.lead .frame { margin-bottom: 1rem; }
.lead .kicker { margin-bottom: .6rem; }
.lead-title { font-size: clamp(2rem, 4.2vw, 3.35rem); line-height: 1.02; margin-bottom: .7rem; }
.lead-title a { color: var(--ink); }
.lead-title a:hover { color: var(--press); }
.lead-dek { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); margin-bottom: .9rem; max-width: 62ch; }
.lead-dek .first { }
.lead-foot { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.lead-foot .avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--band); }
.lead-foot .avatar img { position: static; width: 100%; height: 100%; object-fit: cover; }

/* right rail: secondary stories */
.rail { display: grid; gap: 1.1rem; }
.rail-head {
  font-family: var(--sans); font-weight: 800; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; border-top: 3px solid var(--ink); padding-top: .9rem;
}
.sstory { display: grid; gap: .55rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.sstory:last-child { border-bottom: 0; padding-bottom: 0; }
.sstory .frame { }
.sstory h3 { font-size: 1.15rem; line-height: 1.16; }
.sstory .kicker { margin-bottom: .1rem; }

@media (max-width: 1040px) {
  .fp-grid { grid-template-columns: 1fr 300px; }
  .briefs { grid-column: 1 / -1; order: 3; border-top: 1px solid var(--rule); }
  .briefs .brief-list { columns: 2; column-gap: 2rem; }
  .brief-list li:first-child { padding-top: 0; }
}
@media (max-width: 720px) {
  .fp-grid { grid-template-columns: 1fr; }
  .lead-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .briefs .brief-list { columns: 1; }
}

/* ===================== TOP STORIES GRID ===================== */
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.story-card {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--card); border: 1px solid var(--rule); padding: .85rem;
  box-shadow: var(--shadow);
}
.story-card .meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.story-card h3 { font-size: 1.18rem; line-height: 1.16; }
.story-card p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.story-card .byline { margin-top: auto; }
@media (max-width: 960px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .story-grid { grid-template-columns: 1fr; } }

/* ===================== DESKS (interior + sidebar) ===================== */
.interior { display: grid; grid-template-columns: 1fr 330px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.desk + .desk { margin-top: clamp(2rem, 4vw, 3rem); }
.desk-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); }
.desk-feature .frame { margin-bottom: .9rem; }
.desk-feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.08; margin-bottom: .55rem; }
.desk-feature p { color: var(--ink-2); margin-bottom: .6rem; }
.desk-list { list-style: none; margin: 0; padding: 0; }
.desk-list li { display: grid; grid-template-columns: 84px 1fr; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.desk-list li:first-child { padding-top: 0; }
.desk-list li:last-child { border-bottom: 0; }
.desk-list .frame { align-self: start; }
.desk-list h4 { font-size: 1.02rem; line-height: 1.18; margin-bottom: .25rem; }
@media (max-width: 620px) { .desk-grid { grid-template-columns: 1fr; } }

/* sidebar */
.sidebar { display: grid; gap: 1.8rem; position: sticky; top: 84px; }
.side-block { background: var(--card); border: 1px solid var(--rule); }
.side-block .side-title {
  font-family: var(--sans); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 1.1rem; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: .5rem;
}
.side-title .live-dot { background: var(--press); }
.trend-list { list-style: none; margin: 0; padding: .4rem 1.1rem 1rem; counter-reset: t; }
.trend-list li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.trend-list li:last-child { border-bottom: 0; }
.trend-list li::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--press); line-height: 1;
}
.trend-list h4 { font-size: 1rem; line-height: 1.18; margin-bottom: .2rem; }
.trend-list .dateline { font-size: .62rem; }

/* markets widget */
.markets { padding: .3rem 1.1rem 1rem; }
.mkt-row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .62rem 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .8rem; }
.mkt-row:last-child { border-bottom: 0; }
.mkt-name { color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.mkt-val { color: var(--ink-2); }
.mkt-chg { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; justify-content: flex-end; min-width: 74px; }
.mkt-chg svg { width: 12px; height: 12px; }
.mkt-chg.up { color: var(--up); }
.mkt-chg.down { color: var(--down); }
.mkt-foot { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; padding: .7rem 1.1rem; border-top: 1px solid var(--rule); }

/* weather mini */
.weather { padding: 1rem 1.1rem; display: flex; align-items: center; gap: 1rem; }
.weather .temp { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.weather .w-meta { font-family: var(--mono); font-size: .68rem; color: var(--ink-2); letter-spacing: .04em; line-height: 1.6; text-transform: uppercase; }
.weather svg { width: 40px; height: 40px; color: var(--press); flex: 0 0 auto; }

@media (max-width: 900px) {
  .interior { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .sidebar { grid-template-columns: 1fr; } }

/* ===================== OPINION BAND ===================== */
.opinion { background: var(--ink); color: #e8ebf0; }
.opinion .sec-head h2 { color: #fff; }
.opinion .sec-head h2::before { background: var(--press); }
.opinion .sec-head .rule { background: #333a45; }
.opinion .sec-head .more { color: #aeb6c1; }
.opinion .sec-head .more:hover { color: #fff; }
.op-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap); }
.op-lead { border-right: 1px solid #2c333d; padding-right: var(--gap); }
.op-lead .frame { margin-bottom: 1rem; }
.op-card { display: flex; flex-direction: column; gap: .7rem; }
.op-card .op-head { display: flex; align-items: center; gap: .7rem; }
.op-card .avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: #2c333d; }
.op-card .avatar img { position: static; width: 100%; height: 100%; object-fit: cover; }
.op-name { font-family: var(--sans); font-weight: 700; font-size: .82rem; color: #fff; letter-spacing: .02em; }
.op-role { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #8a929d; }
.op-card h3 { color: #f3f5f8; font-size: 1.28rem; line-height: 1.14; }
.op-card h3 a { color: inherit; }
.op-card h3 a:hover { color: #ff8a9a; }
.op-lead h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.op-card p { color: #b8c0cb; font-size: .95rem; margin: 0; }
.op-divide { display: grid; gap: 1.4rem; }
.op-divide .op-card { padding-bottom: 1.4rem; border-bottom: 1px solid #2c333d; }
.op-divide .op-card:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) {
  .op-grid { grid-template-columns: 1fr; }
  .op-lead { border-right: 0; padding-right: 0; border-bottom: 1px solid #2c333d; padding-bottom: 1.6rem; }
  .op-divide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .op-divide { grid-template-columns: 1fr; } }

/* ===================== IN PICTURES ===================== */
/* explicit row heights: cells use absolutely-positioned imgs, so 1fr rows
   (measured against an auto-height container) would collapse to zero. */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 215px 215px; gap: .6rem; }
.gallery a { position: relative; overflow: hidden; background: var(--band); }
.gallery a:first-child { grid-row: 1 / 3; }
.gallery a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,22,.7), transparent 55%); }
.gallery .cap {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: .8rem 1rem; color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15;
}
.gallery a:first-child .cap { font-size: 1.35rem; }
.gallery .cap .k { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #ffb3bd; margin-bottom: .3rem; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery a { aspect-ratio: 4/3; }
  .gallery a:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16/9; }
}

/* ===================== NEWSLETTER ===================== */
.news { background: var(--band); border-top: 3px solid var(--press); }
.news-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.news h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; margin-bottom: .7rem; }
.news p { color: var(--ink-2); margin-bottom: 0; }
.news-form { }
.news-row { display: flex; gap: .6rem; }
.news-input {
  flex: 1; min-width: 0; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  padding: .85rem 1rem; font-family: var(--sans); font-size: 1rem;
}
.news-input::placeholder { color: var(--ink-3); }
.news-input:focus { outline: none; border-color: var(--press); }
.news-input.invalid { border-color: var(--press); background: #fdecef; }
.news-msg { margin: .7rem 0 0; font-size: .85rem; min-height: 1.1em; font-family: var(--mono); letter-spacing: .02em; }
.news-msg.ok { color: var(--up); }
.news-msg.err { color: var(--press); }
.news-note { margin: .5rem 0 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
@media (max-width: 720px) { .news-inner { grid-template-columns: 1fr; } .news-row { flex-direction: column; } }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink); color: #b8c0cb; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-brand .word { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: #fff; display: block; letter-spacing: -.01em; }
.footer-brand .the { font-family: var(--mono); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--press); display: block; margin-bottom: .2rem; }
.footer-brand p { color: #8f98a3; font-size: .9rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.foot-social { display: flex; gap: .6rem; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #333a45; color: #cfd4dc; transition: background .15s, border-color .15s, color .15s; }
.foot-social a:hover { background: var(--press); border-color: var(--press); color: #fff; }
.foot-social svg { width: 18px; height: 18px; }
.foot-col h4 { font-family: var(--sans); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .55rem; }
.foot-col a { color: #9aa2ad; font-size: .9rem; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #2c333d; padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .04em; color: #7d858f; text-transform: uppercase;
}
.footer-bottom .uic b { color: #cfd4dc; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ===================== ARTICLE PAGE ===================== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--press); z-index: 1500; transition: width .1s linear; }
.article-wrap { max-width: 780px; }
.article-head { padding-top: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--press); }
.article-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.04; margin: .5rem 0 .8rem; }
.article-dek { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 1.4rem; font-family: var(--serif); font-weight: 400; }
.byrow { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding-block: 1rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byrow .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--band); }
.byrow .avatar img { position: static; width: 100%; height: 100%; object-fit: cover; }
.by-info { line-height: 1.35; }
.by-info .name { font-family: var(--sans); font-weight: 700; font-size: .95rem; }
.by-info .meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.share-inline { margin-left: auto; display: flex; gap: .4rem; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-btn svg { width: 17px; height: 17px; }
.share-btn.flashed { background: var(--up); color: #fff; border-color: var(--up); }

.article-cover { margin-block: clamp(1.5rem, 4vw, 2.4rem); }
.article-cover .frame { max-width: 1000px; margin-inline: auto; }
.figcap { font-family: var(--mono); font-size: .68rem; letter-spacing: .02em; color: var(--ink-3); margin-top: .6rem; text-align: center; max-width: 1000px; margin-inline: auto; }

.article-body { font-size: 1.15rem; line-height: 1.72; color: #22262e; }
.article-body p { margin-bottom: 1.35rem; }
.article-body h2 { font-size: 1.7rem; margin: 2.2rem 0 .9rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; font-family: var(--sans); font-weight: 800; }
.article-body a { color: var(--press); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--press-d); }
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 800; float: left; font-size: 4.1rem; line-height: .78;
  padding: .3rem .55rem .1rem 0; color: var(--press);
}
.article-body ul, .article-body ol { margin: 0 0 1.35rem 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.pullquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--press); }
.pullquote p { font-family: var(--serif); font-size: 1.6rem; line-height: 1.28; font-weight: 500; color: var(--ink); margin: 0 0 .5rem; }
.pullquote cite { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); font-style: normal; text-transform: uppercase; }
.inline-fig { margin: 2rem 0; }
.inline-fig .frame { }
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

.article-author {
  display: flex; gap: 1.2rem; margin-top: 2.5rem; padding: 1.5rem; background: var(--band); align-items: flex-start;
}
.article-author .avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--card); }
.article-author .avatar img { position: static; width: 100%; height: 100%; object-fit: cover; }
.article-author .kicker { margin-bottom: .3rem; }
.article-author h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.article-author p { font-size: .95rem; color: var(--ink-2); margin: 0; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.related-card { display: flex; flex-direction: column; gap: .6rem; }
.related-card h3 { font-size: 1.12rem; line-height: 1.16; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } .related-card { flex-direction: row; gap: 1rem; } .related-card .frame { width: 120px; flex: 0 0 120px; } }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
