@font-face {
  font-family: 'DM Sans';
  src: url('/assets/font-0.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/font-2.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif';
  src: url('/assets/font-5.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4efe7;
  --ink: #281f25;
  --wine: #702c3d;
  --muted: #5f5358;
  --rule: #c2b4ae;
  --serif: 'DM Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-padding-block-start: 1.25rem; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--wine); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }

.section-shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.masthead-line,
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.masthead-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.masthead-line span:last-child { color: var(--wine); text-align: right; }

.wordmark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 0 1.25rem;
  border-bottom: 2px solid var(--ink);
  font: 400 clamp(6.2rem, 12vw, 11rem) / 0.88 var(--serif);
  letter-spacing: -0.067em;
}

.endorsement {
  margin-top: 0.75rem;
  font: 600 clamp(0.61rem, 1.15vw, 0.9rem) / 1.18 var(--sans);
  letter-spacing: 0.09em;
}

.masthead nav {
  display: flex;
  justify-content: center;
  gap: 2.75rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  font-weight: 600;
}

.masthead nav a, .contents-card a, .cover-caption a, .next-story a { text-decoration: none; }

.opening {
  display: grid;
  grid-template-columns: minmax(0, 0.73fr) minmax(0, 1.27fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.opening h1 {
  max-width: 11ch;
  font: 400 clamp(3.25rem, 6vw, 6.5rem) / 0.98 var(--serif);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.issue-dek {
  max-width: 35ch;
  margin-block-start: 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 600;
}

figcaption {
  padding-block-start: 0.44rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.cover-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.75rem;
  padding-top: 0.7rem;
}

.cover-caption a { font: 400 clamp(1.08rem, 2vw, 1.55rem) / 1.2 var(--serif); }
.cover-caption .eyebrow { color: var(--wine); flex-shrink: 0; }
.cover-caption a span { font: 400 0.85em var(--sans); }

.contents { border-top: 2px solid var(--ink); padding-block: 2rem 4.5rem; }

.contents h2, .letter-copy h2 {
  margin-bottom: 1.45rem;
  font: 400 clamp(2.25rem, 4.4vw, 4.1rem) / 1.05 var(--serif);
  letter-spacing: -0.025em;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6rem clamp(1.2rem, 2.5vw, 2.4rem);
}

.contents-image img { aspect-ratio: 3 / 2; object-fit: contain; background: var(--ink); }

.contents-card .eyebrow {
  border-top: 1px solid var(--rule);
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  color: var(--wine);
}

.contents-card h3 {
  margin-top: 0.35rem;
  font: 400 clamp(1.34rem, 2.2vw, 1.85rem) / 1.12 var(--serif);
  letter-spacing: -0.014em;
}

.contents-dek { margin-top: 0.65rem; color: var(--muted); font-size: 0.88rem; }
.contents-writer { margin-top: 0.7rem; font-size: 0.76rem; font-weight: 600; }

.editor-letter {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.9fr);
  gap: 2rem;
  margin-block-end: 4.75rem;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: var(--ink);
  color: var(--paper);
}

.editor-letter > .eyebrow { color: #e5b0bc; }
.letter-copy p { max-width: 65ch; margin-top: 1.05rem; }
.letter-copy .letter-signature { margin-top: 1.6rem; color: #e5b0bc; font-weight: 600; }

.feature {
  border-top: 2px solid var(--ink);
  margin-block-end: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(1.5rem, 4vw, 3.4rem);
}

.feature-header, .feature-image { width: min(100%, 1110px); margin-inline: auto; }
.feature-header .eyebrow { color: var(--wine); }

.feature h2 {
  margin-top: 0.55rem;
  font: 400 clamp(2.7rem, 5.4vw, 5.3rem) / 1 var(--serif);
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.feature-dek { max-width: 58ch; margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-block: 1.15rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.byline span:last-child { color: var(--muted); font-weight: 400; }
.feature-image { margin-block-end: 2rem; }
.story-copy { max-width: 69ch; margin-inline: auto; }

.story-disclosure {
  border-left: 2px solid var(--wine);
  margin-bottom: 1.7rem;
  padding-left: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.story-body p { font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.82; }
.story-body p + p { margin-top: 1.1rem; }
.story-body h3 { margin-block: 1.75rem 0.6rem; font: 400 1.9rem / 1.12 var(--serif); }

.story-body > p:first-child::first-letter {
  float: left;
  margin: 0.075em 0.13em 0 0;
  color: var(--wine);
  font: 400 3.7rem / 0.86 var(--serif);
}

.sources, .next-story { border-top: 1px solid var(--rule); margin-top: 1.75rem; padding-top: 1rem; }
.sources h3, .next-story span { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; }
.sources ol { margin-block: 0.7rem 0; padding-inline-start: 1.45rem; }
.sources li + li { margin-top: 0.65rem; }
.sources span, .sources p { display: block; color: var(--muted); font-size: 0.85rem; }
.sources a { overflow-wrap: anywhere; }

.next-story {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.1rem;
}

.next-story a { font: 400 1.55rem / 1.15 var(--serif); }
.next-story span { display: block; margin-bottom: 0.32rem; font-family: var(--sans); color: var(--wine); }
.next-story b { font: 400 0.8em var(--sans); }
.next-story .back-link { flex-shrink: 0; font: 600 0.82rem / 1.4 var(--sans); text-decoration: underline; }

footer { border-top: 2px solid var(--ink); padding-block: 1.6rem; }
.footer-brand { font: 400 3.6rem / 1 var(--serif); letter-spacing: -0.05em; }
.footer-brand span { font: 600 0.72rem var(--sans); letter-spacing: 0.04em; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 0.9rem; font-size: 0.8rem; }

@media (max-width: 960px) {
  .section-shell { width: calc(100% - 64px); }
  .contents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .section-shell { width: calc(100% - 36px); }
  .masthead nav { justify-content: space-between; gap: 0.9rem; font-size: 0.78rem; }
  .opening { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .opening h1 { max-width: 16ch; text-wrap: initial; }
  .issue-dek { margin-top: 0.9rem; }
  .text-link { margin-top: 0.95rem; }
  .contents { padding-block: 1.6rem 2.8rem; }
  .contents-grid { gap: 1.7rem 1rem; }
  .contents-dek { font-size: 0.82rem; }
  .editor-letter { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-bottom: 2.8rem; }
  .feature-dek { font-size: 1rem; }
  .next-story { align-items: start; flex-direction: column; }
}

@media print {
  :root { --paper: white; --ink: black; --wine: black; }
  .section-shell { width: 100%; }
  .masthead nav, .text-link, .next-story, .footer-bottom a { display: none; }
  .editor-letter { color: black; background: white; border: 1px solid black; }
  .editor-letter > .eyebrow, .letter-copy .letter-signature { color: black; }
  .feature { break-before: page; }
  figure, .feature-header, .contents-card { break-inside: avoid; }
  .feature-image img { max-height: 6in; object-fit: contain; }
}

.masthead nav, .footer-bottom { flex-wrap: wrap; }
.footer-bottom { gap: 0.75rem 1.5rem; }
