/* ——————————————————————————————————————————————————————
   TREPIC STORIES — Editorial design language
   Modern: CSS Grid, Container Queries, Scroll-driven
   animations, View Transitions, mix-blend-mode
   ——————————————————————————————————————————————————————*/

:root {
  --c-ink: #292420;
  --c-bg: #FAF9F4;
  --c-cream: #F3F0E9;
  --c-line: #E2DDD2;
  --c-mute: #756E66;
  --c-gold: #b28b43;
  --c-gold-soft: #c9a55c;
  --ff-display: "Cormorant Infant", "Cormorant Garamond", Lora, Georgia, serif;
  --ff-body: "Inter", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1480px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease, border-color .25s ease; }
em { font-style: italic; }

.mono { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.dim { color: var(--c-mute); }
.serif-it { font-family: var(--ff-display); font-style: italic; font-weight: 500; }
.i-it { font-style: italic; font-family: var(--ff-display); font-weight: 500; }
.display-italic { font-style: italic; font-family: var(--ff-display); font-weight: 500; color: var(--c-gold); }

::selection { background: var(--c-gold); color: #fff; }

/* —— View transitions (chapter swaps) —— */
::view-transition-old(root) { animation: fade .28s ease-out forwards; }
::view-transition-new(root) { animation: fade .42s ease-out reverse; }
@keyframes fade { from { opacity: 1 } to { opacity: 0 } }

/* —— Scroll-driven reveal (modern browsers) —— */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
}
@supports not (animation-timeline: view()) { .reveal { opacity: 1 } }

/* ——— MASTHEAD ——————————————————————————————————————————— */
.mast {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,249,244,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.mast-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.mast-mark {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--c-ink);
}
.mast-logo { height: 32px; width: auto; display: block; }
.mast-mark .dim { font-family: var(--ff-display); font-style: italic; font-weight: 500; font-size: 18px; letter-spacing: 0; color: var(--c-mute); }
.mast-issue {
  text-align: center;
  color: var(--c-mute);
}
.mast-nav {
  justify-self: end;
  display: flex; gap: 28px; align-items: center;
}
.mast-nav a {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-mute);
}
.mast-nav a:hover { color: var(--c-ink); }
.mast-cta {
  color: var(--c-ink) !important;
  border: 1px solid var(--c-ink);
  padding: 10px 18px;
  letter-spacing: 0.2em !important;
}
.mast-cta:hover { background: var(--c-ink); color: #fff !important; }
.mast-rule { height: 1px; background: linear-gradient(90deg, transparent 0%, var(--c-line) 8%, var(--c-line) 92%, transparent 100%); }
@media (max-width: 900px) {
  .mast-row { grid-template-columns: auto auto; }
  .mast-issue { display: none; }
  .mast-nav { gap: 18px; }
  .mast-nav a:not(.mast-cta) { display: none; }
}

/* ——— COVER ————————————————————————————————————————————— */
.cover {
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(60px, 8vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
}
.cover-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: clamp(20px, 3vw, 40px) clamp(20px, 2vw, 32px);
}
.cover-meta {
  grid-column: 1 / span 12;
  display: flex; gap: 22px; align-items: center;
  color: var(--c-mute);
  border-top: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding: 14px 0;
}
.cover-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); margin: 0 4px; }

.cover-h {
  grid-column: 1 / span 12;
  font-family: var(--ff-display);
  font-weight: 400;
  margin: clamp(20px, 4vw, 40px) 0 0;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  display: flex; flex-direction: column;
}
.cover-line { display: block; }
.cover-line.line-1 { transform: translateX(-0.04em); }
.cover-line.line-2 {
  font-style: italic;
  color: var(--c-gold);
  align-self: flex-end;
  margin-right: clamp(20px, 6vw, 80px);
  margin-top: -0.1em;
  font-weight: 500;
}
.cover-line.line-2 em { font-style: italic; }
.cover-line.line-3 {
  align-self: flex-start;
  margin-top: -0.1em;
  margin-left: clamp(40px, 14vw, 220px);
}

.cover-art {
  grid-column: 1 / span 7;
  grid-row: 3;
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.cover-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.95);
}
.cover-art figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  max-width: 320px;
}

