/* ═══════════════════════════════════════════════════════════
   THE BLEWYONDER KNIGHTS — TRIBUTE SITE
   Aesthetic: Tolkien appendix meets painted fantasy memorial
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Color palette — deep midnight, parchment, gold leaf, blood, forest */
  --midnight: #0a0d18;
  --midnight-soft: #14182a;
  --midnight-deeper: #050709;
  --parchment: #e8dcc4;
  --parchment-muted: #b8ac93;
  --bone: #f4ebd6;
  --gold: #c9a961;
  --gold-bright: #e0c487;
  --gold-deep: #8a7137;
  --burgundy: #7d3838;
  --burgundy-deep: #4a2020;
  --forest: #2d4a2b;
  --stone: #3a3a44;
  --shadow: rgba(0,0,0,0.6);
  
  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-decorative: 'Cinzel Decorative', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-quill: 'IM Fell English', serif;
  --font-typewriter: 'Special Elite', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--midnight);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* subtle parchment-noise texture overlay */
  background-image: 
    radial-gradient(ellipse at 30% 20%, rgba(125, 56, 56, 0.03), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 169, 97, 0.04), transparent 60%);
}

/* Selection */
::selection { background: var(--gold); color: var(--midnight); }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(10, 13, 24, 0.95), rgba(10, 13, 24, 0.7));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.nav-mark { color: var(--gold); display: flex; align-items: center; transition: opacity 0.3s; }
.nav-mark:hover { opacity: 0.7; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--parchment-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold-deep) !important;
  padding: 8px 20px !important;
  border-radius: 0;
  letter-spacing: 0.15em !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--midnight) !important;
  border-bottom-color: transparent !important;
}

@media (max-width: 880px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: inline-block !important; padding: 6px 14px !important; font-size: 11px !important; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 32px 80px;
  background: 
    radial-gradient(ellipse at center top, rgba(201, 169, 97, 0.06), transparent 60%),
    var(--midnight);
  min-height: 100vh;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto 56px;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.95) saturate(1.02);
  border: 1px solid rgba(201, 169, 97, 0.35);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(201, 169, 97, 0.08);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 75%, rgba(10, 13, 24, 0.4) 100%);
  border: 1px solid rgba(201, 169, 97, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 24px;
  font-weight: 500;
}

/* Image has the title baked in — hide H1 visually for SEO + accessibility */
.hero-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-title-knights { display: none; }

.hero-tagline {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: clamp(18px, 2vw, 23px);
  color: var(--bone);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-bright);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  background: rgba(10, 13, 24, 0.4);
  transition: all 0.4s;
}

.hero-scroll:hover {
  background: var(--gold);
  color: var(--midnight);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll svg { transition: transform 0.4s; }
.hero-scroll:hover svg { transform: translateY(4px); }

@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .hero-image-wrap { margin-bottom: 36px; }
}

/* ─── Dividers ─── */
.divider {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  color: var(--gold-deep);
}
.divider svg { width: 100%; height: auto; }
.divider-fallen { color: var(--burgundy); }

/* ─── Section base ─── */
.section {
  padding: 80px 24px 100px;
  position: relative;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-decorative);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  text-align: center;
  color: var(--bone);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.section-sub {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--parchment-muted);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  line-height: 1.6;
}

/* ─── The Realm (intro prose) ─── */
.section-realm {
  padding-top: 40px;
}

.realm-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.8;
}

.realm-prose p { margin-bottom: 24px; color: var(--parchment); }

.realm-lead {
  font-size: 22px !important;
  font-weight: 500;
  color: var(--bone) !important;
}

.realm-lead em, .realm-prose em { color: var(--gold-bright); font-style: italic; }

.realm-coda {
  margin-top: 40px !important;
  padding: 28px 32px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 169, 97, 0.04);
  font-style: italic;
  font-family: var(--font-quill);
  color: var(--bone) !important;
}

.realm-coda strong { color: var(--gold-bright); font-style: normal; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.04em; }

/* Standalone "Until now." line — short, hard, gold */
.realm-until-now {
  font-family: var(--font-decorative) !important;
  font-size: clamp(28px, 4vw, 38px) !important;
  font-weight: 700;
  color: var(--gold-bright) !important;
  text-align: center;
  letter-spacing: 0.04em;
  margin: 16px 0 32px !important;
  line-height: 1.2;
}

