/* ── The World of Merr'onna ─────────────────────────────────────────── */
:root {
  --ink: #0e1420;
  --panel: #171f30;
  --panel-2: #1d2740;
  --parchment: #e9e2d0;
  --muted: #a99f88;
  --gold: #c9a45c;
  --gold-bright: #e6c780;
  --rule: #2c3752;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.19rem;
  line-height: 1.65;
}

h1, h2, h3, .brand { font-family: "Cinzel", Georgia, serif; letter-spacing: .04em; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #f3dfae; }

img { max-width: 100%; display: block; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { font-size: 1.05rem; color: var(--gold); white-space: nowrap; }
.brand:hover { color: var(--gold-bright); }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.nav-links a {
  font-family: "Cinzel", Georgia, serif; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--parchment); opacity: .85;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); opacity: 1; }
.nav-toggle { display: none; }

/* ── Heroes ── */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  min-height: 62vh; padding: 90px 20px;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,32,.55) 0%, rgba(14,20,32,.35) 45%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 700; color: #f5ead1;
  text-shadow: 0 2px 18px rgba(0,0,0,.75), 0 0 60px rgba(0,0,0,.5);
}
.hero .kicker {
  font-family: "Cinzel", Georgia, serif; letter-spacing: .35em; text-transform: uppercase;
  font-size: .85rem; color: var(--gold-bright); margin-bottom: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}
.hero .sub {
  margin-top: 18px; font-size: 1.25rem; font-style: italic; color: #efe7d4;
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
}
.hero-home { min-height: 88vh; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border: 1px solid var(--gold);
  font-family: "Cinzel", Georgia, serif; font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-bright); background: rgba(14,20,32,.55);
  border-radius: 2px; transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold); color: #14100a; }

/* ── Layout ── */
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--gold-bright);
  margin-bottom: 8px;
}
.section-title-rule {
  width: 90px; height: 2px; margin: 18px auto 42px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 1.15em; }
.prose h3 { color: var(--gold-bright); font-size: 1.25rem; margin: 1.8em 0 .6em; }
.lede::first-letter {
  font-family: "Cinzel", Georgia, serif; font-size: 3.4em; float: left;
  line-height: .78; padding: .08em .12em 0 0; color: var(--gold);
}
.closing {
  font-style: italic; color: var(--muted); border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px; margin: 2em 0 0;
}

figure.art { margin: 2.2em auto; max-width: 860px; }
figure.art img { width: 100%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.55); }
figure.art figcaption {
  text-align: center; font-size: .95rem; font-style: italic; color: var(--muted); margin-top: 10px;
}
figure.art.portrait { max-width: 480px; }
figure.art.emblem { max-width: 340px; }
figure.art.round { max-width: 460px; }
figure.art.round img { border-radius: 50%; box-shadow: 0 0 0 3px var(--rule), 0 10px 40px rgba(0,0,0,.55); }

/* two-column feature (image + text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.feature.reverse > .feature-img { order: 2; }
.feature-img img { width: 100%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.55); }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; display: block; border-radius: 4px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--rule);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(0,0,0,.6); }
.card img { width: 100%; height: 300px; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { color: var(--gold-bright); font-size: 1.25rem; margin-bottom: 8px; }
.card-body p { font-size: 1.02rem; color: var(--muted); line-height: 1.55; }
.card .tag {
  position: absolute; top: 14px; left: 14px; padding: 4px 12px;
  background: rgba(10,14,23,.82); border: 1px solid var(--gold);
  font-family: "Cinzel", Georgia, serif; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-bright); border-radius: 2px;
}

.link-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.link-item {
  padding: 20px 24px; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color .2s, transform .2s;
}
.link-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.link-item h3 { color: var(--gold-bright); font-size: 1.12rem; margin-bottom: 6px; }
.link-item p { font-size: .98rem; color: var(--muted); line-height: 1.5; }

/* ── Map ── */
.map-frame { position: relative; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.map-frame img { width: 100%; }
.map-hint { text-align: center; font-size: .95rem; font-style: italic; color: var(--muted); margin-top: 12px; }

/* ── Deity blocks ── */
.deity { padding: 44px 0; }
.deity + .deity { border-top: 1px solid var(--rule); }
.alignment {
  display: inline-block; font-family: "Cinzel", Georgia, serif; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--rule); padding: 4px 12px; border-radius: 2px; margin-bottom: 14px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule); padding: 44px 20px 54px; text-align: center;
  color: var(--muted); font-size: 1rem;
}
footer .brand { display: block; margin-bottom: 10px; font-size: 1.1rem; }
footer nav { margin-top: 14px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
footer nav a { font-size: .9rem; color: var(--muted); }
footer nav a:hover { color: var(--gold-bright); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature.reverse > .feature-img { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1.1rem; }
  .cards, .link-list { grid-template-columns: 1fr; }
  .card img { height: 220px; }
  .nav-inner { gap: 10px; }
  .nav-links { gap: 12px; }
  .hero { min-height: 48vh; padding: 60px 16px; }
  .hero-home { min-height: 72vh; }
}
