:root {
  --ink: #17201e;
  --ink-soft: #4b5854;
  --night: #0d1715;
  --night-2: #14231f;
  --forest: #21483c;
  --forest-bright: #2e6754;
  --aether: #72b6b3;
  --gold: #c79a54;
  --gold-light: #e3c58b;
  --paper: #f3efe5;
  --paper-warm: #e9e0cf;
  --white: #fffdf7;
  --line: rgba(23, 32, 30, .14);
  --shadow: 0 24px 70px rgba(8, 18, 15, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--gold-light); color: var(--night); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding-block: clamp(78px, 10vw, 138px); }
.section-pad-small { padding-block: clamp(42px, 6vw, 82px); }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 16px; padding: 12px 18px; color: white; background: var(--night); }
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 100;
  min-height: 82px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(243, 239, 229, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.home-page .site-header, .atlas-page .site-header, .reader-room-page .site-header {
  color: var(--white);
  background: var(--night);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 23px;
  box-shadow: inset 0 0 0 4px rgba(199, 154, 84, .1);
}
.brand strong { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: .025em; }
.brand small { display: block; margin-top: -2px; color: var(--ink-soft); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.home-page .brand small, .atlas-page .brand small, .reader-room-page .brand small { color: rgba(255,255,255,.6); }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.primary-nav a { position: relative; padding: 29px 0 26px; font-size: 13px; font-weight: 650; letter-spacing: .03em; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 21px; height: 1px; background: var(--gold); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav .nav-author { padding: 9px 14px; border: 1px solid var(--line); }
.primary-nav .nav-author::after { display: none; }
.nav-toggle { display: none; border: 0; background: none; color: inherit; font-weight: 700; }

.flash { position: fixed; z-index: 200; top: 96px; right: 24px; max-width: 430px; padding: 14px 18px; color: white; background: var(--forest); box-shadow: var(--shadow); border-left: 4px solid var(--gold-light); }
.flash-error { background: #772f2f; }

.kicker { margin: 0 0 14px; color: var(--forest-bright); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.kicker-light { color: var(--gold-light); }
.button { min-height: 46px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 750; letter-spacing: .025em; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--night); background: var(--gold-light); border-color: var(--gold-light); }
.button-primary:hover { background: #efd49e; }
.button-secondary { color: var(--forest); background: transparent; border-color: var(--forest); }
.button-quiet { color: white; border-color: rgba(255,255,255,.45); }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-weight: 750; font-size: 13px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: var(--gold-light); }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }

.hero { min-height: min(830px, calc(100vh - 82px)); position: relative; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--night); }
.hero-map { position: absolute; inset: -11% -4% -15% 31%; background: url("/static/images/mapa-aethrenya.png") center / cover no-repeat; filter: saturate(.65) contrast(1.05); opacity: .72; transform: rotate(-1.5deg); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(13,23,21,.96) 29%, rgba(13,23,21,.72) 52%, rgba(13,23,21,.15) 100%), linear-gradient(0deg, rgba(13,23,21,.8), transparent 40%); }
.hero-content { position: relative; z-index: 2; padding-block: 80px 130px; }
.hero h1 { max-width: 800px; margin-bottom: 28px; font-family: var(--serif); font-size: clamp(58px, 8.5vw, 116px); font-weight: 400; line-height: .87; letter-spacing: -.055em; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-copy { max-width: 610px; margin-bottom: 34px; color: rgba(255,255,255,.72); font-family: var(--serif); font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-whisper { position: absolute; z-index: 2; right: 24px; bottom: 28px; color: rgba(255,255,255,.34); font-family: var(--serif); font-size: 12px; font-style: italic; letter-spacing: .07em; writing-mode: vertical-rl; }

.threshold { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(50px, 9vw, 140px); align-items: start; }
.section-intro h2, .map-teaser h2, .section-heading-row h2, .reader-call h2, .reader-layout h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(40px, 5.3vw, 72px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.threshold-copy > p { max-width: 600px; color: var(--ink-soft); font-family: var(--serif); font-size: 20px; }
.world-stats { margin: 52px 0 0; padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); }
.world-stats div { display: flex; flex-direction: column; }
.world-stats dt { font-family: var(--serif); font-size: 42px; line-height: 1; }
.world-stats dd { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.map-teaser { padding-block: clamp(70px, 9vw, 120px); color: var(--white); background: var(--forest); overflow: hidden; }
.map-teaser-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.map-teaser h2 { margin-bottom: 24px; }
.map-teaser p:not(.kicker) { color: rgba(255,255,255,.68); font-family: var(--serif); font-size: 18px; }
.map-window { position: relative; min-height: 420px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.map-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,20,15,.46), transparent 52%); }
.map-window img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transition: transform .6s ease; }
.map-window:hover img { transform: scale(1.025); }
.map-window > span { position: absolute; z-index: 2; right: 24px; bottom: 22px; width: 72px; height: 72px; display: grid; place-items: center; color: var(--night); background: var(--gold-light); border-radius: 50%; font-size: 12px; font-weight: 800; }

.section-heading-row { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading-row h2 { font-size: clamp(38px, 4vw, 58px); }
.lore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lore-grid-featured { grid-template-columns: repeat(4, 1fr); }
.lore-card { min-height: 292px; position: relative; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); background: rgba(255,253,247,.58); border: 1px solid var(--line); transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.lore-card:hover { transform: translateY(-5px); background: var(--white); box-shadow: 0 20px 50px rgba(23,32,30,.1); }
.lore-card h2, .lore-card h3 { margin: auto 0 12px; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.05; }
.lore-card p { margin-bottom: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 1.5; }
.pill { display: inline-block; margin: 0; padding: 4px 8px; color: var(--forest); background: rgba(46,103,84,.1); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.pill-dark { color: var(--gold-light); background: rgba(227,197,139,.1); }
.card-number { position: absolute; top: 24px; right: 25px; color: rgba(23,32,30,.2); font-family: var(--serif); font-size: 13px; }
.card-arrow { position: absolute; right: 25px; bottom: 22px; color: var(--forest); font-size: 18px; }
.mapped-label { margin-top: 17px; color: var(--forest-bright); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.chronicle-band { color: var(--white); background: var(--night); }
.light-heading h2 { color: var(--white); }
.post-list { border-top: 1px solid rgba(255,255,255,.15); }
.post-row { min-height: 180px; padding-block: 30px; display: grid; grid-template-columns: 120px 1fr 56px; gap: 28px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); }
.post-date span { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 44px; line-height: 1; }
.post-date small { color: rgba(255,255,255,.46); font-size: 10px; letter-spacing: .1em; }
.post-row h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); font-weight: 400; }
.post-row h3 a:hover { color: var(--gold-light); }
.post-row > div:nth-child(2) > p:last-child { max-width: 720px; margin: 0; color: rgba(255,255,255,.56); }
.round-link { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .2s, color .2s; }
.round-link:hover { color: var(--night); background: var(--gold-light); }
.reader-call { text-align: center; }
.reader-call h2 { margin-bottom: 26px; }
.reader-call > p:not(.kicker) { max-width: 690px; margin: 0 auto 30px; color: var(--ink-soft); font-family: var(--serif); font-size: 18px; }

.site-footer { padding: 58px max(20px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 30px; color: rgba(255,255,255,.7); background: #07100e; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.site-footer > div:first-child { display: flex; gap: 14px; align-items: center; }
.brand-mark-small { width: 34px; height: 34px; font-size: 17px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-note { grid-column: 1 / -1; padding-top: 24px; color: rgba(255,255,255,.34); border-top: 1px solid rgba(255,255,255,.08); }

.page-hero { padding-block: clamp(75px, 9vw, 128px) 55px; border-bottom: 1px solid var(--line); }
.page-hero h1, .reader-hero h1, .atlas-header h1 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(60px, 9vw, 118px); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.page-hero > p:last-child { max-width: 650px; color: var(--ink-soft); font-family: var(--serif); font-size: 21px; }
.archive-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.archive-filters { position: sticky; top: 20px; border-top: 1px solid var(--line); }
.filter-link { padding: 12px 0; display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.filter-link.active, .filter-link:hover { color: var(--forest); font-weight: 750; }
.filter-link small { color: #87908d; }
.search-form { margin-bottom: 30px; }
.search-form > label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.search-form > div { display: flex; }
.search-form input { width: 100%; padding: 13px 15px; color: var(--ink); background: rgba(255,255,255,.52); border: 1px solid var(--line); border-right: 0; outline: none; }
.search-form input:focus { border-color: var(--forest-bright); background: white; }
.search-form button { padding: 0 22px; color: white; background: var(--forest); border: 1px solid var(--forest); font-weight: 700; }
.empty-state { padding: 55px; text-align: center; color: var(--ink-soft); background: rgba(255,255,255,.45); border: 1px dashed var(--line); }
.empty-state h2, .empty-state h3 { color: var(--ink); font-family: var(--serif); font-size: 30px; font-weight: 400; }

.article-shell { max-width: 950px; padding-block: clamp(70px, 9vw, 125px); }
.article-header { margin-bottom: 58px; display: grid; grid-template-columns: 1fr 220px; gap: 60px; align-items: end; }
.article-header h1 { margin-bottom: 26px; font-family: var(--serif); font-size: clamp(56px, 8vw, 105px); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.article-lead { max-width: 720px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 22px; line-height: 1.55; }
.canon-note { padding: 18px 0; display: grid; gap: 5px; border-block: 1px solid var(--line); }
.canon-note span { color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.canon-note strong { margin-bottom: 8px; color: var(--forest); font-size: 13px; }
.article-cover { width: 100%; max-height: 620px; margin-bottom: 55px; object-fit: cover; box-shadow: var(--shadow); }
.prose { max-width: 760px; margin-inline: auto; color: #25302d; font-family: var(--serif); font-size: 19px; line-height: 1.85; }
.prose > p:first-child::first-letter { float: left; margin: .11em .1em 0 0; color: var(--forest); font-size: 4em; line-height: .72; }
.prose h2 { margin: 2em 0 .75em; color: var(--ink); font-size: 34px; font-weight: 400; }
.prose h3 { margin: 1.8em 0 .65em; color: var(--ink); font-size: 25px; font-weight: 400; }
.prose blockquote { margin: 2em 0; padding: 22px 30px; color: var(--forest); border-left: 2px solid var(--gold); background: rgba(199,154,84,.08); font-size: 22px; font-style: italic; }
.prose a { color: var(--forest-bright); text-decoration: underline; text-decoration-color: rgba(46,103,84,.35); }
.location-callout { max-width: 760px; margin: 55px auto 0; padding: 22px 25px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; color: white; background: var(--forest); }
.location-symbol { color: var(--gold-light); font-size: 34px; }
.location-callout small, .location-callout strong { display: block; }
.location-callout small { color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.related-block { max-width: 760px; margin: 75px auto 0; padding-top: 45px; border-top: 1px solid var(--line); }
.related-block h2 { font-family: var(--serif); font-size: 38px; font-weight: 400; }
.related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-list a { padding: 17px; display: grid; grid-template-columns: 1fr auto; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.related-list a small { grid-column: 1 / -1; color: var(--ink-soft); }

.atlas-page { color: white; background: var(--night); }
.atlas-header { padding-block: 60px 34px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.atlas-header h1 { margin-bottom: 14px; font-size: clamp(52px, 7.5vw, 94px); }
.atlas-header p:last-child { max-width: 640px; margin: 0; color: rgba(255,255,255,.58); }
.atlas-controls { display: flex; border: 1px solid rgba(255,255,255,.18); }
.atlas-controls button { min-width: 48px; min-height: 44px; color: white; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.18); }
.atlas-controls button:last-child { border-right: 0; }
.atlas-controls button:hover { color: var(--night); background: var(--gold-light); }
.atlas-frame { width: calc(100vw - 24px); height: min(720px, 72vh); margin: 0 auto; background: #1e3d46; border: 1px solid rgba(255,255,255,.15); overflow: hidden; }
.atlas-viewport { width: 100%; height: 100%; position: relative; overflow: hidden; cursor: grab; touch-action: none; outline: none; }
.atlas-viewport.dragging { cursor: grabbing; }
.atlas-stage { width: 2048px; height: 1551px; position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.atlas-stage > img { width: 100%; height: 100%; pointer-events: none; user-select: none; }
.map-point { position: absolute; left: var(--x); top: var(--y); z-index: 3; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); }
.map-point > span { width: 14px; height: 14px; display: block; background: var(--gold-light); border: 3px solid var(--night); border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-light), 0 4px 14px rgba(0,0,0,.5); }
.map-point b { padding: 4px 7px; color: white; background: rgba(7,16,14,.82); border: 1px solid rgba(255,255,255,.2); font-size: 11px; white-space: nowrap; opacity: .88; transition: opacity .2s, transform .2s; }
.map-point:hover b, .map-point:focus b { opacity: 1; transform: translateY(-2px); }
.map-point-place > span { background: var(--aether); box-shadow: 0 0 0 2px var(--aether), 0 4px 14px rgba(0,0,0,.5); }
.atlas-legend { padding-block: 22px 55px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; color: rgba(255,255,255,.58); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.atlas-legend small { margin-left: auto; color: rgba(255,255,255,.35); }
.legend-dot { width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--gold-light); }
.legend-dot.place { background: var(--aether); }
.legend-dot.other { background: white; }

.chip-nav { margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-nav a { padding: 8px 13px; color: var(--ink-soft); border: 1px solid var(--line); font-size: 12px; }
.chip-nav a.active, .chip-nav a:hover { color: white; background: var(--forest); border-color: var(--forest); }
.publication-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.publication-card { min-height: 300px; background: rgba(255,255,255,.52); border: 1px solid var(--line); }
.publication-card > div { padding: 30px; }
.publication-card > img { width: 100%; height: 260px; object-fit: cover; }
.publication-card h2 { margin: 14px 0; font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.05; }
.publication-card h2 a:hover { color: var(--forest-bright); }
.publication-card p:not(.pill):not(.card-eyebrow) { color: var(--ink-soft); font-family: var(--serif); }
.publication-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.publication-card-featured > img { height: 100%; min-height: 360px; }
.card-eyebrow { margin: 12px 0 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-meta { margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 12px; }
.card-meta time { color: var(--ink-soft); }
.card-meta a { color: var(--forest); font-weight: 750; }
.publication-header { display: block; }
.publication-header time { display: block; margin-top: 28px; color: var(--ink-soft); font-size: 12px; letter-spacing: .05em; }

.conversation-section { padding-block: 90px; color: white; background: var(--night); }
.conversation-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px, 8vw, 110px); }
.conversation-grid h2 { font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 1.05; }
.conversation-grid > div:first-child > p:not(.kicker) { color: rgba(255,255,255,.55); }
.reader-form { display: grid; gap: 17px; }
.reader-form label, .editor-form label, .login-panel label, .reply-form label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.reader-form input, .reader-form textarea, .editor-form input, .editor-form textarea, .editor-form select, .login-panel input, .reply-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: 0; outline: none; resize: vertical; }
.reader-form input:focus, .reader-form textarea:focus, .editor-form input:focus, .editor-form textarea:focus, .editor-form select:focus, .login-panel input:focus { background: white; border-color: var(--forest-bright); box-shadow: 0 0 0 3px rgba(46,103,84,.12); }
.reader-form-dark { margin-top: 30px; }
.reader-form-dark label { color: rgba(255,255,255,.6); }
.reader-form-dark input, .reader-form-dark textarea { color: white; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.reader-form-dark input:focus, .reader-form-dark textarea:focus { background: rgba(255,255,255,.09); border-color: var(--gold-light); }
.honeypot { position: absolute !important; left: -10000px !important; }
.comment-list { display: grid; gap: 14px; align-content: start; }
.comment { padding: 25px; color: var(--ink); background: var(--paper); }
.comment header { display: flex; justify-content: space-between; gap: 16px; }
.comment header strong { color: var(--forest); }
.comment time { color: var(--ink-soft); font-size: 11px; }
.comment > p { margin: 12px 0 0; white-space: pre-wrap; }
.author-reply { margin-top: 18px; padding: 16px 18px; color: white; background: var(--forest); border-left: 3px solid var(--gold-light); }
.author-reply p { margin: 4px 0 0; white-space: pre-wrap; }
.empty-conversation { min-height: 300px; display: grid; place-items: center; align-content: center; color: rgba(255,255,255,.4); border: 1px dashed rgba(255,255,255,.2); text-align: center; }
.empty-conversation span { color: var(--gold-light); font-size: 30px; }

.reader-room-page { background: var(--paper); }
.reader-hero { padding-block: 90px; color: white; background: var(--night); }
.reader-hero p:last-child { max-width: 650px; color: rgba(255,255,255,.58); font-family: var(--serif); font-size: 20px; }
.reader-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(55px, 9vw, 130px); align-items: start; }
.reader-layout > div:first-child > p:not(.kicker) { color: var(--ink-soft); }
.reader-threads .section-heading-row { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.reader-threads .section-heading-row h2 { font-size: 35px; }
.reader-threads .section-heading-row > span { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 50%; font-size: 11px; }
.reader-thread { padding: 26px 0; border-bottom: 1px solid var(--line); }
.reader-thread header { display: flex; justify-content: space-between; gap: 20px; }
.reader-thread header small { color: var(--forest-bright); font-weight: 750; }
.reader-thread h3 { margin: 4px 0 13px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.reader-thread time { color: var(--ink-soft); font-size: 11px; }
.reader-thread > p { color: var(--ink-soft); white-space: pre-wrap; }

.admin-login-page { background: var(--night); }
.admin-login-page .site-header, .admin-page .site-header { display: none; }
.admin-login-page .site-footer, .admin-page .site-footer { display: none; }
.login-panel { width: min(460px, calc(100vw - 36px)); margin: 10vh auto; padding: 50px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.login-panel .brand-mark { margin-bottom: 30px; color: var(--forest); }
.login-panel h1 { font-family: var(--serif); font-size: 47px; font-weight: 400; }
.login-panel > p:not(.kicker) { color: var(--ink-soft); }
.login-panel form { margin-top: 30px; display: grid; gap: 18px; }
.admin-page { background: #ece8de; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; gap: 0; }
.admin-sidebar { min-height: 100vh; position: sticky; top: 0; padding: 34px 24px; display: flex; flex-direction: column; color: white; background: var(--night); }
.admin-sidebar > div small { display: block; color: var(--gold-light); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.admin-sidebar > div strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.admin-sidebar nav { margin-top: 45px; display: grid; gap: 4px; }
.admin-sidebar nav a { padding: 10px 12px; color: rgba(255,255,255,.62); font-size: 13px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.08); }
.admin-sidebar form { margin-top: auto; }
.button-link { padding: 0; color: rgba(255,255,255,.45); background: none; border: 0; font-size: 12px; }
.admin-content { min-width: 0; padding: 52px clamp(28px, 5vw, 70px); }
.admin-heading { margin-bottom: 32px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.admin-heading h1 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); font-weight: 400; line-height: 1; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin-stats a { min-height: 150px; padding: 24px; display: flex; flex-direction: column; justify-content: end; background: var(--white); border: 1px solid var(--line); }
.admin-stats strong { font-family: var(--serif); font-size: 45px; font-weight: 400; line-height: 1; }
.admin-stats span { margin-top: 9px; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.admin-quick-actions { margin: 24px 0 40px; display: flex; gap: 10px; }
.admin-panel { padding: 25px; background: var(--white); border: 1px solid var(--line); }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.admin-panel-heading h2 { font-family: var(--serif); font-weight: 400; }
.admin-panel-heading a { color: var(--forest); font-size: 12px; font-weight: 700; }
.compact-list > div { padding: 15px 0; display: grid; grid-template-columns: 80px 150px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.compact-list p { margin: 0; color: var(--ink-soft); }
.status { display: inline-block; width: max-content; padding: 3px 7px; color: var(--ink-soft); background: #e4e1d9; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status-published, .status-approved { color: #185441; background: #d9eee6; }
.status-draft, .status-pending { color: #725618; background: #f3e7c5; }
.status-archived, .status-hidden { color: #6b3131; background: #efdddd; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 13px 16px; color: var(--ink-soft); background: #e5e1d8; text-align: left; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.admin-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { max-width: 440px; margin-top: 3px; color: var(--ink-soft); }
.admin-table td:last-child a { color: var(--forest); font-weight: 750; }
.editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.editor-main, .editor-aside { padding: 25px; display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); }
.editor-aside { position: sticky; top: 24px; }
.editor-form label small { letter-spacing: 0; text-transform: none; font-weight: 400; }
.body-editor { min-height: 440px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 14px !important; line-height: 1.6; }
.editor-thumb { max-height: 180px; width: 100%; object-fit: cover; }
.coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-help { margin-top: -14px; color: var(--ink-soft); }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.check-label input { width: auto; }
.moderation-list { display: grid; gap: 16px; }
.moderation-card { padding: 25px; background: var(--white); border: 1px solid var(--line); }
.moderation-card > header { display: flex; justify-content: space-between; gap: 15px; }
.moderation-card > header > div { display: flex; align-items: center; gap: 10px; }
.moderation-card time, .moderation-card small { color: var(--ink-soft); font-size: 11px; }
.moderation-card h2 { margin: 20px 0 5px; font-family: var(--serif); font-weight: 400; }
.moderation-card > p { white-space: pre-wrap; }
.moderation-actions { margin: 18px 0; display: flex; gap: 8px; }
.moderation-actions button { padding: 7px 11px; color: white; background: var(--forest); border: 0; font-size: 12px; }
.moderation-actions .danger-link { color: #7a3333; background: #f1dfdf; }
.reply-form { padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); }
.existing-reply { margin-top: 14px; padding: 15px; color: white; background: var(--forest); }
.existing-reply p { margin: 4px 0 0; }
.muted { color: var(--ink-soft); }

@media (max-width: 980px) {
  .lore-grid, .lore-grid-featured { grid-template-columns: repeat(2, 1fr); }
  .map-teaser-grid, .threshold, .reader-layout, .conversation-grid { grid-template-columns: 1fr; }
  .map-teaser-grid { gap: 45px; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-filters { position: static; display: flex; flex-wrap: wrap; border: 0; }
  .filter-link { padding: 8px 12px; gap: 8px; border: 1px solid var(--line); }
  .article-header { grid-template-columns: 1fr; gap: 25px; }
  .canon-note { max-width: 300px; }
  .admin-shell { width: 100%; grid-template-columns: 190px 1fr; }
  .admin-content { padding: 35px 24px; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-aside { position: static; }
}

@media (max-width: 740px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 68px; padding-inline: 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 18px; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 12px 18px 22px; flex-direction: column; align-items: stretch; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 11px 0; }
  .primary-nav a::after { bottom: 6px; }
  .hero { min-height: 720px; }
  .hero-map { inset: 28% -35% -8% 4%; opacity: .5; }
  .hero-content { padding-block: 75px 190px; }
  .hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .hero-whisper { display: none; }
  .world-stats { grid-template-columns: 1fr; }
  .map-window, .map-window img { min-height: 280px; }
  .lore-grid, .lore-grid-featured, .publication-grid { grid-template-columns: 1fr; }
  .lore-card { min-height: 250px; }
  .post-row { grid-template-columns: 58px 1fr; }
  .post-row .round-link { display: none; }
  .post-date span { font-size: 30px; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 8px; }
  .publication-card-featured { display: block; }
  .article-header h1 { font-size: 56px; }
  .prose { font-size: 17px; }
  .related-list { grid-template-columns: 1fr; }
  .atlas-header { align-items: start; flex-direction: column; }
  .atlas-frame { height: 62vh; }
  .atlas-legend small { width: 100%; margin-left: 0; }
  .flash { top: 80px; right: 12px; left: 12px; }
  .admin-shell { display: block; }
  .admin-sidebar { min-height: auto; position: static; padding: 18px; }
  .admin-sidebar nav { margin-top: 18px; display: flex; flex-wrap: wrap; }
  .admin-sidebar form { margin-top: 18px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-table { min-width: 720px; }
  .reply-form { grid-template-columns: 1fr; }
  .login-panel { margin-block: 4vh; padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

