:root {
  --bg: #0a0808;
  --bg-2: #120e0e;
  --ink: #e8dcc8;
  --muted: #a89884;
  --gold: #d4af37;
  --ember: #c8702a;
  --crimson: #9b1c2c;
  --crimson-deep: #5c1018;
  --silver: #c8cad0;
  --rule: #3a302a;
  --card: #141010;
  --max: 1080px;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --display: Cinzel, Palatino, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 19px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); }
a:hover { color: var(--gold); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--bg); padding: 8px 12px; color: var(--gold); }

/* Nav sits above the banner, not over the painted title. */
.top {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
}
.top-inner, .wrap, .cta-bar-inner, .foot-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.top-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding: 14px 0;
}
.brand {
  font-family: var(--display); font-weight: 600; letter-spacing: .18em;
  color: var(--silver); text-decoration: none; font-size: 15px;
}
.brand:hover { color: var(--gold); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.top nav a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  letter-spacing: .04em;
}
.top nav a:hover { color: var(--gold); }
.btn {
  display: inline-block; text-decoration: none !important;
  background: var(--crimson); color: var(--ink) !important;
  border: 1px solid #c44;
  padding: .55em 1.15em; letter-spacing: .08em;
  font-family: var(--display); font-size: 13px; font-weight: 600;
}
.btn:hover { background: #b42233; color: #fff !important; border-color: var(--gold); }
.btn-ghost {
  background: transparent; color: var(--silver) !important;
  border: 1px solid var(--silver);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold) !important; background: transparent; }