/* ─── Lands grid ─── */
.lands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 32px;
}

@media (max-width: 880px) {
  .lands-grid { grid-template-columns: 1fr; gap: 40px; }
}

.land-card {
  background: var(--midnight-soft);
  border: 1px solid rgba(201, 169, 97, 0.12);
  overflow: hidden;
  transition: all 0.5s;
  position: relative;
}

.land-card:hover {
  border-color: rgba(201, 169, 97, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.land-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--midnight-deeper), var(--stone));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.land-image::after {
  content: attr(data-fallback);
  position: absolute;
  font-family: var(--font-decorative);
  font-size: 32px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  z-index: 0;
}

.land-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.land-card:hover .land-image img { transform: scale(1.04); }

.land-text { padding: 28px 32px 32px; }

.land-text h3 {
  font-family: var(--font-decorative);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.land-meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment-muted);
  margin-bottom: 16px;
}

.land-text p:not(.land-meta) {
  color: var(--parchment);
  line-height: 1.7;
}

/* ─── Knights grid ─── */
.knights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 32px;
}

@media (max-width: 1000px) { .knights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .knights-grid { grid-template-columns: 1fr; } }

.knight-card {
  background: linear-gradient(180deg, var(--midnight-soft) 0%, var(--midnight) 100%);
  border: 1px solid rgba(201, 169, 97, 0.1);
  padding: 0 0 28px;
  text-align: center;
  transition: all 0.5s;
  overflow: hidden;
  position: relative;
}

.knight-card[data-tier="player"] {
  border-color: rgba(201, 169, 97, 0.25);
}

.knight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.knight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: 0 24px 56px rgba(0,0,0,0.6);
}

.knight-card:hover::before { opacity: 1; }

.knight-portrait {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--midnight-deeper) 0%, var(--stone) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.knight-portrait::after {
  content: attr(data-fallback);
  position: absolute;
  font-family: var(--font-decorative);
  font-size: 24px;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  z-index: 0;
  text-align: center;
  padding: 0 12px;
}

.knight-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s, filter 0.5s;
  filter: saturate(0.95);
}

.knight-card:hover .knight-portrait img { transform: scale(1.05); filter: saturate(1.05); }

.knight-card h3 {
  font-family: var(--font-decorative);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 28px 24px 4px;
  letter-spacing: 0.03em;
}

.knight-role {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment-muted);
  margin: 0 24px 18px;
  font-weight: 500;
}

.knight-bio {
  margin: 0 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--parchment);
}

.knight-bio em { color: var(--gold-bright); }

/* ─── The Fallen ─── */
.section-fallen {
  background: 
    linear-gradient(180deg, transparent 0%, rgba(74, 32, 32, 0.08) 30%, rgba(74, 32, 32, 0.08) 70%, transparent 100%);
  padding-bottom: 120px;
}

.section-fallen .section-title { color: var(--burgundy); }
.section-fallen .section-eyebrow { color: var(--burgundy); letter-spacing: 0.5em; }

.fallen-prose {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
  font-style: italic;
  font-size: 20px;
  line-height: 1.75;
  font-family: var(--font-quill);
  color: var(--parchment);
}

/* ─ Fallen with portraits — same grid as Knights but burgundy-toned ─ */
.fallen-grid {
  margin-bottom: 80px;
}

.fallen-card {
  border-color: rgba(125, 56, 56, 0.3) !important;
}

.fallen-card:hover {
  border-color: var(--burgundy) !important;
}

.fallen-card .knight-portrait img {
  filter: saturate(0.7) brightness(0.92);
}

.fallen-card .knight-portrait::after {
  color: var(--burgundy);
}

.fallen-card h3 {
  color: var(--bone) !important;
}

.fallen-card .knight-role {
  color: var(--burgundy) !important;
}

/* ─ Fallen without portraits — typographic memorial ─ */
.fallen-without-portraits {
  max-width: 920px;
  margin: 0 auto 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(125, 56, 56, 0.3);
}

.fallen-subhead {
  font-family: var(--font-quill);
  font-style: italic;
  text-align: center;
  color: var(--parchment-muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.fallen-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--burgundy-deep);
  border-bottom: 1px solid var(--burgundy-deep);
  padding: 32px 0;
}

@media (max-width: 800px) { .fallen-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fallen-list { grid-template-columns: 1fr; } }