.cover-deck {
  grid-column: 9 / span 4;
  grid-row: 3;
  align-self: end;
  padding-bottom: 12px;
}
.cover-deck p {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.cover-deck em { color: var(--c-gold); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--c-ink);
  padding-bottom: 4px;
}
.link-arrow:hover { gap: 18px; color: var(--c-gold); border-color: var(--c-gold); }

.cover-flag {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
  color: var(--c-mute);
}

@media (max-width: 900px) {
  .cover-art { grid-column: 1 / -1; }
  .cover-deck { grid-column: 1 / -1; padding: 0; }
  .cover-line.line-2 { margin-right: 0; }
  .cover-line.line-3 { margin-left: 0; }
}

/* ——— TICKER ——————————————————————————————————————————— */
.ticker {
  border-top: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  background: var(--c-cream);
  overflow: hidden;
  padding: 22px 0;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 38px);
  color: var(--c-mute);
  font-weight: 400;
  letter-spacing: 0.005em;
}
.ticker-track > span { padding-right: 1.5em; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ——— FEATURE ——————————————————————————————————————————— */
.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(20px, 2vw, 32px);
}
.feature-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: clamp(28px, 4vw, 64px);
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}
.feature-num {
  grid-column: 1; grid-row: 1 / span 3;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(80px, 11vw, 180px);
  line-height: 0.85;
  color: var(--c-gold);
  font-style: italic;
}
.feature-kicker { grid-column: 2; grid-row: 1; color: var(--c-mute); margin-bottom: 12px; }
.feature-h {
  grid-column: 2; grid-row: 2;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 0;
}
.feature-byline {
  grid-column: 2; grid-row: 3;
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--c-mute);
}
.feature-byline em { color: var(--c-ink); font-style: italic; font-family: var(--ff-display); font-size: 16px; }
.feature-byline .sep { opacity: 0.5; }

