.editorial {
  --parchment: #f3e9d8;
  --paper-line: #cbb89a;
  --ink: #32251c;
  --ink-muted: #5c4838;
  --earth: #77392a;
}

.editorial h1 {
  font: 400 clamp(3.4rem, 8vw, 7rem) / .95 var(--serif);
  text-wrap: balance;
}

.editorial-mast {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.35rem, 5vw, 4rem);
  background: radial-gradient(ellipse at top center, #303528, #171b13 74%);
  border-bottom: 1px solid #806946;
}

.editorial-heading { text-align: center; }
.editorial-heading > p {
  margin-top: .8rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.26rem);
  line-height: 1.5;
}

.editorial-nav {
  justify-content: center;
  flex-wrap: wrap;
  gap: .15rem clamp(1.1rem, 3vw, 2.4rem);
  width: fit-content;
  margin: 1.35rem auto 0;
  border-block: 1px solid #796644;
}

.editorial-nav a { padding: .65rem .18rem; color: var(--gold); }
.editorial-meta {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .085em;
  line-height: 1.45;
  text-transform: uppercase;
}

.editorial-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 5vw, 4.8rem);
  align-items: center;
  margin: clamp(1.9rem, 4.5vw, 3.6rem) 0 0;
}

.editorial-figure img {
  width: 100%;
  border: 1px solid #927852;
  border-radius: .42rem;
}

.editorial-feature .editorial-figure img { box-shadow: 0 .9rem 2.6rem #0a0d0866; }
.editorial-figure figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.48;
}

.feature-copy .editorial-meta { color: var(--gold); }
.feature-copy h2 { margin-top: .55rem; font-size: clamp(2.9rem, 5vw, 4.85rem); }
.feature-copy > p + h2 + p { max-width: 37ch; margin-top: .85rem; color: var(--muted); line-height: 1.6; }
.feature-copy a { margin-top: 1.4rem; }

.editorial-paper { color-scheme: light; background: var(--parchment); color: var(--ink); }
.editorial-paper :focus-visible { outline-color: var(--earth); }
.editorial-paper :is(h1, h2, h3, h4) { color: var(--ink); }
.editorial-paper h3 { font-size: clamp(1.8rem, 3vw, 2.25rem); }
.editorial-paper a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
.editorial-paper a:hover { color: var(--earth); }
.editorial-paper .editorial-meta, .editorial-paper .editorial-figure figcaption { color: var(--ink-muted); }

.editorial-intro {
  max-width: 62ch;
  margin-inline: auto;
  padding-block: clamp(2.3rem, 5vw, 3.85rem);
  font: 1.13rem / 1.68 Georgia, serif;
}

.editorial-intro p + p { margin-top: .85rem; }
.editorial-section {
  padding-block: clamp(1.75rem, 5vw, 3.6rem);
  scroll-margin-block-start: 1rem;
}

.editorial-intro + .editorial-section { border-top: 1px solid var(--paper-line); }
.story-filters { display: flex; flex-wrap: wrap; gap: .46rem; margin: 1.15rem 0 1.45rem; }
.story-filters [aria-pressed="true"] {
  border-color: #2a3527;
  background: #2a3527;
  color: #f9ebcf;
}

.story-filters button {
  min-height: 2.65rem;
  padding: .48rem .9rem;
  border: 1px solid #a38b68;
  border-radius: 2rem;
  background: #fbf4e7;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.story-filters button:hover { border-color: var(--earth); }
.editorial [hidden] { display: none !important; }
.editorial-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.story-grid, .timeline, .chronicle-links, .related ul { list-style: none; padding: 0; }
.story-grid, .profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 3vw, 1.55rem);
  margin: 1.35rem 0 0;
}

.story-card {
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: .55rem;
  background: #fcf5e8;
}

.story-card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-card-copy { padding: clamp(.95rem, 2.6vw, 1.35rem); }
.story-card-copy h3 { margin: .36rem 0 .5rem; }
.story-card-copy h3 + p { color: var(--ink-muted); line-height: 1.55; }

.editorial-chronicles { background: #eae0cd; border-block: 1px solid var(--paper-line); }
.timeline-title { margin-top: 1.35rem; }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.5rem 0 1.7rem;
}