.fallen-name {
  text-align: center;
  padding: 20px 16px;
}

.fallen-name h3 {
  font-family: var(--font-decorative);
  font-size: 30px;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.fallen-name p {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment-muted);
}

.fallen-quote {
  font-family: var(--font-quill) !important;
  font-style: italic;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--burgundy) !important;
  margin-top: 12px !important;
  line-height: 1.4 !important;
}

.fallen-coda {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-quill);
  font-style: italic;
  color: var(--burgundy);
  font-size: 19px;
}

/* ─── Storytellers ─── */
.storytellers-prose {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 20px;
  line-height: 1.75;
  color: var(--parchment);
}

.storytellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto 80px;
}

@media (max-width: 880px) { .storytellers-grid { grid-template-columns: 1fr; } }

.storyteller-card {
  text-align: center;
  padding: 48px 32px 40px;
  background: 
    linear-gradient(180deg, rgba(201, 169, 97, 0.04), transparent),
    var(--midnight-soft);
  border: 1px solid rgba(201, 169, 97, 0.15);
  transition: all 0.5s;
}

.storyteller-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
}

.storyteller-mark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(201, 169, 97, 0.06);
}

.storyteller-mark::before, .storyteller-mark::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

.storyteller-mark::before {
  width: 12px; height: 1px;
  top: -1px; left: 50%; transform: translateX(-50%);
}

.storyteller-mark::after {
  width: 12px; height: 1px;
  bottom: -1px; left: 50%; transform: translateX(-50%);
}

.storyteller-mark span {
  font-family: var(--font-decorative);
  font-size: 36px;
  font-weight: 900;
  color: var(--gold-bright);
}

.storyteller-card h3 {
  font-family: var(--font-decorative);
  font-size: 32px;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.storyteller-role {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}

.storyteller-card p:not(.storyteller-role) {
  color: var(--parchment);
  line-height: 1.7;
  font-size: 16.5px;
}

.storyteller-card em { color: var(--gold-bright); }

.storyteller-quotes {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid rgba(201, 169, 97, 0.15);
  background: rgba(10, 13, 24, 0.4);
}

.quote-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 500;
}

.quotes {
  list-style: none;
}

.quotes li {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: 19px;
  color: var(--bone);
  text-align: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.08);
  line-height: 1.5;
}

.quotes li:last-child { border-bottom: none; }
.quotes li::before { content: '" '; color: var(--gold); }
.quotes li::after { content: ' "'; color: var(--gold); }

/* ─── Chronicles ─── */
.chronicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 880px) { .chronicles-grid { grid-template-columns: 1fr; } }

.chronicle-card {
  padding: 48px 36px;
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.05), transparent), var(--midnight-soft);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-top: 3px solid var(--gold);
  transition: all 0.5s;
  position: relative;
}

.chronicle-card:hover {
  border-color: var(--gold);
  border-top-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.55);
}

.chronicle-vol {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.chronicle-year {
  font-family: var(--font-decorative);
  font-size: 56px;
  font-weight: 900;
  color: var(--gold-deep);
  line-height: 1;
  margin: 8px 0 24px;
}

.chronicle-card h3 {
  font-family: var(--font-decorative);
  font-size: 28px;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.chronicle-card p:last-child {
  color: var(--parchment);
  line-height: 1.7;
  font-size: 16.5px;
}

.chronicle-card em { color: var(--gold-bright); }

/* ─── Reach Out ─── */
.section-reach {
  background: 
    radial-gradient(ellipse at center, rgba(201, 169, 97, 0.06) 0%, transparent 60%),
    var(--midnight);
  padding-top: 120px;
  padding-bottom: 140px;
}

.reach-prose {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 19px;
  line-height: 1.8;
  color: var(--parchment);
}

.reach-prose strong { color: var(--gold-bright); font-weight: 600; }

.reach-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--midnight-soft);
  border: 1px solid rgba(201, 169, 97, 0.2);
  padding: 48px 40px;
}

.hidden-field { display: none; }

.form-row { margin-bottom: 24px; }

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--midnight-deeper);
  border: 1px solid rgba(201, 169, 97, 0.2);
  color: var(--bone);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 17px;
  transition: border-color 0.3s, background 0.3s;
  font-weight: 400;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--midnight);
}

