/* pantheonlorekeepers.com: the game's Cosmos look (nebula, gold, Cinzel over Old Standard TT)
   on a plain static page. The fonts are the game's own subset WOFF2s. */

@font-face {
    font-family: 'Cinzel';
    src: url('/fonts/Cinzel-Variable.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
}
@font-face {
    font-family: 'Old Standard TT';
    src: url('/fonts/OldStandardTT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Old Standard TT';
    src: url('/fonts/OldStandardTT-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --space: #07040f;
    --ink: #efe6d2;
    --ink-muted: #c4b8d6;
    --gold: #e2b75a;
    --gold-hi: #f6dc94;
    --gold-lo: #a97a22;
    --panel: rgba(16, 9, 30, 0.78);
    --panel-edge: rgba(226, 183, 90, 0.28);
    --radius: 14px;
    --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --body: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background-color: var(--space);
    /* The nebula sits behind the whole page, fixed, dimmed toward the bottom so the lower
       sections read against near-black. */
    background-image:
        linear-gradient(180deg, rgba(7, 4, 15, 0.15) 0%, rgba(7, 4, 15, 0.55) 55%, rgba(7, 4, 15, 0.92) 100%),
        url('/img/nebula.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.6;
    min-height: 100vh;
}
/* iOS ignores fixed backgrounds and stretches them over the full page height instead. */
@supports (-webkit-touch-callout: none) {
    body { background-attachment: scroll; background-size: auto 100vh; background-repeat: no-repeat; }
}

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

/* `hidden` must win over any display rule (.btn sets inline-flex, which beat the browser's own
   [hidden] rule and showed the not-yet-filled-in Kickstarter and Steam buttons). */
[hidden] { display: none !important; }

a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); color: var(--gold-hi); text-align: center; letter-spacing: 0.02em; }
h3 { font-size: 1.35rem; letter-spacing: 0.03em; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 20;
    background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
    text-decoration: none; text-align: center; white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-gold {
    color: #1d1404;
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
    box-shadow: 0 0 0 1px rgba(255, 236, 180, 0.5) inset, 0 6px 24px rgba(226, 183, 90, 0.35);
}
.btn-gold:hover { color: #1d1404; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 236, 180, 0.7) inset, 0 8px 32px rgba(226, 183, 90, 0.5); }
.btn-outline {
    color: var(--gold-hi);
    background: rgba(10, 6, 20, 0.55);
    box-shadow: 0 0 0 1.5px var(--gold) inset;
}
.btn-outline:hover { color: #fff3cf; background: rgba(226, 183, 90, 0.14); }
.btn-large { min-height: 56px; padding: 14px 34px; font-size: 1.15rem; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 24px;
    padding: 10px max(16px, calc((100vw - 1120px) / 2));
    background: rgba(7, 4, 15, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 183, 90, 0.15);
}
.topbar-home {
    font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: #ddd5c6; text-decoration: none; white-space: nowrap;
}
.topbar-home span { color: var(--gold); }
.topbar-home:hover { color: #fff; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a {
    color: var(--ink-muted); text-decoration: none;
    font-family: var(--display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.topbar nav a:hover { color: var(--gold-hi); }
@media (max-width: 720px) {
    .topbar { gap: 12px; }
    .topbar nav { display: none; }
    .topbar .btn { margin-left: auto; }
    .topbar-home { font-size: 0.9rem; letter-spacing: 0.05em; }
    .topbar .wide-only { display: none; }   /* "Play"; the hero's big button spells it out */
}
@media (max-width: 360px) {
    .topbar-home span { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    /* A full first screen, capped so a tall monitor doesn't get a sea of empty sky. */
    min-height: min(calc(100vh - 64px), 860px);
    min-height: min(calc(100svh - 64px), 860px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 20px;
    padding: 48px 16px 72px;
    text-align: center;
}
.hero-logo { width: min(820px, 100%); }
.hero-logo img { filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.7)); }
.hero-tagline {
    margin: 0; max-width: 34ch;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    color: #fbf3e0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero-note { margin: 0; color: var(--ink-muted); font-size: 1rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 16px;
    scroll-margin-top: 64px;
}
.section-lede { max-width: 56ch; margin: 14px auto 0; text-align: center; color: var(--ink-muted); }

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.steps, .pantheons, .gallery, .socials { list-style: none; margin: 0; padding: 0; }

.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-top: 36px;
    counter-reset: step;
}
.step { padding: 26px 24px 24px; counter-increment: step; }
.step-pips { display: flex; gap: 6px; margin-bottom: 14px; }
.step-pips img { width: 36px; height: 36px; }
.step h3::before { content: counter(step) ". "; color: var(--gold); }
.step h3 { color: var(--ink); }
.step p { margin: 10px 0 0; color: var(--ink-muted); }
.step b { color: var(--ink); }

.pantheons {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-top: 36px;
}
/* Each pantheon's accent is its card frame's colour (Web/static/cards/frame-*.webp). */
.pantheon { padding: 24px 22px; border-top: 5px solid var(--accent); }
.pantheon h3 { color: var(--accent-text); }
.pantheon p { margin: 10px 0 0; color: var(--ink-muted); }
.pantheon .gods { font-size: 1rem; color: var(--ink); }
.pantheon .gods span {
    display: block;
    font-family: var(--display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-muted);
}
.pantheon-egyptian { --accent: #b79a2e; --accent-text: #e3c75a; }
.pantheon-greek    { --accent: #3f86e0; --accent-text: #8fbdf5; }
.pantheon-norse    { --accent: #3f9f4c; --accent-text: #86d391; }
.pantheon-shinto   { --accent: #c4473a; --accent-text: #f09a8e; }

.gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-top: 36px;
}
.gallery figure { margin: 0; }
.gallery img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--panel-edge);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}
.gallery figcaption { margin-top: 10px; text-align: center; }
.gallery figcaption b { display: block; font-family: var(--display); letter-spacing: 0.03em; }
.gallery figcaption span { font-size: 0.95rem; color: var(--ink-muted); }

.cta { padding: 44px 24px; text-align: center; }
.cta p { margin: 14px auto 0; max-width: 48ch; color: var(--ink-muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 28px; }
.socials a { font-family: var(--display); font-weight: 600; letter-spacing: 0.05em; }

.footer {
    padding: 32px 16px 44px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(226, 183, 90, 0.12);
    background: rgba(7, 4, 15, 0.85);
}
.footer p { margin: 4px 0; }

@media (max-width: 960px) {
    .pantheons, .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; }
    .section { padding: 56px 16px; }
}
@media (max-width: 420px) {
    .pantheons { grid-template-columns: 1fr; }
    .gallery { gap: 14px; }
    .hero-actions .btn { width: 100%; }
}
