#viewer { color-scheme: dark; }
.editorial-reader {
  --reader-paper: #f8f6ee;
  --reader-ink: #24291f;
  --reader-muted: #535b4b;
  --reader-line: #d7d8ca;
  background: var(--reader-paper);
  color: var(--reader-ink);
}
.editorial-reader .article-page {
  max-width: 85rem;
  width: min(92%, 85rem);
  margin-inline: auto;
}
.editorial-reader .article-header { width: min(100%, 52rem); max-width: none; margin: clamp(2rem, 6vw, 6rem) auto clamp(2.5rem, 6vw, 5rem); padding: 0; }
.editorial-reader .article-header h1 {
  max-width: 16ch;
  font: 400 clamp(2.85rem, 7.6vw, 8rem)/.94 Georgia, serif;
  letter-spacing: -.068em;
  color: var(--reader-ink);
  overflow-wrap: anywhere;
}
.editorial-reader .article-subtitle { max-width: 34ch; font: 400 clamp(1.22rem, 2.3vw, 1.65rem)/1.42 Georgia, serif; color: var(--reader-muted); }
.editorial-reader .article-byline { color: var(--reader-muted); }
.editorial-reader .size {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--reader-line);
  border-radius: 50%;
  font: inherit;
  background: transparent;
  color: var(--reader-ink);
  margin-top: 1.2rem;
  cursor: pointer;
}
.editorial-reader .size[aria-pressed="true"] { color: white; background: #465b37; }
.editorial-reader .editorial-cover { width: min(100%, 68rem); margin: 0 auto clamp(2.8rem, 6vw, 6rem); }
.editorial-reader .editorial-cover img { display: block; width: 100%; aspect-ratio: 2.05; object-fit: cover; object-position: center; }
.editorial-reader .editorial-cover figcaption, .editorial-reader .article-body figcaption {
  margin-top: .55rem;
  color: var(--reader-muted);
  font: 400 .85rem/1.5 system-ui, sans-serif;
}
.editorial-reader .article-body {
  max-width: none;
  width: min(100%, 41rem);
  margin-inline: auto;
  color: var(--reader-ink);
  font: 400 clamp(1.14rem, 2vw, 1.34rem)/1.72 Georgia, serif;
}
body:has(.size[aria-pressed="true"]) .editorial-reader .article-body { font-size: clamp(1.36rem, 2.5vw, 1.64rem); }
.editorial-reader .article-body h2 { font: 400 1.65em/1.13 Georgia, serif; letter-spacing: -.035em; margin-block: 1.45em .55em; }
.editorial-reader .article-body p { margin-block: 0 1.2em; }
.editorial-reader .article-body a { color: #315e4b; text-decoration-color: #98b6a4; text-underline-offset: .18em; }
.editorial-reader .article-body h3 { font: 600 1.2em/1.25 system-ui, sans-serif; letter-spacing: -.025em; margin-block: 1.8em .55em; }
.editorial-reader .article-body blockquote { margin: 2.2em 0; padding: .15em 0 .15em 1.25em; border-left: 3px solid #72947d; color: #405546; font-style: italic; }
.editorial-reader .article-body li { padding-left: .2em; margin-block: .35em; }
.editorial-reader .article-body figure:has(> img) { margin: clamp(2.5rem, 6vw, 4.5rem) 0; }
.editorial-reader .article-body figure > img { display: block; margin: 0; width: 100%; max-width: 100%; height: auto; border-radius: .35rem; }
.editorial-reader .article-body figure figcaption { max-width: 60ch; padding-top: .25rem; }
.editorial-reader .article-body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font: 400 .85em/1.5 system-ui, sans-serif; }
.editorial-reader .article-body th, .editorial-reader .article-body td { padding: .7em .9em; text-align: left; border-bottom: 1px solid var(--reader-line); }
.editorial-reader .article-body th { color: var(--reader-ink); background: #ecefe8; }
.editorial-reader .editorial-explore {
  display: inline-block;
  padding: .46rem .8rem;
  border-radius: 2rem;
  border: 1px solid var(--reader-line);
  background: var(--reader-paper);
  color: var(--reader-ink);
  font: 650 .82rem/1.3 system-ui, sans-serif;
  margin-top: .65rem;
  cursor: pointer;
}
.editorial-reader button:focus-visible, #viewer button:focus-visible, #viewer [tabindex]:focus-visible { outline: 3px solid #bb762d; outline-offset: 3px; }
.editorial-reader .article-footer { margin-inline: auto; width: min(100%, 41rem); }
@media (min-width: 960px) {
  .editorial-reader .editorial-has-cover:has(.cover-editorial) { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: 4.5vw; align-items: center; }
  .editorial-reader .editorial-has-cover:has(.cover-editorial) > :nth-child(n+3) { grid-column: 1/-1; }
  .editorial-reader .editorial-has-cover:has(.cover-editorial) .editorial-cover { margin-block: 2.8rem 5rem; }
  .editorial-reader .editorial-has-cover:has(.cover-editorial) .editorial-cover img { aspect-ratio: 1.2; }
}
@media (max-width: 600px) {
  .editorial-reader .editorial-cover img { aspect-ratio: 1.25; }
}

#viewer { border: 0; color: #f6f5eb; background: #22251f; margin: auto; padding: 0; width: min(96vw, 78rem); max-width: none; max-height: 94dvh; border-radius: .45rem; }
#viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#viewer::backdrop { background: rgb(18 21 15 / .83); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .65rem 1rem; }
.viewer-bar h2 { margin: 0; font: 400 1.2rem var(--serif); }
.viewer-actions { display: flex; gap: .4rem; }
.viewer-actions button, #pin { color: inherit; background: #363e30; border: 1px solid #828b76; padding: .42rem .65rem; border-radius: .25rem; min-width: 2.1rem; }
.viewer-actions button:disabled { opacity: .5; cursor: default; }
.viewer-scroll { overflow: auto; min-height: 0; background: #181b17; }
.viewer-stage { position: relative; width: var(--photo-width, 90%); margin-inline: auto; }
.viewer-stage img { display: block; width: 100%; height: auto; }
#pin { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: #fff6dd; color: #262a1f; font-weight: 750; }
.viewer-caption { padding: .7rem 1rem; font-size: .82rem; line-height: 1.45; }
.viewer-caption p { margin: 0; }
#viewer-note { margin-top: .5rem; color: #f9e3af; }

#viewer [hidden] { display: none !important; }