.form-row textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23c9a961' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-row select option { background: var(--midnight-soft); color: var(--bone); }

.reach-submit {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  margin-top: 12px;
  font-weight: 500;
}

.reach-submit:hover {
  background: var(--gold);
  color: var(--midnight);
  letter-spacing: 0.36em;
}

/* ─── In-page success state after form submit ─── */
.reach-form-success {
  text-align: center;
  padding: 64px 40px !important;
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.06), transparent), var(--midnight-soft) !important;
  animation: fadeInUp 0.7s ease-out;
}

.reach-success { animation: fadeInUp 0.7s ease-out 0.1s both; }

.reach-success-mark {
  color: var(--gold);
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  animation: glowPulse 2.4s ease-in-out infinite;
}

.reach-success h3 {
  font-family: var(--font-decorative);
  font-size: 32px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.reach-success p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--parchment);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 8px;
}

.reach-success-coda {
  margin-top: 18px !important;
  color: var(--gold-bright) !important;
  font-family: var(--font-quill) !important;
  font-size: 17px !important;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 600px) {
  .reach-form { padding: 32px 24px; }
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  padding: 48px 24px 64px;
  background: var(--midnight-deeper);
  text-align: center;
}

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-mark { color: var(--gold); display: flex; justify-content: center; margin-bottom: 24px; }

.footer-line {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: 17px;
  color: var(--parchment);
  margin-bottom: 8px;
}

.footer-meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--parchment-muted);
}

/* ─── Reveal-on-scroll animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile fine-tuning ─── */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 60px 20px 80px; }
  .hero-content { padding: 100px 20px 60px; }
  .land-text { padding: 24px; }
  .knight-bio, .land-text p:not(.land-meta) { font-size: 15.5px; }
  .nav { padding: 14px 20px; }
  .divider { padding: 40px 20px 30px; }
}

/* ═════════════════════════════════════════════════════════════
   THE WELCOME — Chapter II
   Brian's preserved welcome letter, presented as archived correspondence
   ═════════════════════════════════════════════════════════════ */

.section-welcome {
  padding-bottom: 100px;
}

.welcome-container {
  max-width: 800px;
  margin: 0 auto;
}

.welcome-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 500;
}

/* ─── The flowing introduction ─── */
.welcome-introduction {
  padding: 48px 56px;
  background: 
    linear-gradient(180deg, rgba(201, 169, 97, 0.04), transparent),
    var(--midnight-soft);
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-left: 2px solid var(--gold);
  margin-bottom: 8px;
}

.welcome-prose {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.85;
  color: var(--bone);
}

.welcome-prose p {
  margin-bottom: 22px;
  text-indent: 1.5em;
}

.welcome-prose p:first-child { text-indent: 0; }

.welcome-prose p:first-child::first-letter {
  font-family: var(--font-decorative);
  font-style: normal;
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-bright);
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  padding-top: 4px;
}

.welcome-prose-coda {
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  text-align: center;
  font-style: normal !important;
  font-family: var(--font-decorative) !important;
  font-size: 22px !important;
  color: var(--gold-bright) !important;
  letter-spacing: 0.04em;
  text-indent: 0 !important;
}

/* ─── Inner divider between intro and arrival ─── */
.welcome-inner-divider {
  color: var(--gold-deep);
  padding: 36px 0;
}

.welcome-inner-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── The first move — period-authentic 1999 email feel ─── */
.welcome-arrival {
  padding: 48px 48px 40px;
  background: 
    linear-gradient(180deg, rgba(232, 220, 196, 0.025), transparent),
    rgba(10, 13, 24, 0.5);
  border: 1px solid rgba(201, 169, 97, 0.14);
  position: relative;
}

.welcome-arrival::before {
  content: 'ARCHIVED · 1999';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--parchment-muted);
  opacity: 0.5;
}

.welcome-arrival-text {
  font-family: var(--font-typewriter);
  font-size: 16px;
  line-height: 1.8;
  color: var(--parchment);
  letter-spacing: 0.02em;
}

.welcome-arrival-text p {
  margin-bottom: 24px;
}

.welcome-move-prompt {
  font-family: var(--font-typewriter);
  font-size: 18px !important;
  color: var(--gold-bright) !important;
  letter-spacing: 0.15em;
  margin-top: 32px !important;
  margin-bottom: 0 !important;
  font-weight: 700;
  text-align: left;
}

