/* Kepler Gaming - shared styles. Brand: Kepler Dynamix kit (navy/gold, Inter + Fraunces). */
:root {
  --navy: #0a1524;
  --navy-2: #101e33;
  --navy-3: #18294222;
  --panel: #111f35;
  --line: #22324b;
  --gold: #e3a83f;
  --gold-soft: #e3a83f22;
  --ember: #d9682b;
  --light: #e9eef6;
  --muted: #9fb0c6;
  --faint: #6c7d95;
  --radius: 12px;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--light);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f0bf63; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8em; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--light); text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--light); }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--light); }
.nav a.btn-discord, .nav a.btn-discord:hover { color: #fff; }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f0bf63; color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--light); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); color: var(--light); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78f5; color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 7px 14px; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Sections */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 110px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 20%, #e3a83f14, transparent 70%),
              radial-gradient(50% 60% at 10% 90%, #3a5a8a22, transparent 70%);
}
.hero .wrap { position: relative; }
.hero-orbit { position: absolute; right: -60px; top: 50%; width: 460px; transform: translateY(-50%); opacity: 0.16; pointer-events: none; }
@media (max-width: 860px) { .hero-orbit { display: none; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; gap: 48px; }
.grid > * { min-width: 0; }
@media (max-width: 640px) { section { padding: 56px 0; } .hero { padding: 64px 0 56px; } .signup { padding: 26px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem; }

/* Game feature (home page) */
.game-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.game-feature .art { min-height: 320px; }
.game-feature .body { padding: 40px; }
@media (max-width: 760px) { .game-feature { grid-template-columns: 1fr; } .game-feature .body { padding: 28px; } }

/* Placeholder art: swapped for real screenshots/key art later */
.art {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(55% 55% at 50% 70%, #d9682b55, transparent 70%),
    radial-gradient(35% 30% at 50% 78%, #e3a83f66, transparent 70%),
    linear-gradient(180deg, #0d1a2c, #1a1410);
  color: #f3d9a8; font-family: "Fraunces", Georgia, serif;
}
.art span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: "Inter", sans-serif; color: #f3d9a899; position: absolute; bottom: 14px; }
.art .title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; text-shadow: 0 2px 30px #d9682b88; padding: 20px; }
.shot { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); }

/* Game page tone: same brand, warmer */
body.forge .hero::before {
  background: radial-gradient(60% 80% at 75% 85%, #d9682b2e, transparent 70%),
              radial-gradient(40% 50% at 70% 90%, #e3a83f22, transparent 70%);
}
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid #e3a83f55; color: var(--gold); }

/* Signup */
.signup { background: linear-gradient(180deg, var(--panel), var(--navy-2)); border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; max-width: 520px; }
.signup input[type="email"] { flex: 1 1 240px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--navy); color: var(--light); font: inherit; }
.signup input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.signup .fine { font-size: 0.82rem; color: var(--faint); margin-top: 12px; margin-bottom: 0; }
.signup .msg { margin-top: 12px; font-size: 0.95rem; min-height: 1.4em; }
.signup .msg.ok { color: #7fd1a0; }
.signup .msg.err { color: #f08a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Devlog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list a { display: block; text-decoration: none; color: var(--light); }
.post-list a:hover h3 { color: var(--gold); }
.post-meta { font-size: 0.85rem; color: var(--faint); }
.prose { max-width: 680px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose p, .prose li { color: #d3dbe7; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--faint); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--light); }
.site-footer p { margin: 0; }
