:root {
  --parchment: #d8d3cb;
  --surface: #fff8f3;
  --paper: #F6F0E6;
  --paper-strong: #f0e7dd;
  --ink: #1f1b15;
  --muted: #514b3d;
  --green: #263d34;
  --green-deep: #10271f;
  --gold: #b8892f;
  --ember: #8e3f2f;
  --line: #B9B0A2;
}
* { box-sizing: border-box; }
body.dragons-site { margin: 0; background: var(--parchment); color: var(--ink); font-family: "Work Sans", Arial, sans-serif; line-height: 1.6; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; color: var(--green-deep); }
a { color: inherit; text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 50; background: #F6F0E6; border-bottom: 1px solid #B9B0A2; color: #263D34; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 42px; }
.brand { font-family: "Playfair Display", Georgia, serif; font-weight: 800; color: var(--green-deep); font-size: 1.35rem; padding-left: 0; }
.main-menu { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.pure-menu-link { color: var(--green); border-radius: 2px; }
.pure-menu-link:hover, .pure-menu-link:focus { background: var(--paper-strong); color: var(--gold); }
.pure-menu-children { max-height: 70vh; overflow-y: auto; }
.site-shell { display: flex; align-items: flex-start; min-height: 75vh; }
.discovery-sidebar { width: 300px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow: auto; background: var(--paper); border-right: 1px solid rgba(38,61,52,.14); padding: 26px 18px; flex: 0 0 300px; }
.sidebar-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sidebar-title small { display: block; color: var(--muted); font-size: .75rem; }
.sigil { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-deep); color: var(--surface); border-radius: 4px; font-weight: 700; }
.sidebar-menu .pure-menu-link { white-space: normal; padding: 8px 10px; }
.sidebar-menu .nested { margin-left: 18px; border-left: 1px solid var(--line); }
.sidebar-menu .nested .pure-menu-link { font-size: .86rem; color: var(--muted); }
.content-canvas { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 58px; }
.page-hero { margin-bottom: 28px; background: #F6F0E6; border-left: 4px solid #B8892F; padding: 18px 20px; }
.page-hero h1, .article-head h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 10px; }
.deck, .lead { border-left: 4px solid var(--gold); padding-left: 14px; color: var(--muted); font-size: 1.08rem; font-style: italic; }
.editorial-stack, .article-prose, .content-article { display: grid; gap: 20px; }
.category-intro { margin-bottom: 28px; }
.editorial-stack > h1, .editorial-stack > h2, .editorial-stack > h3 { margin-bottom: 0; }
.archive-card, .editorial-stack > .list_item, .editorial-stack > article { background: #F6F0E6; border: 1px solid #B9B0A2; color: #514B3D; padding: 18px; box-shadow: 0 8px 0 rgba(38,61,52,.04); }
.archive-card h2 { margin: 0 0 8px; font-size: 1.45rem; }
.archive-card p { margin-bottom: 0; color: var(--muted); }
.media-figure { margin: 0; background: var(--surface); border: 1px solid rgba(38,61,52,.12); padding: 10px; }
img { max-width: 100%; height: auto; }
.media-figure img, .archive-card img, .gallery-grid img { width: 100%; border-radius: 2px; object-fit: cover; }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.article-main-image { float: right; max-width: 34%; margin: 0 0 18px 24px; border: 10px solid var(--surface); }
.article-dates { color: var(--muted); font-size: .9rem; display: flex; gap: 16px; flex-wrap: wrap; }
.article-prose a, .editorial-stack a, .content-article a, .card-grid a { color: var(--green-deep); text-decoration: underline; text-decoration-color: rgba(184,137,47,.55); text-underline-offset: 3px; }
.article-prose a:hover, .editorial-stack a:hover, .content-article a:hover, .card-grid a:hover { color: var(--ember); text-decoration-color: var(--ember); }
blockquote { margin: 0; padding: 16px 20px; background: var(--paper); border-left: 4px solid var(--gold); color: var(--muted); }
.table-wrap { overflow-x: auto; }
.pure-table { width: 100%; background: var(--surface); }
.gallery-grid { margin-left: -10px; margin-right: -10px; }
.gallery-grid figure, .card-grid article { padding: 10px; }
.toc { background: var(--paper); border: 1px solid var(--line); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.read-more { font-weight: 700; }
.breadcrumbs { margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.site-footer { background: #B9B0A2; color: #514B3D; border-top: 1px solid #263D34; padding: 30px 42px; }
.footer-grid > div { padding-right: 20px; }
.site-footer h2 { font-size: 1rem; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--green); text-decoration: underline; text-decoration-color: transparent; }
.site-footer a:hover { color: var(--gold); text-decoration-color: var(--gold); }
@media (max-width: 900px) {
  .topbar-inner { padding: 12px 18px; display: block; }
  .main-menu { flex-wrap: wrap; }
  .site-shell { display: block; }
  .discovery-sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid rgba(38,61,52,.14); }
  .content-canvas { width: min(100% - 30px, 760px); padding-top: 28px; }
  .article-main-image { float: none; max-width: 100%; margin: 0 0 18px; }
}
@media print {
  .topbar, .discovery-sidebar, .site-footer { display: none; }
  .content-canvas { width: 100%; padding: 0; }
  body.dragons-site { background: white; color: black; }
}