@media (max-width: 700px) {
  .welcome-introduction { padding: 36px 28px; }
  .welcome-arrival { padding: 36px 28px 32px; }
  .welcome-arrival::before { 
    top: 12px;
    right: 14px;
    font-size: 8px;
    letter-spacing: 0.25em;
  }
  .welcome-prose { font-size: 17px; }
  .welcome-arrival-text { font-size: 14.5px; }
  .welcome-prose p:first-child::first-letter {
    font-size: 44px;
    margin: 4px 8px 0 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   UPDATE — Prologue, Lands restructure, Pillars (Bronston),
   Index of the Realm. Appended to original sheet; uses the
   existing design tokens.
   ═══════════════════════════════════════════════════════════ */

/* ─── Prologue: Before the Realm ─── */
.section-prologue {
  padding-top: 80px;
}

.prologue-prose {
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 20px;
  line-height: 1.8;
}

.prologue-prose p {
  margin-bottom: 20px;
  color: var(--parchment);
}

.prologue-coda {
  margin-top: 56px;
}

.prologue-coda p {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: 21px;
  color: var(--parchment-muted);
  text-align: center;
}

.preserved-messages {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.preserved-message {
  font-family: var(--font-typewriter);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--parchment);
  background: rgba(245, 235, 210, 0.03);
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-left: 2px solid var(--gold);
  padding: 26px 30px;
  white-space: pre-wrap;
  overflow-x: auto;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .preserved-message {
    font-size: 12.5px;
    padding: 20px 18px;
    line-height: 1.5;
  }
}

/* ─── Lands chapter — regional subsections ─── */
.land-region {
  margin-bottom: 56px;
}

.land-region:last-of-type {
  margin-bottom: 0;
}

.land-region-title {
  font-family: var(--font-decorative);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 169, 97, 0.18);
}

.land-region:first-of-type .land-region-title {
  border-top: 0;
  padding-top: 0;
}

.land-region-sub {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: 18px;
  color: var(--parchment-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.land-region-royal .land-region-title {
  color: var(--bone);
}

.land-region-east .land-region-title {
  color: var(--gold-bright);
}

/* Land lore note inside Knighton card */
.land-lore-note {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px dotted rgba(201, 169, 97, 0.22);
  font-family: var(--font-quill);
  font-style: italic;
  font-size: 17px !important;
  color: var(--parchment-muted) !important;
}

/* ─── Pillar variant — fallen (Bronston) ─── */
.knight-card.pillar-fallen {
  position: relative;
}

.knight-card.pillar-fallen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
  border-radius: inherit;
}

.knight-card.pillar-fallen h3 {
  color: var(--burgundy);
}

/* ─── Index of the Realm ─── */
.section-index {
  padding-top: 80px;
}

.index-block {
  max-width: 920px;
  margin: 0 auto 56px;
}

.index-block:last-child {
  margin-bottom: 0;
}

.index-block-title {
  font-family: var(--font-decorative);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.index-note {
  text-align: center;
  font-family: var(--font-quill);
  color: var(--parchment-muted);
  margin-bottom: 24px;
  font-size: 17px;
}

.index-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.glossary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
}

@media (min-width: 760px) {
  .glossary {
    grid-template-columns: minmax(180px, max-content) 1fr;
    row-gap: 18px;
  }
  .glossary dt { grid-column: 1; }
  .glossary dd { grid-column: 2; margin: 0; }
}

.glossary dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
  align-self: baseline;
}

.glossary dd {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--parchment);
  margin-bottom: 6px;
}

.glossary dd a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

.glossary dd a:hover {
  color: var(--gold-bright);
}

@media (max-width: 759px) {
  .glossary dt {
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .glossary dt:first-of-type {
    margin-top: 0;
  }
}

/* ═════════════════════════════════════════════════════════════
   CHRONICLE CARDS AS HYPERLINKS — Read more affordance + hover
   ═════════════════════════════════════════════════════════════ */

.chronicle-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.chronicle-link:hover,
.chronicle-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.6);
  box-shadow: 0 12px 40px rgba(201, 169, 97, 0.08);
}

