/* ═══════════════════════════════════════════════
   CAULDRON SHARED STYLESHEET
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --obsidian:        #0a0a0c;
  --ash:             #1c1a1e;
  --malachite:       #1a3a2a;
  --malachite-mid:   #2a5a40;
  --malachite-bright:#3d8a60;
  --ember:           #c4621a;
  --ember-glow:      #e8832a;
  --gold:            #c9a84c;
  --gold-light:      #e8c96e;
  --lake:            #1a3a4a;
  --lake-bright:     #2a6080;
  --lake-vivid:      #3d8ab0;
  --text-main:       #d4c9b8;
  --text-dim:        #8a7e6e;
  --text-bright:     #f0e8d8;
  --rule:            rgba(201,168,76,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--text-main);
  font-family: 'IM Fell English', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── FIXED BACKGROUND TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 2px,
      rgba(255,255,255,0.007) 2px, rgba(255,255,255,0.007) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── NAV BAR ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.nav-home {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.nav-home:hover { color: var(--gold-light); }
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--malachite-bright); }
.nav-links a.active { color: var(--gold-light); }

/* ── PAGE WRAPPER ── */
.page { position: relative; z-index: 1; padding-top: 56px; }

/* ── LOCATION HERO ── */
.loc-hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.loc-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  filter: saturate(0.6) sepia(0.3);
}
.loc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,12,0.4) 0%, rgba(10,10,12,0.0) 40%, rgba(10,10,12,0.85) 100%);
}
.loc-hero-content { position: relative; z-index: 1; }

.loc-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.loc-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.loc-subtitle {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}
.loc-rule {
  width: 160px;
  height: 1px;
  margin: 1.6rem auto 0;
  opacity: 0;
  animation: fadeIn 0.8s 1s forwards;
}

/* ── CONTENT BODY ── */
.loc-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

.loc-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.loc-section.visible { opacity: 1; transform: none; }

.loc-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.loc-text {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-main);
}
.loc-text + .loc-text { margin-top: 1.2rem; }
.loc-text em { color: var(--gold-light); font-style: italic; }

/* ── STAT PILLS ── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.02);
  min-width: 110px;
}
.stat-pill-val {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  line-height: 1;
}
.stat-pill-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* ── NPC CARDS ── */
.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.npc-card {
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, background 0.25s;
}
.npc-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.04);
}
.npc-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.npc-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}
.npc-note {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ── FLAVOUR QUOTE ── */
.flavour-quote {
  border-left: 2px solid var(--gold);
  padding: 1.2rem 1.8rem;
  margin: 2rem 0;
  background: rgba(201,168,76,0.04);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-bright);
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--malachite-bright); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-emblem {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: rgba(61,138,96,0.4);
  display: block;
  margin-bottom: 0.6rem;
}
.footer-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── COLOUR ACCENTS PER CATEGORY ── */
.accent-malachite { color: var(--malachite-bright); }
.accent-ember     { color: var(--ember-glow); }
.accent-gold      { color: var(--gold-light); }
.accent-lake      { color: var(--lake-vivid); }
.accent-crimson   { color: #c04040; }
.accent-purple    { color: #9070c0; }

.border-malachite { border-color: rgba(61,138,96,0.4) !important; }
.border-ember     { border-color: rgba(196,98,26,0.4) !important; }
.border-lake      { border-color: rgba(42,96,128,0.4) !important; }
.border-crimson   { border-color: rgba(192,64,64,0.4) !important; }
.border-purple    { border-color: rgba(144,112,192,0.4) !important; }

.bg-malachite { background: linear-gradient(135deg, rgba(26,58,42,0.3), rgba(10,10,12,0.5)) !important; }
.bg-ember     { background: linear-gradient(135deg, rgba(50,25,10,0.3), rgba(10,10,12,0.5)) !important; }
.bg-lake      { background: linear-gradient(135deg, rgba(26,58,74,0.3), rgba(10,10,12,0.5)) !important; }
.bg-crimson   { background: linear-gradient(135deg, rgba(60,20,20,0.3), rgba(10,10,12,0.5)) !important; }
.bg-purple    { background: linear-gradient(135deg, rgba(30,20,50,0.3), rgba(10,10,12,0.5)) !important; }

@media (max-width: 600px) {
  .site-nav { padding: 0.8rem 1.2rem; }
  .nav-links { gap: 1rem; }
  .loc-body { padding: 2rem 1.2rem 4rem; }
}