.feature-art-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px;
}
.feature-art-l, .feature-art-r { margin: 0; position: relative; overflow: hidden; }
.feature-art-l { aspect-ratio: 3 / 4; }
.feature-art-r { aspect-ratio: 16 / 11; align-self: end; }
.feature-art-l img, .feature-art-r img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}
.feature-art-r figcaption {
  position: absolute; left: 16px; bottom: 14px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.feature-body {
  grid-column: 3 / span 7;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  hanging-punctuation: first allow-end;
}
.feature-body p { margin: 0 0 1.2em; }
.feature-body em { color: var(--c-gold); }
.dropcap > span {
  float: left;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 6.4em;
  line-height: 0.85;
  padding: 0.06em 0.12em 0 0;
  margin: 0.04em 0.12em -0.08em 0;
  color: var(--c-gold);
  font-weight: 500;
}

.pullquote {
  margin: 32px 0;
  border-top: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  padding: 28px 0;
  text-align: center;
}
.pullquote p {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.pullquote .open, .pullquote .close { color: var(--c-gold); font-size: 1.2em; line-height: 0; }

.feature-art-full {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.feature-art-full img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.feature-art-full figcaption {
  position: absolute; left: 24px; bottom: 18px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

/* —— Chapter / section markers inside the feature —— */
.feature-chapter {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 24px;
  margin: clamp(48px, 6vw, 96px) 0 clamp(20px, 3vw, 40px);
  color: var(--c-mute);
  font-size: 12px !important;
  letter-spacing: 0.32em !important;
}
.feature-chapter span {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--c-gold);
  text-transform: none;
}
.feature-chapter::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

/* —— Horizontal scroll spread (pin-and-translate, native scroll) —— */
.feature-spread {
  grid-column: 1 / -1;
  width: 100vw;
  margin: clamp(56px, 8vw, 120px) calc(50% - 50vw);
  background: var(--c-cream);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  position: relative;
  /* Tall outer wrapper gives the inner sticky element room to translate.
     Updated dynamically by JS based on rail width. */
}
.feature-spread-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(24px, 3vw, 56px) 0;
}
.feature-spread-rail {
  display: flex;
  gap: clamp(40px, 4vw, 72px);
  padding: 0 clamp(40px, 8vw, 160px);
  align-items: center;
  max-height: 100%;
  will-change: transform;
  /* When JS isn't running / reduced-motion / fallback: native horizontal overflow */
}
.feature-spread-plate {
  max-height: 100%;
  overflow: hidden;
}
.feature-spread-plate.plate-text {
  overflow-y: auto;
  scrollbar-width: thin;
}
.feature-spread-plate .plate-art {
  flex: 1 1 auto;
  min-height: 0;
}
.feature-spread-plate .plate-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-spread-pin.fallback { align-items: center; }
.feature-spread-pin.fallback .feature-spread-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-left: clamp(40px, 8vw, 160px);
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.feature-spread-pin.fallback .feature-spread-rail::-webkit-scrollbar { display: none; }
.feature-spread-pin.fallback .feature-spread-plate { scroll-snap-align: center; }

.feature-spread-hint {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-mute);
  font-size: 10px !important;
  letter-spacing: 0.32em !important;
  pointer-events: none;
  display: flex; align-items: center; gap: 16px;
  opacity: 0.85;
  animation: spread-hint-pulse 3.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes spread-hint-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

.feature-spread-plate {
  flex: 0 0 clamp(280px, 36vw, 520px);
  display: flex; flex-direction: column; gap: 18px;
  background: var(--c-bg);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--c-line);
  position: relative;
  transition: border-color .4s ease;
}
.feature-spread-plate:hover { border-color: var(--c-gold); }
.plate-num {
  color: var(--c-gold);
  font-size: 11px !important;
  letter-spacing: 0.28em !important;
}
.plate-art { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.plate-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.feature-spread-plate:hover .plate-art img { transform: scale(1.04); }
.plate-caption {
  font-family: var(--ff-display);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.plate-caption .i-it { color: var(--c-gold); }

.feature-spread-plate.plate-quote {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
  flex: 0 0 clamp(280px, 32vw, 460px);
  justify-content: space-between;
}
.plate-quote .plate-num { color: var(--c-gold-soft); }
.plate-quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}
.plate-quote blockquote em { font-style: normal; color: var(--c-gold-soft); }
.plate-quote blockquote footer {
  margin-top: 24px;
  color: rgba(255,255,255,0.6);
  font-style: normal;
}
.plate-quote .plate-caption { color: rgba(255,255,255,0.7); }

.feature-spread-plate.plate-text {
  flex: 0 0 clamp(280px, 32vw, 460px);
  justify-content: flex-start;
}
.plate-h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.012em;
}
.plate-h em { color: var(--c-gold); font-style: italic; }
.plate-text p {
  font-family: var(--ff-display);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  margin: 0;
  letter-spacing: -0.005em;
}

.feature-spread-progress {
  position: absolute;
  bottom: 36px;
  left: clamp(40px, 8vw, 160px);
  right: clamp(40px, 8vw, 160px);
  height: 1px;
  background: var(--c-line);
  z-index: 3;
}
.feature-spread-progress-bar {
  height: 1px;
  width: 0;
  background: var(--c-gold);
  transition: width .08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .feature-spread-progress-bar { transition: none; }
}

/* —— Practical list at the end of the feature —— */
.practical-intro {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--c-mute-ink, var(--c-mute));
  margin: 0 0 24px;
}
.practical-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.practical-list li {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
}
.practical-list li:last-child { border-bottom: 1px solid var(--c-line); padding-bottom: 16px; }
.practical-list strong {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  color: var(--c-gold);
  margin-right: 8px;
}

@media (max-width: 760px) {
  .feature-spread-rail { padding: 0 24px; gap: 24px; scroll-padding-left: 24px; }
  .feature-spread-plate { flex: 0 0 80vw; }
  .feature-spread-plate.plate-quote, .feature-spread-plate.plate-text { flex: 0 0 80vw; }
  .feature-chapter { font-size: 11px !important; gap: 14px; }
  .feature-chapter span { font-size: 22px; }
}

.feature-meta-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
}
.tag-row, .stops-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tag {
  border: 1px solid var(--c-ink);
  padding: 8px 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
}
.stops-list a {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 2px;
}
.stops-list a:hover { color: var(--c-gold); border-color: var(--c-gold); }

