:root {
  color-scheme: light;
  --ink: #342a20;
  --muted: #70604b;
  --red: #793b30;
  --gold: #977238;
  --rule: #baa57e;
  --paper: #f0e3c4;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --paper-surface: radial-gradient(ellipse at 0 0, #a7763020, transparent 46%), radial-gradient(ellipse at 100% 80%, #b9863820, transparent 53%), repeating-linear-gradient(3deg, #6c4b2304 0 1px, transparent 1px 5px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #342b23; color: var(--ink); font: 1.125rem/1.75 var(--serif); overflow-wrap: break-word; }
body.reader-open { overflow: hidden; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--red); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: #271f17; background: #d6b978; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .5rem 1rem; background: var(--paper); z-index: 20; }
.skip-link:focus { top: 1rem; }
.site { min-height: 100vh; max-width: 1500px; margin-inline: auto; background: var(--paper); background-image: var(--paper-surface); box-shadow: 0 0 60px #120e0a70, inset 0 0 70px #8c622916; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-bottom: 1px solid var(--rule); padding: 1.4rem clamp(1.5rem, 4vw, 4.2rem); box-shadow: 0 4px 0 -3px var(--paper), 0 5px 0 -3px var(--rule); }
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-name { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: .12em; }
.brand-subtitle { display: block; margin-top: .25rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.masthead-note { margin: 0; color: var(--muted); font-size: .9375rem; font-style: italic; text-align: right; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding: 2.6rem clamp(1.5rem, 4vw, 4.2rem) 4rem; }
.sidebar { min-width: 0; }
.index-panel { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; overscroll-behavior: contain; padding: .3rem .6rem 1rem .3rem; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.index-heading { font-size: .875rem; letter-spacing: .14em; color: var(--red); font-weight: 700; text-transform: uppercase; margin: 0 0 .95rem; padding-bottom: .85rem; border-bottom: 1px solid var(--rule); }
.home-link { display: block; padding: .5rem .4rem; font-size: .9375rem; font-weight: 700; text-decoration: none; margin-bottom: .7rem; }
.tree-list, .tree-children { list-style: none; padding: 0; margin: 0; }
.tree-root { border-top: 1px solid #baa57e80; }
.tree-root:last-child { border-bottom: 1px solid #baa57e80; }
.tree summary { position: relative; padding: .75rem .6rem .75rem 1.25rem; font-size: 1rem; line-height: 1.45; cursor: pointer; list-style: none; color: var(--ink); }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: ""; position: absolute; top: 1.18rem; left: .15rem; width: .38rem; height: .38rem; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(-45deg); }
.tree details[open] > summary::before { transform: rotate(45deg); }
.tree summary:hover, .tree a:hover { background: #9870380c; color: var(--red); }
.tree details[open] > summary { color: var(--red); }
.tree .tree-children { margin: 0 0 .5rem .45rem; padding-left: .7rem; border-left: 1px solid #baa57e88; }
.tree .tree-children summary { font-size: .9375rem; padding-block: .55rem; }
.tree .tree-children summary::before { top: .97rem; }
.tree a { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.4; padding: .5rem .4rem; text-decoration: none; }
.tree a[aria-current="page"] { color: var(--red); font-weight: 700; }
.tree a small { display: block; font-size: .75rem; color: var(--muted); }
.tree-count { color: var(--muted); font-size: .75rem; margin-left: .35rem; font-weight: 400; }
.index-note { margin: 1.2rem .25rem 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); font-style: italic; }
.frontispiece { min-width: 0; max-width: 850px; padding-top: .35rem; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: .8125rem; letter-spacing: .17em; margin: 0 0 .8rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; text-wrap: balance; }
h1 { margin: 0 0 1.4rem; color: var(--red); font-size: clamp(2.8rem, 4.8vw, 4.9rem); line-height: 1.08; max-width: 13ch; letter-spacing: -.025em; }
h2 { color: var(--red); font-size: 2rem; }
h3 { color: var(--red); font-size: 1.5rem; margin: 1.8rem 0 .7rem; }
h4 { color: var(--red); font-size: 1.2rem; margin: 1.4rem 0 .55rem; }
p { margin: 0 0 1.1rem; }
.intro { font-size: 1.2rem; line-height: 1.75; max-width: 65ch; }
.intro strong { font-weight: 400; color: var(--red); }
.ornament { display: flex; align-items: center; gap: .8rem; color: var(--gold); font-size: .8125rem; margin-block: 1.8rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.section-kicker { color: var(--muted); font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1rem; }
.shelf { list-style: none; margin: 0; padding: 0; }
.shelf li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .85rem; padding: 1.35rem 0; border-top: 1px solid #baa57e88; }
.shelf li:first-child { border-top: 0; padding-top: .3rem; }
.shelf-number { color: var(--gold); font-size: .9375rem; padding-top: .25rem; }
.shelf h3 { margin: 0 0 .45rem; font-size: 1.55rem; }
.shelf h3 a { text-decoration: none; }
.shelf h3 a:hover { text-decoration: underline; }
.shelf p { margin: 0 0 .45rem; font-size: 1.0625rem; }
.shelf-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9375rem; }
.shelf-links a { padding-block: .25rem; }
.campaign-note { margin-top: 1.9rem; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding: 1.2rem 0 1.3rem; }
.campaign-note h2 { margin: 0 0 .65rem; font-size: 1.5rem; }
.campaign-note p { margin: 0; font-size: 1.0625rem; }
.footer { display: flex; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--rule); margin: 0 clamp(1.5rem, 4vw, 4.2rem); padding: 1.2rem 0 1.7rem; font-size: .8125rem; color: var(--muted); }
.footer p { margin: 0; }
.footer-brand { color: var(--red); letter-spacing: .11em; }
.reader { width: min(1060px, calc(100vw - 4rem)); height: min(920px, calc(100dvh - 3.5rem)); max-width: none; max-height: none; padding: 0; margin: auto; border: 1px solid #94713f; color: var(--ink); background: var(--paper); background-image: var(--paper-surface); box-shadow: 0 26px 100px #0e090bb0, 4px 4px 0 #c8b58f, 5px 5px 0 #8e744f, 9px 9px 0 #d5c6a3; overflow: hidden; }
.reader::backdrop { background: #21170edf; backdrop-filter: blur(3px); }
.reader-frame { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.reader-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding: .7rem 1.2rem; background: #d8c09530; }
.reader-topbar-left { min-width: 0; display: flex; align-items: center; gap: .8rem; }
.reader-collection { color: var(--muted); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-button { background: transparent; border: 1px solid transparent; padding: .35rem .65rem; color: var(--red); font-size: .9375rem; line-height: 1.6; white-space: nowrap; }
.reader-button:hover { border-color: var(--rule); background: #9c753a10; }
.reader-button:disabled { color: var(--muted); opacity: .6; }
.reader-close { border-color: var(--rule); }
.reader-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold) #e6d4af; scroll-behavior: smooth; }
.reader-article { padding: 2.3rem clamp(1.4rem, 5vw, 4.5rem) 3rem; min-height: 100%; border-left: 1px solid #b49b6b66; margin-left: 1rem; background: linear-gradient(90deg, #b79a610f, transparent 20px); }
.reader-kicker { margin: 0 0 .65rem; color: var(--muted); font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; }
.reader-title { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 .55rem; outline: none; }
.reader-subtitle { font-size: 1.1875rem; color: var(--muted); font-style: italic; margin: 0 0 1.2rem; }
.reader-rule { display: flex; align-items: center; gap: .7rem; color: var(--gold); font-size: .75rem; margin: 1.3rem 0 1.8rem; }
.reader-rule::before { content: ""; width: 4rem; height: 1px; background: var(--gold); }
.reader-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.reader-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8125rem; }
.prose { font-size: 1.125rem; line-height: 1.8; }
.prose > :last-child { margin-bottom: 0; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.45rem; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { color: var(--gold); }
.prose .lead { font-size: 1.25rem; }
.prose .dropcap::first-letter { float: left; border: 1px solid var(--gold); color: var(--red); font-size: 3.7rem; line-height: .95; padding: .15rem .3rem .08rem; margin: .2rem .6rem 0 0; }
.prose .inset { border-left: 3px solid var(--gold); background: #9c753a0c; padding: 1rem 1.3rem; margin: 1.5rem 0; }
.prose .inset p { margin-bottom: 0; }
.inset-label { color: var(--red); display: block; margin-bottom: .4rem; font-size: .9375rem; }
.stars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-block: 1.5rem; }
.star { border-top: 3px double var(--gold); padding-top: 1rem; }
.star h3 { margin: 0 0 .4rem; }
.star-domain { color: var(--muted); display: block; margin-bottom: .75rem; font-size: .9375rem; font-style: italic; }
.facts, .deity-facts, .entry-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 1.4rem 0; padding-block: 1rem; border-block: 1px solid var(--rule); }
.facts dt, .deity-facts dt, .entry-facts dt { color: var(--muted); font-size: .8125rem; }
.facts dd, .deity-facts dd, .entry-facts dd { margin: .25rem 0 0; font-size: 1.0625rem; line-height: 1.6; }
.entry-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.distance, .world-meta { font-size: .9375rem; color: var(--muted); }
.world-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.deity-lore, .governance { margin: 1.5rem 0 0; }
.deity-lore > div + div, .governance > div + div { margin-top: 1.35rem; }
.deity-lore dt, .governance dt { color: var(--red); font-size: 1.2rem; }
.deity-lore dd, .governance dd { margin: .4rem 0 0; }
.deity-lore p { margin-bottom: .7rem; }
.deity-lore dd p:last-child { margin-bottom: 0; }
.divine-dynamics { margin: 1.5rem 0 0; }
.divine-dynamics > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; border-top: 1px solid var(--rule); padding-block: 1.2rem; }
.divine-dynamics dt { color: var(--red); font-size: 1.2rem; }
.divine-dynamics dt span { display: block; color: var(--muted); font-size: .9375rem; font-style: italic; }
.divine-dynamics dd { margin: 0; }
.divine-dynamics p { margin: 0; }
.council-table { width: 100%; margin: 1.4rem 0; border-collapse: collapse; text-align: left; font-size: 1rem; line-height: 1.65; }
.council-table caption { text-align: left; color: var(--muted); font-size: .875rem; font-style: italic; margin-bottom: .7rem; }
.council-table thead { border-block: 1px solid var(--rule); background: #9c753a0b; }
.council-table thead th { padding: .7rem .8rem; color: var(--red); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; }
.council-table tbody tr { border-bottom: 1px solid #baa57e80; }
.council-table tbody th { padding: .9rem .8rem; color: var(--red); font-weight: 400; vertical-align: top; width: 30%; }
.council-table td { padding: .9rem .8rem; vertical-align: top; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 1.5rem; scrollbar-color: var(--gold) transparent; }
.table-scroll .council-table { margin: 0; }
.pantheon-table, .demographic-table { min-width: 38rem; }
.pantheon-table tbody th, .demographic-table tbody th { width: 18%; }
.world-table tbody th { width: 24%; }
.reading-links { list-style: none; padding: 0 !important; margin: 1.4rem 0; border-top: 1px solid var(--rule); }
.reading-links li { margin: 0 !important; border-bottom: 1px solid #baa57e88; }
.reading-links a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.3rem; padding: .85rem .2rem; text-decoration: none; }
.reading-links a:hover { background: #9c753a09; text-decoration: underline; }
.reading-links small { flex-shrink: 0; color: var(--muted); font-size: .875rem; }
.related { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9375rem; }
.related a { padding-block: .3rem; }
.world-map { margin: 1.7rem 0; }
.world-map img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.world-map figcaption { margin-top: .65rem; font-size: .875rem; line-height: 1.65; color: var(--muted); }
.shadowspire-map { max-width: 1086px; margin-inline: auto; }
.shadowspire-map-preview { max-width: 32rem; }
.shadowspire-map > a { display: block; cursor: zoom-in; }
.reader[data-layout="map"] { width: min(1500px, calc(100vw - 3rem)); }
.reader[data-layout="map"] .reader-article { padding-inline: clamp(1rem, 3vw, 2.5rem); }
.reader[data-layout="map"] .world-map { margin-top: .7rem; }
@media (min-width: 1501px) { body { padding: 1.5rem 2rem; } .site { border: 1px solid #aa8d5b; } }
@media (max-width: 1050px) { .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; } .masthead { gap: 1rem; } }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; padding-top: 1.6rem; }
  .index-panel { position: static; max-height: none; overflow: visible; padding: 0; }
  .index-note { display: none; }
  .tree-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; align-items: start; }
  .tree-root:last-child { border-bottom: 0; }
  .home-link { margin: 0; }
  .index-heading { margin-bottom: .4rem; }
  h1 { font-size: clamp(2.8rem, 8vw, 4.5rem); max-width: 16ch; }
  .frontispiece { padding-top: .4rem; }
  .reader { width: calc(100vw - 1.75rem); height: calc(100dvh - 1.75rem); }
  .reader-article { padding: 1.6rem 1.5rem 2rem; margin-left: .5rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .masthead { padding: 1.15rem 1.25rem; }
  .brand-name { font-size: 1.35rem; letter-spacing: .1em; }
  .brand-subtitle { font-size: .75rem; letter-spacing: .1em; }
  .masthead-note { font-size: .8125rem; max-width: 8rem; line-height: 1.5; }
  .layout { padding-inline: 1.25rem; gap: 1.8rem; }
  .tree-list { display: block; }
  .tree-root:last-child { border-bottom: 1px solid #baa57e80; }
  .tree summary { padding-block: .65rem; }
  .tree summary::before { top: 1.06rem; }
  .intro { font-size: 1.125rem; }
  .shelf li { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .65rem; }
  .shelf h3 { font-size: 1.4rem; }
  .footer { margin-inline: 1.25rem; font-size: .75rem; }
  .footer p:last-child { max-width: 12rem; text-align: right; }
  .reader { width: calc(100vw - .7rem); height: calc(100dvh - .9rem); box-shadow: 0 15px 45px #0e090b90; }
  .reader-topbar { gap: .5rem; padding: .6rem .65rem; }
  .reader-topbar-left { gap: .3rem; }
  .reader-collection { font-size: .75rem; letter-spacing: .025em; }
  .reader-button { padding: .3rem .5rem; font-size: .875rem; }
  .reader-article { padding: 1.4rem 1.1rem 2rem; margin-left: .3rem; }
  .reader-title { font-size: 2rem; }
  .reader-subtitle { font-size: 1.1rem; }
  .reader-foot { padding: .5rem .75rem; }
  .prose { font-size: 1.0625rem; line-height: 1.78; }
  .prose .lead { font-size: 1.125rem; }
  .prose h3 { font-size: 1.4rem; }
  .stars { grid-template-columns: 1fr; gap: 1rem; }
  .facts, .deity-facts, .entry-facts { grid-template-columns: 1fr; gap: .65rem; }
  .facts > div, .deity-facts > div, .entry-facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem; }
  .facts dd, .deity-facts dd, .entry-facts dd { margin: 0; }
  .divine-dynamics > div { grid-template-columns: 1fr; gap: .6rem; }
  .council-table tbody th, .council-table td, .council-table thead th { padding-inline: .4rem; }
  .council-table tbody th { width: 35%; }
  .world-table tbody th { width: 30%; }
  .reading-links a { gap: .75rem; }
  .reading-links small { font-size: .8125rem; }
  .reader[data-layout="map"] { width: calc(100vw - .7rem); }
}
@media (prefers-reduced-motion: reduce) { html, .reader-scroll { scroll-behavior: auto; } }
@media print {
  @page { margin: 18mm; }
  body { padding: 0; background: white; font-size: 11pt; }
  .site { box-shadow: none; background: white; border: 0; }
  .sidebar, .skip-link, .reader-topbar, .reader-foot, .related { display: none; }
  .layout { display: block; padding: 1rem 0; }
  .frontispiece { max-width: none; }
  h1 { font-size: 32pt; }
  body.reader-open .site { display: none; }
  body.reader-open { overflow: visible; }
  .reader[open] { position: static; width: auto !important; height: auto; max-height: none; margin: 0; overflow: visible; background: white; border: 0; box-shadow: none; }
  .reader::backdrop { display: none; }
  .reader-frame { display: block; }
  .reader-scroll { overflow: visible; }
  .reader-article { margin: 0; padding: 0; border: 0; background: none; }
  .reader-title { font-size: 26pt; }
  .prose { font-size: 11pt; }
  .prose h3, .prose dt { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  .council-table tr, .world-map, .entry-facts { break-inside: avoid; }
  .council-table { font-size: 10pt; }
  .table-scroll { overflow: visible; }
  .pantheon-table, .demographic-table { min-width: 0; }
  a { color: inherit; text-decoration: none; }
}

  
.entry-opening { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-bottom: 1.5rem; }
.entry-opening p:last-child { margin-bottom: 0; }
.sigil { margin: 0; }
.sigil img { display: block; width: 100%; height: auto; border: 1px solid var(--gold); box-shadow: 0 3px 12px #4b351b22; }
.sigil figcaption { color: var(--muted); text-align: center; font-size: .8125rem; line-height: 1.5; margin-top: .65rem; font-style: italic; }
.lore-note { border-left: 2px solid var(--gold); padding: .9rem 1.1rem; margin: 1.4rem 0; background: #9c753a0a; font-size: .9375rem; line-height: 1.65; }
.lore-note p:last-child { margin-bottom: 0; }
.lore-note .inset-label { font-weight: 700; }
.lore-section + .lore-section { border-top: 1px solid var(--rule); padding-top: .5rem; margin-top: 1.7rem; }
.observance-date { color: var(--muted); font-size: .9375rem; font-style: italic; }
.sayings { margin: 1.5rem 0; }
.sayings > div, .outcomes > div { padding-block: 1rem; border-top: 1px solid #baa57e88; }
.sayings dt, .outcomes dt { color: var(--red); font-size: 1.2rem; }
.sayings dd, .outcomes dd { margin: .5rem 0 0; }
.law-list, .tenet-list { padding-left: 1.8rem; }
.law-list li, .tenet-list li { padding: .55rem .15rem .55rem .35rem; border-bottom: 1px solid #baa57e55; }
.gm-reading { margin-top: 1.7rem; border-block: 1px solid var(--rule); padding: .8rem .2rem; }
.gm-reading summary { cursor: pointer; color: var(--red); font-size: 1rem; }
.gm-reading .reading-links { margin-bottom: .3rem; }
.settlement-table { min-width: 34rem; }
.settlement-table tbody th { width: 27%; }
.settlement-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.place-note { display: block; font-size: .8125rem; color: var(--muted); margin-top: .2rem; }
.record-total { font-size: .9375rem; color: var(--muted); }
.download-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; border: 1px solid var(--gold); padding: .65rem 1rem; margin-block: .4rem; background: #97723810; color: var(--red); text-decoration: none; font-size: 1rem; }
.download-link:hover { background: #97723820; text-decoration: underline; }
.download-link span { color: var(--muted); font-size: .8125rem; }
@media (max-width: 660px) { .entry-opening { grid-template-columns: 1fr; gap: 1.1rem; } .sigil { width: min(210px, 70%); margin-inline: auto; } }
@media print { .sigil { break-inside: avoid; } .lore-section h3 { break-after: avoid; } .download-link, .gm-reading:not([open]) { display: none; } }