.chronicle-readmore {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.chronicle-link:hover .chronicle-readmore,
.chronicle-link:focus-visible .chronicle-readmore {
  color: var(--gold-bright);
  letter-spacing: 0.36em;
}

/* ═════════════════════════════════════════════════════════════
   VOLUME PAGE LAYOUT — for /volume-i, /volume-ii, /volume-iii
   ═════════════════════════════════════════════════════════════ */

.volume-page {
  background: var(--midnight);
}

/* ─── Volume hero ─── */
.volume-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  background:
    radial-gradient(ellipse at center top, rgba(201, 169, 97, 0.06), transparent 70%),
    var(--midnight);
}

.volume-hero-inner {
  max-width: 800px;
  width: 100%;
}

.volume-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.volume-year {
  font-family: var(--font-decorative);
  font-size: clamp(64px, 12vw, 128px);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin: 0 0 16px;
}

.volume-title {
  font-family: var(--font-decorative);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 32px;
}

.volume-tagline {
  font-family: var(--font-quill);
  font-style: italic;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--parchment-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Volume narrative body ─── */
.volume-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 28px 120px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.85;
  color: var(--bone);
}

.volume-body p {
  margin: 0 0 28px;
}

.volume-body p:first-of-type::first-letter {
  font-family: var(--font-decorative);
  font-size: 64px;
  font-weight: 700;
  color: var(--gold-bright);
  float: left;
  line-height: 0.9;
  margin: 8px 14px 0 0;
  padding-top: 4px;
}

/* Disable drop caps on Origins page — too many sections for them to read well */
body.origins-page .volume-body p:first-of-type::first-letter,
body.origins-page p::first-letter {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  float: none;
  line-height: inherit;
  margin: 0;
  padding-top: 0;
}

.volume-body em {
  font-style: italic;
  color: var(--gold);
}

.volume-body em.dialogue {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--parchment);
  font-size: 19.5px;
}

/* ─── Section dividers within volume body ─── */
.volume-divider {
  text-align: center;
  margin: 56px 0;
  color: var(--gold-deep);
  opacity: 0.6;
}

