/* Shared by the Fendir website reader and the Admin article preview. */
.article-reader {
  --article-title: #f2e6d0;
  --article-copy: #d3c4a9;
  --article-accent: #e5c27a;
  --article-border: rgba(199, 155, 82, .34);
  color: var(--article-title);
  font-family: Inter, "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
}

.article-reader-preview {
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--article-border);
  border-radius: 8px;
  background: radial-gradient(ellipse at top, #20190e, transparent 30rem), #0d0b08;
  overflow-wrap: anywhere;
}

.article-reader :is(h1, h2, h3, h4, h5, h6) {
  font-family: Cinzel, "Cormorant Garamond", Marcellus, Georgia, serif;
  letter-spacing: 0;
}

.article-reader-preview .article-title { margin: 8px 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.article-reader .article-preview-kind { margin: 0 0 12px; color: var(--article-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.article-reader .article-lead { margin: 0 0 18px; color: var(--article-copy); font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.article-reader .article-image { display: block; width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--article-border); border-radius: 8px; }
.article-reader-preview .article-image { margin-bottom: 20px; }
.article-reader .article-body { max-width: 72ch; margin: 28px auto 0; color: var(--article-copy); font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-reader .article-body > :first-child { margin-top: 0; }
.article-reader .article-body :is(p, ul, ol, blockquote, pre, table) { margin: 0 0 18px; }
.article-reader .article-body p { color: inherit; font-size: inherit; white-space: normal; }
.article-reader .article-body :is(h1, h2, h3, h4, h5, h6) { margin: 1.4em 0 .55em; color: var(--article-accent); line-height: 1.2; }
.article-reader .article-body :is(h1, h2) { font-size: clamp(24px, 3vw, 32px); }
.article-reader .article-body h3 { font-size: 22px; }
.article-reader .article-body :is(ul, ol) { padding-inline-start: 1.55em; }
.article-reader .article-body li > :is(ul, ol) { margin-block: .25em; }
.article-reader .article-body blockquote { padding: .35em 0 .35em 1em; border-inline-start: 3px solid var(--article-border); }
.article-reader .article-body blockquote > :last-child { margin-bottom: 0; }
.article-reader .article-body a { color: var(--article-accent); text-decoration: underline; text-underline-offset: .18em; }
.article-reader .article-body pre { max-width: 100%; padding: 12px; border-radius: 6px; background: rgba(0, 0, 0, .25); overflow: auto; }
.article-reader .article-body code { color: var(--article-title); font-size: .875em; }
.article-reader .article-body table { display: block; max-width: 100%; min-width: 0; border-collapse: collapse; overflow-x: auto; }
.article-reader .article-body :is(th, td) { padding: 6px 12px; border: 1px solid var(--article-border); color: inherit; background: transparent; }
.article-reader .article-body hr { margin: 1.25em 0; border: 0; border-top: 1px solid var(--article-border); }
.article-reader .article-figure { margin: 22px 0; }
.article-reader .article-body img { max-width: 100%; height: auto; border: 1px solid var(--article-border); border-radius: 8px; }
.article-reader .article-figure img { display: block; margin-inline: auto; }

.article-page.article-reader {
  --article-measure: 43rem;
  overflow-wrap: anywhere;
}

.article-page .article-heading,
.article-page > .back-link,
.article-page > .guide-related,
.article-page.article-reader .article-body {
  max-width: var(--article-measure);
  margin-inline: auto;
}

.article-page > .back-link {
  display: block;
  margin-bottom: 18px;
}

.article-page .article-heading :is(time, .eyebrow) { margin: 0 0 10px; }
.article-page .article-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(33px, 5vw, 58px);
  line-height: 1.08;
  text-wrap: balance;
}
.article-page.article-reader .article-lead { font-size: clamp(16px, 2vw, 20px); }

.article-page.article-reader .article-image {
  max-height: min(390px, 52svh);
  aspect-ratio: 16 / 9;
  margin-top: 20px;
}

@media (max-width: 760px) {
  .article-page.article-reader .article-body { font-size: 16px; line-height: 1.7; }
}