@media (max-width: 900px) {
  .feature-head { grid-template-columns: 1fr; }
  .feature-num { grid-row: auto; font-size: 80px; }
  .feature-h { grid-column: 1; }
  .feature-byline { grid-column: 1; }
  .feature-art-row { grid-template-columns: 1fr; }
  .feature-art-r { align-self: auto; }
  .feature-body { grid-column: 1 / -1; font-size: 18px; }
  .feature-meta-row { grid-template-columns: 1fr; }
}

/* ——— LETTER ——————————————————————————————————————————— */
.letter {
  background: var(--c-cream);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: clamp(60px, 8vw, 120px) var(--gutter);
}
.letter-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.letter-mark { color: var(--c-mute); margin-bottom: 28px; }
.letter-body {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.008em;
  margin: 0 0 36px;
}
.letter-body em { color: var(--c-gold); font-style: italic; }
.letter-body a { border-bottom: 1px solid var(--c-gold); padding-bottom: 1px; }
.letter-body a:hover { color: var(--c-gold); }
.letter-sig { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--c-ink); padding-top: 18px; }
.letter-sig .serif-it { font-size: 22px; }

/* ——— ARCHIVE ——————————————————————————————————————————— */
.archive {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(140px, 18vw, 280px) var(--gutter);
}
.archive-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 32px;
  border-bottom: 1px solid var(--c-ink);
  padding-bottom: 48px;
  margin-bottom: clamp(120px, 14vw, 200px);
}
.archive-h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.015em;
}
.archive-h em { color: var(--c-gold); font-style: italic; }

.archive-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(140px, 18vw, 260px) clamp(72px, 8vw, 140px);
  counter-reset: dispatch;
}
.dispatch {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  gap: 32px;
  cursor: pointer;
}
/* Extra breathing room between the cover image and the editorial copy */
.dispatch figure { margin-bottom: 36px !important; }
/* Editorial pause below each numbered title before the excerpt */
.dispatch .dispatch-h { margin-bottom: 12px; }
/* Asymmetric editorial spans */
.dispatch:nth-child(1) { grid-column: span 7; }
.dispatch:nth-child(2) { grid-column: span 5; }
.dispatch:nth-child(3) { grid-column: span 5; }
.dispatch:nth-child(4) { grid-column: span 7; }
.dispatch:nth-child(5) { grid-column: span 6; }
.dispatch:nth-child(6) { grid-column: span 6; }

