/* Editorial pages inherit the homepage palette, typography and theme switch. */
.editorial {
  padding-block: calc(var(--header-height) + clamp(2.25rem, 6vw, 5.25rem))
    clamp(4rem, 8vw, 8rem);
  color: var(--foreground);
}
.editorial .ed-hero {
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--border);
}
.editorial h1,
.editorial h2,
.editorial h3 {
  font-family: var(--font-instrument-serif);
  font-weight: 400;
  text-wrap: balance;
}
.editorial h1 {
  max-width: 22ch;
  margin: 0.22em 0;
  font-size: clamp(2.65rem, 5.1vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.editorial .ed-kicker,
.editorial .ed-byline {
  color: var(--muted-foreground);
  font-family: var(--font-geist-mono);
  font-size: 0.875rem;
  line-height: 1.55;
}
.editorial .ed-kicker {
  letter-spacing: 0.045em;
}
.editorial .ed-deck {
  max-width: 55ch;
  margin-top: 1.1rem;
  font: 400 clamp(1.14rem, 1.7vw, 1.35rem)/1.52 var(--font-dm-sans);
}
.editorial .ed-byline {
  margin-top: 1.4rem;
}
.editorial a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.editorial a:hover {
  text-decoration-thickness: 2px;
}
.editorial a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.ed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 5rem);
}
.ed-card {
  min-width: 0;
  padding-block: clamp(1.65rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.ed-card h2,
.ed-card h3 {
  max-width: 25ch;
  margin-block: 0.25em;
  font-size: clamp(1.95rem, 3.65vw, 3.25rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
}
.ed-card h2 a,
.ed-card h3 a {
  text-decoration: none;
}
.ed-card :is(h2, h3) a:hover {
  text-decoration: underline;
}
.ed-card p {
  max-width: 55ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.ed-card img {
  width: 100%;
  height: auto;
}
.ed-body,
.ed-end {
  width: min(100%, 46rem);
  margin-inline: auto;
  overflow-wrap: break-word;
}
.ed-body {
  padding-top: clamp(1.35rem, 3.5vw, 2.5rem);
}
.ed-body h2,
.ed-end h2 {
  margin: 1.05em 0 0.36em;
  font-size: clamp(1.8rem, 2.85vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.ed-body h3 {
  margin: 1.15em 0 0.3em;
  font-size: 1.85rem;
  line-height: 1.17;
}
.ed-body p,
.ed-body li,
.ed-end p {
  margin-block: 0.85em;
  font-size: clamp(1.06rem, 1.65vw, 1.18rem);
  line-height: 1.72;
}
.ed-body ul {
  padding-left: 1.25em;
  list-style: disc;
}
/* Align the article opening with the text column. The library keeps its broad grid. */
.editorial article.container > .ed-hero {
  width: min(100%, 46rem);
  margin-inline: auto;
}
.ed-body > section > p,
.ed-body > p,
.ed-body .ed-decision p {
  max-width: 65ch;
  text-wrap: pretty;
}
.ed-body > section + section { margin-top: 2.4rem; }
.editorial .ed-meta .ed-byline {
  font: 500 .98rem/1.5 var(--font-dm-sans);
  color: var(--foreground);
}
.ed-body .ed-case-note {
  margin: 0 0 1.4rem;
  color: var(--muted-foreground);
  font: 500 .88rem/1.5 var(--font-dm-sans);
}
.ed-body > .ed-case-note + section > h2,
.ed-body > .ed-case-note + p { margin-top: 0; }
.ed-body .ed-author {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.4rem;
}
.ed-body .ed-author h2 {
  margin: 0;
  font: 600 1.05rem/1.4 var(--font-dm-sans);
}
.ed-body .ed-author p { max-width: 62ch; font-size: 1rem; }
.ed-figure {
  margin: 2.2rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: color-mix(in srgb, var(--foreground) 3%, var(--background));
}
.ed-figure :is(h2, h3) {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.ed-figure ol {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-figure li {
  position: relative;
  margin: 0;
  padding: 0.55rem 0 0.55rem 1.5rem;
  font: 400 1rem/1.55 var(--font-dm-sans);
}
.ed-figure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.11rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.ed-figure li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.23rem;
  top: 1.7rem;
  bottom: -1rem;
  border-left: 1px solid var(--accent);
}
.ed-figure li strong {
  display: block;
}
.ed-figure li p {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}
.ed-figure figcaption {
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ed-decision {
  margin-block: 2.25rem;
  padding-inline-start: clamp(1rem, 3vw, 2rem);
  border-left: 3px solid var(--accent);
}
.ed-end {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ed-end a {
  overflow-wrap: anywhere;
}
@media (max-width: 44rem) {
  .ed-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Index collections and the published lead story. */
.ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  align-items: baseline;
  margin-top: 1.25rem;
}
.ed-meta .ed-byline {
  margin: 0;
}
.ed-jump,
.ed-feature-link,
.ed-subjects a {
  font: 600 0.97rem/1.5 var(--font-dm-sans);
}
.ed-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin: 1.9rem 0;
  padding: clamp(1.3rem, 4.2vw, 3.8rem);
  background: #211f1d;
  color: #faf7f2;
  border: 1px solid #4b4035;
}
.ed-feature .ed-kicker,
.ed-feature-link {
  color: #dfbc90;
}
.ed-feature h2 {
  font-size: clamp(2.7rem, 5.1vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.25em 0;
}
.ed-feature h2 a {
  text-decoration: none;
}
.ed-feature h2 a:hover {
  text-decoration: underline;
}
.ed-feature p:not(.ed-kicker) {
  max-width: 50ch;
  font-size: 1.12rem;
  line-height: 1.6;
}
.ed-feature-link {
  display: inline-block;
  margin-top: 1.25rem;
}
.ed-preview {
  margin: 0;
  padding: 1.3rem clamp(0.8rem, 2vw, 1.8rem);
  border: 1px solid #5e4e3d;
  background: #2c2722;
}
.ed-preview figcaption {
  color: #e2c8a5;
  font: 500 0.9rem/1.5 var(--font-geist-mono);
}
.ed-preview dl {
  margin-top: 0.8rem;
}
.ed-preview dl > div {
  padding: 0.7rem 0 0.7rem 1.25rem;
  border-left: 1px solid #bd976a;
  position: relative;
}
.ed-preview dl > div + div {
  margin-top: 0.75rem;
}
.ed-preview dt {
  font-weight: 600;
  font-size: 1rem;
}
.ed-preview dt::before {
  content: "";
  position: absolute;
  left: -0.24rem;
  top: 1.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #dbaf7c;
}
.ed-preview dd {
  margin: 0.3rem 0 0;
  color: #d5c8b9;
  font-size: 1rem;
}
.ed-subjects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.65rem;
  padding: 0.75rem 0;
  border-block: 1px solid var(--border);
}
.ed-subjects a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.ed-collection,
.editorial figure[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.ed-collection {
  padding-top: clamp(2.4rem, 5vw, 4.3rem);
}
.ed-collection > h2 {
  font-size: clamp(2.25rem, 3.7vw, 3.6rem);
  letter-spacing: -0.027em;
  line-height: 1.13;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--accent);
}
.ed-card h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  max-width: 27ch;
}
.ed-card {
  padding-block: clamp(1rem, 2vw, 1.8rem);
}
.ed-library-note {
  max-width: 48rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem;
  margin: 3rem 0 1rem;
}
.ed-library-note h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.ed-library-note p {
  font-size: 1.08rem;
  line-height: 1.6;
  margin-block: 0.7rem;
}
.ed-inquiry a {
  display: inline-block;
  padding: 0.55rem 0;
  font-weight: 650;
}
@media (max-width: 48rem) {
  .ed-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .ed-preview dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .ed-preview dl > div + div {
    margin-top: 0;
  }
}
@media (max-width: 29rem) {
  .ed-subjects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.75rem;
  }
  .ed-preview {
    padding: 0.8rem;
  }
  .ed-preview dl > div {
    padding-left: 0.65rem;
  }
}