.hero-art { background: #000; }
.hero-art picture, .hero-art img { width: 100%; }
.hero-art img { margin: 0 auto; }

.cta-bar {
  background: linear-gradient(180deg, #100a0a, var(--bg-2));
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 36px;
  text-align: center;
}
.cta-bar .status {
  margin: 0 0 14px; color: var(--silver);
  font-family: var(--display); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
section .wrap > h2 {
  font-family: var(--display); font-weight: 400; color: var(--gold);
  letter-spacing: .08em; font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 .3em; text-align: center;
}
.kicker {
  text-align: center; color: var(--muted); font-style: italic;
  margin: 0 0 1.8em; font-size: 1.12em;
}
.lede { font-size: 1.15em; max-width: 40em; margin: 0 auto 1.2em; }
section p { margin: 0 0 1em; }
section p:last-child { margin-bottom: 0; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px;
}
.pillars article, .cities article, .guide article, .horizon article {
  background: var(--card); border: 1px solid var(--rule); padding: 22px 22px 20px;
}
.pillars h3, .cities h3, .guide h3, .horizon h3, .community h3, .devlog h3 {
  font-family: var(--display); font-weight: 600; color: var(--gold);
  letter-spacing: .06em; font-size: 16px; margin: 0 0 .5em;
}
.pillars p, .cities p, .guide p, .horizon p { color: var(--ink); margin: 0; font-size: 17px; }

.lore-block { max-width: 40em; margin: 0 auto 1.4em; }
.lore-block h3 {
  font-family: var(--display); color: var(--silver); letter-spacing: .1em;
  font-size: 15px; margin: 1.6em 0 .4em; font-weight: 600;
}
.lore-block h3:first-child { margin-top: 0; }

.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cities article { border-top: 3px solid var(--gold); }
.cities article.calderon { border-top-color: #b42333; }
.cities article.vesperine { border-top-color: #6a86a8; }
.cities article.thornmere { border-top-color: #4a6a3c; }
.cities .epithet {
  font-style: italic; color: var(--muted); margin: 0 0 .8em; font-size: 16px;
}
.cities dl { margin: 1em 0 0; font-size: 16px; }
.cities dt { font-family: var(--display); color: var(--silver); letter-spacing: .08em; font-size: 11px; text-transform: uppercase; margin-top: .7em; }
.cities dd { margin: 0; }

.guide { display: grid; gap: 16px; }
.guide article { display: grid; grid-template-columns: 8.5em 1fr; gap: 18px; align-items: start; }
.guide .label {
  font-family: var(--display); color: var(--gold); letter-spacing: .1em;
  font-size: 13px; margin: 0; font-weight: 600;
}

.horizon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.horizon h3 { color: var(--silver); }

.community { text-align: center; }
.community p { max-width: 36em; margin: 0 auto 1.2em; }
.note {
  color: var(--muted); font-size: 16px; font-style: italic; text-align: center;
  margin: 1.6em auto 0; max-width: 36em;
}
.map-figure { margin: 2.2em auto 0; max-width: 800px; }
.map-figure img { width: 100%; border: 1px solid var(--rule); background: #0a0808; }
.map-figure figcaption {
  text-align: center; color: var(--muted); font-style: italic;
  font-size: 16px; margin: .7em 0 0;
}

footer {
  padding: 40px 0 48px; color: var(--muted); font-size: 16px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--silver); text-decoration: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .pillars, .cities, .horizon { grid-template-columns: 1fr; }
  .guide article { grid-template-columns: 1fr; gap: 6px; }
  section { padding: 52px 0; }
  body { font-size: 18px; }
}

.banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.banners article { background: var(--card); border: 1px solid var(--rule); padding: 22px 22px 20px; }
.banners article.calderon { border-top: 3px solid #b42333; }
.banners article.vesperine { border-top: 3px solid #6a86a8; }
.banners article.thornmere { border-top: 3px solid #4a6a3c; }
.banners article.gravehollow { border-top: 3px solid #8a7a5a; }
.banners h3 {
  font-family: var(--display); font-weight: 600; color: var(--gold);
  letter-spacing: .06em; font-size: 16px; margin: 0 0 .8em;
}
.banners dl { margin: 0; }
.banners dt { color: var(--ink); font-weight: 600; margin-top: .7em; }
.banners dt:first-child { margin-top: 0; }
.banners dd { margin: 0 0 .15em; color: var(--muted); font-style: italic; font-size: 16px; }

.realm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.realm article, .horizon-one {
  background: var(--card); border: 1px solid var(--rule); padding: 22px 22px 20px;
}
.realm h3, .horizon-one h3 {
  font-family: var(--display); font-weight: 600; color: var(--gold);
  letter-spacing: .06em; font-size: 16px; margin: 0 0 .5em;
}
.realm p, .horizon-one p { margin: 0; font-size: 17px; }
.horizon-one { max-width: 36em; margin: 0 auto; text-align: center; }

/* Devlog: newest-first build notes. Add a 1.5.0 article at the top when it ships.
   #horizon / .horizon-one styles above are kept so an "On the horizon" section
   can be restored without restyling. */
.devlog { display: grid; gap: 16px; max-width: 40em; margin: 0 auto; }
.devlog article {
  background: var(--card); border: 1px solid var(--rule); padding: 22px 22px 20px;
}
.devlog p { margin: 0; font-size: 17px; }

@media (max-width: 860px) {
  .banners, .realm { grid-template-columns: 1fr; }
}

.auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.auth-wrap { flex: 1; width: min(32rem, calc(100% - 40px)); margin: 48px auto 64px; }
.auth-wrap .card {
  background: var(--card); border: 1px solid var(--rule); padding: 28px 28px 24px;
}
.auth-wrap h1 {
  font-family: var(--display); font-weight: 600; color: var(--gold);
  letter-spacing: .08em; font-size: 26px; margin: 0 0 .6em;
}
.auth-wrap label {
  display: block; font-family: var(--display); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--silver);
  margin: 1em 0 .35em;
}
.auth-wrap input[type="password"] {
  width: 100%; box-sizing: border-box;
  background: #120e0e; color: var(--ink);
  border: 1px solid var(--rule); padding: .6em .7em;
  font: 18px/1.4 var(--serif);
}
.auth-wrap input[type="password"]:focus {
  outline: 1px solid var(--gold); border-color: var(--gold);
}
.auth-wrap .hint { color: var(--muted); font-size: 15px; margin: .8em 0 1em; }
.auth-wrap .error { color: #e8a0a0; margin: .8em 0; }
.auth-wrap .ok { color: var(--gold); }
.auth-wrap button.btn {
  cursor: pointer; border: 1px solid #c44;
  margin-top: .4em;
}
.auth-wrap button.btn:disabled { opacity: .6; cursor: wait; }
