:root {
  --reading-paper: #fbf8f1;
  --reading-ink: #16382f;
  --reading-forest: #10362d;
  --reading-gold: #f0c693;
}

body { background: var(--reading-paper); }
.footer-inner { flex-wrap: wrap; }
.brand .brand-sub { color: #40594f; font-weight: 700; }
.article-photo { margin: 1.65rem auto 0; padding: 0; }
.article-photo img, .standalone-photo img { border-radius: .7rem; }
.article-photo img { width: 100%; height: clamp(12rem, 34vw, 25rem); object-fit: cover; display: block; }
.article-photo figcaption { margin: .55rem 0; color: #40594f; font: 400 .875rem/1.5 "DM Sans", sans-serif; }
.standalone-intro .eyebrow { color: #3c6656; }
.standalone-intro h1 { color: var(--reading-ink); }

@media screen {
  .hero:has(.dek) { background: var(--reading-forest); color: var(--reading-paper); }
  .hero:has(.dek) .eyebrow { color: var(--reading-gold); }
  .hero:has(.dek) .crumb, .hero:has(.dek) .crumb a, .hero:has(.dek) .dek { color: #dbe5dc; }
  .hero:has(.dek) .hero-accent { display: none; }
  .toc-title { color: #476458; }
  .related-grid a { border-radius: .55rem; }
}

.guide-referral, .standalone .referral {
  background: var(--reading-forest);
  color: var(--reading-paper);
  border-radius: .7rem;
}
.guide-referral { margin: 2.2rem 0; padding: clamp(1.3rem, 3vw, 2.15rem); }
.guide-referral h2 { color: inherit; font: 400 clamp(1.75rem, 4vw, 2.5rem)/1.13 "DM Serif Text", Georgia, serif; margin: .3rem 0 .7rem; }
.guide-referral .eyebrow, .standalone .referral .eyebrow { color: var(--reading-gold); }
.guide-referral .eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .07em; }
.guide-referral p { color: #dbe5dc; font-size: 1rem; line-height: 1.6; }
.guide-referral .primary, .standalone .referral .primary {
  background: var(--reading-gold);
  border-color: var(--reading-gold);
  border-radius: .4rem;
  color: var(--reading-ink);
}
.guide-referral .primary { display: inline-block; margin-top: .7rem; padding: .6rem .9rem; font-weight: 700; text-underline-offset: .25rem; }
.guide-referral .primary:hover, .standalone .referral .primary:hover { background: #ffdaa9; border-color: #ffdaa9; }

@media (max-width: 34rem) { .head .brand { max-width: 9rem; font-size: .85rem; line-height: 1.2; } }
@media (max-width: 26rem) {
  .header-inner { gap: .6rem; }
  .brand { gap: .4rem; }
  .brand-name { font-size: .86rem; }
}
@media print { .guide-referral, .article-photo, .standalone .referral { display: none; } }