.volume-divider svg {
  width: 100%;
  max-width: 400px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

/* ─── Volume nav (return / next) ─── */
.volume-nav {
  border-top: 1px solid rgba(201, 169, 97, 0.18);
  padding: 60px 28px 80px;
  background: var(--midnight-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.volume-nav-link {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 0;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.volume-nav-link:hover {
  color: var(--gold-bright);
  letter-spacing: 0.36em;
}

.volume-nav-link.next {
  margin-left: auto;
}

/* ─── Volume page mobile tuning ─── */
@media (max-width: 700px) {
  .volume-hero { padding: 120px 20px 60px; min-height: 50vh; }
  .volume-body { padding: 60px 22px 80px; font-size: 17px; }
  .volume-body p:first-of-type::first-letter {
    font-size: 50px;
    margin: 4px 10px 0 0;
  }
  .volume-nav { padding: 40px 22px 60px; }
}

/* ═══════════════════════════════════════════════════════════
   ORIGINS PAGE — The Archive
   ═══════════════════════════════════════════════════════════ */

/* Active state for nav link on origins page */
.nav-links a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* Hero subtle distinction for origins page */
.origins-hero .volume-eyebrow {
  letter-spacing: 0.4em;
}

/* In-page TOC — sticky-ish navigation */
.origins-toc {
  background: rgba(20, 24, 36, 0.85);
  border-top: 1px solid rgba(199, 161, 92, 0.25);
  border-bottom: 1px solid rgba(199, 161, 92, 0.25);
  padding: 24px 40px;
}
.origins-toc-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.origins-toc-label {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  text-align: center;
}
.origins-toc ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.origins-toc ul a {
  font-family: 'Cormorant Garamond', serif;
  color: var(--parchment);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.origins-toc ul a:hover {
  color: var(--gold);
  border-bottom-color: rgba(199, 161, 92, 0.5);
}

/* Origins section structure */
.origins-section {
  margin: 0 0 48px 0;
  scroll-margin-top: 80px;
}
.origins-h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 60px 0 24px 0;
  text-align: center;
  line-height: 1.2;
}
.origins-h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 40px 0 18px 0;
  text-transform: uppercase;
}
.origins-lede {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.65;
  color: rgba(245, 232, 200, 0.92);
  text-align: center;
  margin: 0 auto 36px auto;
  max-width: 760px;
}
.origins-section p {
  font-size: 19px;
  line-height: 1.78;
}
.origins-aside {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(245, 232, 200, 0.7);
  border-left: 2px solid rgba(199, 161, 92, 0.4);
  padding: 8px 22px;
  margin: 28px 0;
  max-width: 720px;
}

/* Archive text — typewriter ASCII blocks (parchment paper effect) */
.archive-text {
  font-family: 'Special Elite', 'Courier New', monospace;
  background: rgba(245, 232, 200, 0.06);
  border: 1px solid rgba(199, 161, 92, 0.25);
  border-radius: 2px;
  padding: 28px 32px;
  margin: 24px 0;
  color: rgba(245, 232, 200, 0.92);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}
.archive-map {
  font-size: 12px;
  line-height: 1.4;
}
.archive-roster {
  text-align: left;
  max-width: 480px;
  margin: 24px auto;
  font-size: 16px;
}
.archive-caption {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(245, 232, 200, 0.65);
  text-align: center;
  margin: -8px 0 36px 0;
}

/* Lineage card — the four realms */
.origins-lineage-card {
  background: rgba(199, 161, 92, 0.06);
  border: 1px solid rgba(199, 161, 92, 0.3);
  padding: 28px 36px;
  margin: 36px 0;
  border-radius: 2px;
}
.origins-lineage-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 22px 0;
}
.origins-lineage-list {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.85;
  margin: 0;
  padding-left: 22px;
}
.origins-lineage-list li {
  margin-bottom: 8px;
}
.origins-lineage-list strong {
  color: var(--gold);
  font-weight: 600;
}

/* Guild Hall cards */
.guild-hall {
  background: rgba(245, 232, 200, 0.04);
  border: 1px solid rgba(199, 161, 92, 0.25);
  border-left: 3px solid var(--gold);
  padding: 28px 36px;
  margin: 32px 0;
  border-radius: 2px;
}
.guild-header {
  border-bottom: 1px solid rgba(199, 161, 92, 0.2);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.guild-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.guild-location {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 232, 200, 0.7);
  margin: 6px 0 0 0;
}
.guild-narrative {
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin-bottom: 18px;
}
.guild-council {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(199, 161, 92, 0.25);
}
.guild-council-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px 0;
}
.guild-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 24px;
  margin: 0;
}
.guild-roster-wide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.guild-roster > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(199, 161, 92, 0.15);
}
.guild-roster dt {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(199, 161, 92, 0.75);
  min-width: 70px;
}
.guild-roster dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--parchment);
  margin: 0;
  font-weight: 500;
}

/* Archive vignettes — Gordon, Adams */
.archive-vignette {
  margin: 36px 0;
}
.vignette-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 12px 0;
}
.vignette-aside {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 232, 200, 0.7);
  margin-top: 14px;
  text-align: center;
}

/* Shopkeepers grid */
.shopkeepers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin: 28px 0 36px 0;
}
.shopkeeper-town {
  background: rgba(245, 232, 200, 0.04);
  border: 1px solid rgba(199, 161, 92, 0.2);
  padding: 22px 26px;
  border-radius: 2px;
}
.shopkeeper-town h4 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 14px 0;
  text-align: center;
  border-bottom: 1px solid rgba(199, 161, 92, 0.25);
  padding-bottom: 10px;
}
.shopkeeper-town ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.85;
}
.shopkeeper-town li {
  padding: 4px 0;
}
.shop-special {
  font-style: italic;
  color: rgba(245, 232, 200, 0.55);
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

/* Elfin Council of Tanglewood */
.elfin-council {
  background: rgba(199, 161, 92, 0.05);
  border: 1px solid rgba(199, 161, 92, 0.3);
  padding: 28px 36px;
  margin: 28px 0;
  border-radius: 2px;
}
.council-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 18px 0 14px 0;
}
.council-label:first-child { margin-top: 0; }
.council-shoplist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.8;
}
.council-shoplist strong {
  color: var(--gold);
  font-weight: 600;
}

/* Trainers list — two-column */
.trainers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 32px;
  margin: 24px 0;
}
.trainers-list > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(199, 161, 92, 0.18);
}
.trainers-list dt {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: 500;
  min-width: 130px;
}
.trainers-list dd {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 232, 200, 0.85);
  margin: 0;
}

