/* ===========================================================================
   ELDERSPIRE — static content pages (landing / devlog / privacy)
   Standalone stylesheet for the crawlable HTML pages that live alongside the
   SPA. Deliberately NOT imported by the React app — these pages must work as
   plain HTML so search-engine bots (which don't run JS) see real content.
   Mirrors the in-game palette from src/styles/theme.css.
   Body copy uses a readable serif (a pixel font is unreadable in long paragraphs);
   the pixel font is reserved for the wordmark and headings.
   =========================================================================== */

:root {
  --bg:        #07070d;
  --bg2:       #0e0e1a;
  --panel:     #11111f;
  --border:    #2a2a48;
  --border-lit:#4a4a78;
  --accent:    #6de0c0;
  --accent2:   #b06cf0;
  --gold:      #c0a0ff;
  --text:      #d8d8ec;
  --text-dim:  #7c7ca6;
  --pixel: 'Press Start 2P', 'Courier New', monospace;
  --read: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 800px at 50% -10%, #14142a 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--read);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

img { image-rendering: pixelated; max-width: 100%; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* --- Top nav -------------------------------------------------------------- */
.nav {
  border-bottom: 2px solid var(--border);
  background: linear-gradient(#0d0d1af2, #0d0d1ad0);
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.nav a.brand {
  font-family: var(--pixel); font-size: 14px; letter-spacing: 2px;
  color: var(--accent); text-decoration: none; text-shadow: 0 0 8px var(--accent);
}
.nav .links { display: flex; gap: 18px; }
.nav .links a {
  font-family: var(--pixel); font-size: 9px; letter-spacing: 1px;
  color: var(--text-dim); text-decoration: none; text-transform: uppercase;
}
.nav .links a:hover { color: var(--accent); }

/* --- Hero ----------------------------------------------------------------- */
.hero { text-align: center; padding: 56px 0 28px; }
.hero img.sigil { width: 84px; filter: drop-shadow(0 0 12px var(--accent2)); }
.hero h1 {
  font-family: var(--pixel); font-size: 30px; letter-spacing: 4px;
  color: var(--accent); margin: 18px 0 10px; text-shadow: 0 0 10px var(--accent);
  font-weight: normal; line-height: 1.4;
}
.hero .tagline { font-family: var(--pixel); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; line-height: 2; }

/* --- Headings & prose ----------------------------------------------------- */
h2 {
  font-family: var(--pixel); font-size: 15px; letter-spacing: 1px; font-weight: normal;
  color: var(--accent2); margin: 40px 0 14px; line-height: 1.5;
  border-left: 3px solid var(--accent2); padding-left: 12px;
}
h3 { font-family: var(--pixel); font-size: 11px; color: var(--accent); margin: 26px 0 10px; font-weight: normal; line-height: 1.6; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }
strong { color: var(--accent); }
a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--text-dim); }
a:hover { border-bottom-color: var(--accent); }
hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--pixel); font-size: 12px; letter-spacing: 1px;
  color: #06121a; background: var(--accent); border: 2px solid #0a3a30;
  box-shadow: 3px 3px 0 0 #000; padding: 14px 26px; text-decoration: none;
  text-transform: uppercase; margin-top: 10px; transition: transform .05s, box-shadow .05s;
}
.btn:hover { border-color: #0a3a30; box-shadow: 4px 4px 0 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 0 #000; }
.btn.ghost { color: var(--text); background: var(--bg2); border-color: var(--border-lit); }

/* --- Cards / panels ------------------------------------------------------- */
.panel { background: var(--panel); border: 2px solid var(--border); box-shadow: 2px 2px 0 0 #000, 0 0 0 1px #000; padding: 18px 20px; margin: 16px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* --- Devlog post list ----------------------------------------------------- */
.post-meta { font-family: var(--pixel); font-size: 8px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.post-link { display: block; border-bottom: 1px solid var(--border); padding: 16px 0; }
.post-link h3 { margin: 4px 0; }

/* --- Footer --------------------------------------------------------------- */
footer { border-top: 2px solid var(--border); margin-top: 60px; padding: 28px 0 40px; }
footer .wrap { font-size: 13px; color: var(--text-dim); text-align: center; line-height: 1.9; }
footer a { color: var(--text-dim); }

.ad-slot { margin: 28px 0; text-align: center; min-height: 0; }

@media (max-width: 560px) {
  .hero h1 { font-size: 22px; }
  .nav .links { gap: 12px; }
  body { font-size: 16px; }
}
