:root {
  --night: #0a1422;
  --night-2: #101c2e;
  --night-3: #18263b;
  --line: rgba(243, 195, 90, .18);
  --purple: #4a7fae;
  --purple-soft: #a9bccf;
  --gold: #f3c35a;
  --gold-deep: #d9a43c;
  --text: #e6eaef;
  --muted: #9aa7b5;
  --display: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --body: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 8%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #f3c35a88 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 86%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, #a9bccf88 50%, transparent 51%),
    var(--night);
  background-size: 420px 420px, 380px 380px, 520px 520px, 300px 300px, 460px 460px, 610px 610px, auto;
  color: var(--text);
  font: 18px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(243,195,90,.4); text-underline-offset: 3px; }
a:hover { color: #ffd98a; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--gold); letter-spacing: .02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: .2em 0 .6em; }
h3 { font-size: 1.25rem; margin: .2em 0 .4em; }
h3 a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 20px; }
.band { background: linear-gradient(180deg, transparent, var(--night-2) 12%, var(--night-2) 88%, transparent); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 20, 34, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); font: 700 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand em { font-style: normal; font-size: .8em; color: var(--purple-soft); }
nav { margin-left: auto; display: flex; gap: 26px; }
nav a { color: var(--text); text-decoration: none; font: 500 .82rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--gold); border-color: var(--gold); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--gold); font: 500 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; cursor: pointer; }

/* bits */
.eyebrow { font: 500 .8rem/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.eyebrow span { color: var(--purple-soft); }
.tag { font: 500 .72rem/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--purple-soft); margin: 0 0 6px; }
.lede { font-size: 1.22rem; color: var(--text); max-width: 40em; }
.sub { color: var(--muted); margin-top: -.4em; }
.more { font: 500 .85rem var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.btn { display: inline-flex; flex-direction: column; align-items: center; padding: 14px 26px; border-radius: 999px; font: 700 .85rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn small { font: 400 .72rem var(--body); letter-spacing: 0; text-transform: none; opacity: .75; margin-top: 3px; }
.btn-gold { background: linear-gradient(180deg, #ffd77a, var(--gold-deep)); color: var(--night); box-shadow: 0 6px 30px rgba(243,195,90,.25); }
.btn-gold:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(243,195,90,.35); }
.btn-ghost { border: 1px solid var(--purple); color: var(--text); background: rgba(74,127,174,.12); }
.btn-ghost:hover { color: var(--text); background: rgba(74,127,174,.28); }

/* hero */
.hero { position: relative; text-align: center; padding: 70px 0 90px; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(74,127,174,.28), transparent 70%); }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-emblem svg { width: min(300px, 62vw); height: auto; filter: drop-shadow(0 0 40px rgba(74,127,174,.45)); animation: float 7s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); text-transform: uppercase; margin: .15em 0 .25em; background: linear-gradient(180deg, #ffe39b, var(--gold) 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { display: block; font-size: .42em; letter-spacing: .3em; }
.hero .lede { margin: 0 auto 30px; color: var(--muted); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-emblem svg { animation: none; } html { scroll-behavior: auto; } }

/* features */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; margin: 40px 0 70px; }
.feature.flip .feature-img { order: 2; }
.feature-img img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: transform .3s; }
.feature-img:hover img { transform: scale(1.015); }
.feature-text p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 30px; }
.card { display: flex; flex-direction: column; background: var(--night-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--text); }
.card img { aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; background: #000; }
.card-body { padding: 22px 24px 26px; }
.card-body p:last-child { color: var(--muted); margin: 0; }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 24px 0; }
.post { display: block; padding: 26px 28px; border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: var(--radius); background: rgba(24,38,59,.55); text-decoration: none; color: var(--text); transition: border-color .2s, background .2s; }
.post:hover { border-color: var(--gold); background: var(--night-3); color: var(--text); }
.post p:last-child { color: var(--muted); margin: 0; }

.council { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.council p { color: var(--muted); }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,20,34,.5); color: var(--muted); font-size: .95rem; }
.stats b { display: block; font: 700 2.2rem/1 var(--display); color: var(--gold); margin-bottom: 4px; }

/* inner pages */
.game-hero { padding: 70px 0 30px; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(74,127,174,.25), transparent 70%); }
.game-hero .lede { margin: 0 auto 28px; color: var(--muted); }
.game-hero .wide { margin: 40px auto 0; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.game-hero.viking .wide { background: #e8e1d3; }
.tool-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; text-align: left; }
.tool-hero .lede { margin: 0 0 12px; }
.tool-hero p { color: var(--muted); }
.tool-hero img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.tool-hero .btn { margin-top: 12px; }

.prose { max-width: 46em; }
article.prose, .prose.closing { margin: 50px auto; }
.prose p, .prose li { color: #d3d9e0; }
.prose li { margin-bottom: .5em; }
.prose h3 { margin-top: 1.6em; }
.prose code { font-size: .88em; background: var(--night-3); padding: 2px 6px; border-radius: 5px; color: var(--purple-soft); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li::marker { color: var(--gold); }
.closing { text-align: center; }
.closing .btn { margin-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; margin-top: 70px; margin-bottom: 70px; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); margin: 0 auto; max-height: 520px; width: auto; }
.split .prose { max-width: none; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 50px auto; }
.pillar { padding: 26px; border-radius: var(--radius); background: var(--night-3); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.05rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .97rem; }
.section .pillars { margin: 30px 0 40px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 30px auto; }
.gallery img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }

[id] { scroll-margin-top: 84px; }
article.post-page { margin-top: 40px; }
.post-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.post-page h3 { font-size: 1.3rem; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 50px 0 30px; background: var(--night-2); }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.foot-brand { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .92rem; }
.foot-brand strong { font-family: var(--display); color: var(--gold); letter-spacing: .06em; }
.foot-brand svg { width: 64px; height: 64px; flex: none; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.foot-links a { color: var(--text); text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: var(--gold); }
.foot-small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 20px; margin: 10px 0 0; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .menu { display: block; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  nav.open { display: flex; }
  nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .feature, .council, .split, .tool-hero, .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-img, .split.flip > :first-child { order: 0; }
  .section { padding: 56px 16px; }
  .wrap { padding: 0 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
  .split img { max-height: 380px; }
}