.dispatch figure { order: 1; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.dispatch:nth-child(1) figure,
.dispatch:nth-child(4) figure { aspect-ratio: 16 / 9; }
.dispatch figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.dispatch:hover figure img { transform: scale(1.03); filter: saturate(0.92) contrast(1.06); }

.dispatch-num { order: 2; font-family: var(--ff-display); font-weight: 400; font-style: italic; font-size: 22px; color: var(--c-gold); border-bottom: 1px solid var(--c-line); padding-bottom: 8px; }
.dispatch-cat { order: 3; color: var(--c-mute); }
.dispatch-h {
  order: 4;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  transition: color .25s ease;
}
.dispatch-h em { color: var(--c-gold); font-style: italic; }
.dispatch:hover .dispatch-h { color: var(--c-gold); }
.dispatch p { order: 5; font-size: 15px; line-height: 1.55; color: var(--c-mute); margin: 0; max-width: 52ch; }
.dispatch-meta { order: 6; display: flex; gap: 10px; font-size: 12px; color: var(--c-mute); }
.dispatch-cover { display: block; order: 1; color: inherit; }
.dispatch-cover figure { margin: 0; }
.dispatch-title-link { color: inherit; transition: color .25s ease; }
.dispatch-title-link:hover { color: var(--c-gold); }
.dispatch-tier { cursor: pointer; }
.dispatch-tier:hover { background: var(--c-gold); color: #fff !important; }

/* —— Source badge on the cover photo —— */
.dispatch figure { position: relative; }
.dispatch-source {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--c-ink);
  padding: 6px 12px;
  font-size: 9px !important;
  letter-spacing: 0.22em !important;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .25s ease, color .25s ease;
}
.dispatch:hover .dispatch-source { background: var(--c-gold); color: #fff; }

/* —— Influencer byline —— */
.dispatch-byline {
  order: 5;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.dispatch-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-cream);
}
.dispatch-byline-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.dispatch-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  display: inline-flex; align-items: center; gap: 6px;
}
.dot-verified {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-gold);
  display: inline-block;
  position: relative;
}
.dot-verified::after {
  content: ""; position: absolute; left: 3px; top: 4px; width: 4px; height: 2px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.dispatch-handle {
  color: var(--c-mute);
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: none !important;
}
.dispatch-tier {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
  padding: 4px 8px;
  white-space: nowrap;
}
.dispatch p { order: 4.5; }
.dispatch-meta { order: 7; }
.dispatch p, .dispatch .dispatch-meta { order: unset; }
/* Ensure logical order: figure > num > cat > title > excerpt > byline > meta */
.dispatch p { order: 5 !important; }
.dispatch-byline { order: 6 !important; }
.dispatch-meta { order: 7 !important; }

/* —— Skeleton & error states —— */
.dispatch-skeleton {
  grid-column: span 6 !important;
  pointer-events: none;
}
.dispatch-skeleton figure { aspect-ratio: 4 / 3; background: var(--c-cream); }
.skeleton-img { width: 100%; height: 100%; background: linear-gradient(90deg, var(--c-cream) 0%, var(--c-line) 50%, var(--c-cream) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton-line { height: 14px; background: var(--c-cream); margin-top: 10px; }
.skeleton-line.short { width: 60%; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: -200% 0; } }
.dispatch-error {
  grid-column: 1 / -1 !important;
  text-align: center;
  color: var(--c-mute);
  padding: 60px 24px;
  border: 1px dashed var(--c-line);
  font-size: 12px !important;
  letter-spacing: 0.18em !important;
}
.dispatch-error a { color: var(--c-gold); border-bottom: 1px solid var(--c-gold); }

@media (max-width: 900px) {
  .archive-head { grid-template-columns: 1fr; }
  .archive-list .dispatch { grid-column: 1 / -1 !important; }
}

/* ——— SUBSCRIBE ——————————————————————————————————————————— */
.subscribe {
  background: var(--c-ink);
  color: #fff;
  padding: clamp(80px, 10vw, 160px) var(--gutter);
}
.subscribe-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.subscribe .dim { color: rgba(255,255,255,0.55); }
.subscribe-h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 18px 0 24px;
}
.subscribe-h em { color: var(--c-gold-soft); font-style: italic; }
.subscribe p {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 32px;
}
.subscribe-form {
  display: flex; gap: 0;
  max-width: 520px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255,255,255,0.5);
}
.subscribe-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form button {
  background: var(--c-gold);
  color: #fff;
  border: 0;
  padding: 0 28px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s ease;
}
.subscribe-form button:hover:not(:disabled) { background: var(--c-gold-soft); }
.subscribe-form button:disabled { background: rgba(255,255,255,0.15); cursor: default; }
.subscribe-note { margin-top: 12px; }
@media (max-width: 540px) {
  .subscribe-form { flex-direction: column; }
}

/* ——— FOOTER ——————————————————————————————————————————— */
.foot {
  background: var(--c-bg);
  padding: 48px var(--gutter) 32px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.foot-mark { display: inline-flex; align-items: center; gap: 12px; }
.foot-logo { height: 26px; width: auto; display: block; }
.foot-mark .dim { font-family: var(--ff-display); font-style: italic; font-weight: 500; font-size: 16px; color: var(--c-mute); }
.foot-nav { display: flex; gap: 22px; }
.foot-nav a { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-mute); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.foot-nav a:hover { color: var(--c-gold); border-color: var(--c-gold); }
.foot-nav a[aria-current="page"] { color: var(--c-ink); border-color: var(--c-ink); }
.foot-tiny { color: var(--c-mute); flex-basis: 100%; text-align: center; margin-top: 16px; }

/* ——— CUSTOM CURSOR ——————————————————————————————————————— */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, .dispatch, [role="button"] { cursor: none; }
  .cursor, .cursor-dot {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    will-change: transform;
    mix-blend-mode: difference;
  }
  .cursor {
    width: 36px; height: 36px;
    border: 1px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .2s ease, height .2s ease, background-color .2s ease, border-color .2s ease;
  }
  .cursor-dot {
    width: 4px; height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor.hover { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-color: var(--c-gold); }
}
@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
}