.timeline li { position: relative; border-top: 1px solid #8d694e; padding: 1.1rem .85rem 0 0; }
.timeline li::before {
  position: absolute;
  inset: -.3rem auto auto 0;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--earth);
  content: "";
}

.timeline li:last-child { border-color: transparent; }
.timeline h4 { margin: 0 0 .42rem; font: 400 1.53rem / 1.15 var(--serif); }
.timeline p { color: var(--ink-muted); font-size: .95rem; line-height: 1.57; }
.chronicle-links { columns: 2; column-gap: 1.6rem; margin: 0; }
.chronicle-links li { break-inside: avoid; border-top: 1px solid #b8a083; }
.chronicle-links a { display: inline-block; padding-block: .65rem; font-weight: 650; }

.profile { min-width: 0; border-top: 1px solid #a78d66; padding-top: 1.05rem; scroll-margin-top: 1rem; }
.profile-illustrated { padding: 0; border: 1px solid var(--paper-line); border-radius: .55rem; background: #fcf5e8; }
.profile-art { overflow: hidden; aspect-ratio: 1.34; border-radius: .51rem .51rem 0 0; }
.profile-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 11%; }
.profile-illustrated .profile-copy { padding: 1.05rem; }
.profile h3 { margin: .3rem 0 .6rem; }
.profile-prose { color: var(--ink-muted); line-height: 1.62; }
.profile-prose p + p { margin-top: .65rem; }
.related { margin-top: 1.2rem; }
.related > p { margin-bottom: .4rem; font-weight: 650; }
.related ul { margin: 0; }
.related li + li { margin-top: .32rem; }
.related a { line-height: 1.5; }

.reading-page { padding-block: clamp(1.9rem, 4.5vw, 4.1rem) clamp(2.5rem, 7vw, 6rem); }
.editorial-column { width: min(100% - 2.5rem, 70ch); margin-inline: auto; }
.reader-header > a { display: inline-block; margin-bottom: 1.25rem; }
.back-link { color: var(--earth); font-weight: 650; }
.reader-header .editorial-meta { margin-bottom: .55rem; }
.reader-header h1 { font-size: clamp(2.95rem, 6vw, 5.35rem); }
.reader-art { width: min(100% - 2.5rem, 54rem); margin: 1.55rem auto; }
.reader-art figcaption { max-width: 70ch; }
.reading-body {
  max-width: 60ch;
  margin-top: 1.75rem;
  font: clamp(1.05rem, 2.1vw, 1.22rem) / 1.72 Georgia, serif;
}
.reading-body p + p { margin-top: .95em; }
.reading-body blockquote {
  margin: 1.1em 0;
  padding: .6em 1em;
  border-left: 3px solid #a17c52;
  background: #eadeca;
}

.reading-body .testimony + .testimony { margin-top: 1.55em; }
.testimony { scroll-margin-top: 1rem; }
.testimony h2 { margin-bottom: .45em; font-size: 2.15rem; }
.testimony-nav { flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1.2rem; }
.testimony-nav a { color: var(--earth); }
.reader-document summary {
  width: fit-content;
  padding: .55rem .7rem .55rem 0;
  color: var(--earth);
  cursor: pointer;
  font-weight: 650;
}
.reader-document[open] .editorial-figure { margin-top: .4rem; }
.reader-end { margin-top: 2.05rem; padding-top: .5rem; border-top: 1px solid var(--paper-line); }
.reader-end .back-link { display: inline-block; margin-top: .9rem; }

@media (max-width: 62rem) {
  .timeline { display: block; margin-left: .3rem; }
  .timeline li { border: 0; border-left: 1px solid #8d694e; padding: .15rem 0 1.15rem 1rem; }
  .timeline li::before { inset: .35rem auto auto -.3rem; }
}

@media (max-width: 48rem) {
  .story-grid, .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-feature { grid-template-columns: minmax(0, 1fr); }
  .editorial-feature img { object-fit: contain; }
}

@media (max-width: 33rem) {
  .story-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .chronicle-links { columns: auto; }
  .editorial-column, .reader-art { width: calc(100% - 2rem); }
}