/* Companions */
.companions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.companion {
  background: rgba(245, 232, 200, 0.04);
  border: 1px solid rgba(199, 161, 92, 0.2);
  padding: 22px 26px;
  border-radius: 2px;
}
.companion h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 22px;
  color: var(--gold);
  margin: 0 0 12px 0;
  text-align: center;
}
.companion p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0;
}

/* Archivist sign-off */
.origins-archivist-sign {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  text-align: center;
  color: var(--gold);
  margin-top: 28px !important;
  letter-spacing: 0.05em;
}

/* Origins mobile */
@media (max-width: 700px) {
  .origins-toc { padding: 18px 20px; }
  .origins-toc ul { gap: 4px 14px; }
  .origins-toc ul a { font-size: 14px; }
  .origins-h2 { font-size: 30px; }
  .origins-section p { font-size: 17px; }
  .origins-lede { font-size: 19px; }
  .archive-text { padding: 20px 18px; font-size: 11px; }
  .archive-map { font-size: 9.5px; line-height: 1.3; }
  .guild-hall { padding: 22px 22px; }
  .guild-name { font-size: 22px; }
  .guild-roster { grid-template-columns: 1fr; }
  .origins-lineage-card { padding: 22px 22px; }
  .elfin-council { padding: 22px 22px; }
}

/* ═══════════════════════════════════════════════════════════
   ORPHAN ROW CENTERING — odd-count items center themselves
   instead of hanging left in the last row of the grid.
   Rules tier with breakpoints: 3-col → 2-col → 1-col grids
   each get their own orphan handling.
   ═══════════════════════════════════════════════════════════ */

/* ─── 2-COLUMN GRIDS ─── */
/* lands-grid is 2-col on desktop (collapses to 1-col below 700px) */
.lands-grid > .land-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 24px); /* match visual width of a regular column (gap=48px → half=24px) */
}
/* Reset on mobile when grid is 1-col */
@media (max-width: 700px) {
  .lands-grid > .land-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* ─── 3-COLUMN GRIDS (DESKTOP) ─── */
/* knights-grid (Players) and chronicles-grid: 3-col on wide screens */
.knights-grid > .knight-card:last-child:nth-child(3n+1) {
  grid-column: 2 / 3; /* one orphan → center column */
}
.knights-grid > .knight-card:nth-last-child(2):nth-child(3n+1) {
  grid-column: 1 / 2;
  justify-self: end;
  width: calc(100% - 18px); /* shift inward (gap=36px → half=18px) */
}
.knights-grid > .knight-card:last-child:nth-child(3n+2) {
  grid-column: 3 / 4;
  justify-self: start;
  width: calc(100% - 18px);
}

.chronicles-grid > .chronicle-card:last-child:nth-child(3n+1) {
  grid-column: 2 / 3;
}
.chronicles-grid > .chronicle-card:nth-last-child(2):nth-child(3n+1) {
  grid-column: 1 / 2;
  justify-self: end;
  width: calc(100% - 18px);
}
.chronicles-grid > .chronicle-card:last-child:nth-child(3n+2) {
  grid-column: 3 / 4;
  justify-self: start;
  width: calc(100% - 18px);
}

/* ─── KNIGHTS-GRID AT 2-COL BREAKPOINT (700px–1000px) ─── */
/* When knights-grid becomes 2-col, switch to the 2-col orphan rule */
@media (max-width: 1000px) {
  /* First, neutralize the 3-col rules */
  .knights-grid > .knight-card:last-child:nth-child(3n+1),
  .knights-grid > .knight-card:nth-last-child(2):nth-child(3n+1),
  .knights-grid > .knight-card:last-child:nth-child(3n+2) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
  /* Then apply the 2-col orphan rule */
  .knights-grid > .knight-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 18px); /* gap=36px → half=18px */
  }
}

/* ─── KNIGHTS-GRID AT 1-COL BREAKPOINT (below 600px) ─── */
/* No orphan possible in single-column layout — reset all rules */
@media (max-width: 600px) {
  .knights-grid > .knight-card:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* ─── CHRONICLES AT 1-COL BREAKPOINT (below 880px) ─── */
@media (max-width: 880px) {
  .chronicles-grid > .chronicle-card:last-child:nth-child(3n+1),
  .chronicles-grid > .chronicle-card:nth-last-child(2):nth-child(3n+1),
  .chronicles-grid > .chronicle-card:last-child:nth-child(3n+2) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}
