/* Minimalist black-and-white Press Start 2P theme. */

:root {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --muted: #888;
    --accent-red: #da7c6c;   /* warm tomato-soup / Aztec clay red */
}

.accent-red {
    color: var(--accent-red);
}

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

html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    line-height: 1.9;
    min-height: 100vh;
}

body {
    padding: 24px 24px 64px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 24px;
    border-bottom: 2px solid var(--fg);
    margin-bottom: 48px;
    flex-wrap: wrap;
}

nav a {
    color: var(--fg);
    text-decoration: none;
    padding: 10px 18px;
    border: 2px solid var(--fg);
    transition: background 120ms, color 120ms;
    font-size: 12px;
    letter-spacing: 0.5px;
}

nav a:hover {
    background: var(--fg);
    color: var(--bg);
}

nav a.active {
    background: var(--fg);
    color: var(--bg);
}

/* ── Page content ─────────────────────────────────────────────────── */
main {
    max-width: 720px;
    margin: 0 auto;
}

h1 {
    font-size: 52px;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 2px;
}

h2 {
    font-size: 18px;
    margin: 32px 0 12px;
}

p {
    margin: 16px 0;
}

a {
    color: var(--fg);
}

.tagline {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

/* ── Download button ──────────────────────────────────────────────── */
.download {
    text-align: center;
    margin: 48px 0;
}

.version {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--muted);
}

.download-btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    border: 2px solid var(--fg);
    transition: background 120ms, color 120ms;
}

.download-btn:hover {
    background: var(--bg);
    color: var(--accent-red);
}

.platform-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 10px;
}

/* ── Q&A ─────────────────────────────────────────────────────────── */
/* Q&A page needs more horizontal room than the 720 px global cap to
   keep the 24/20 px Press Start 2P type from wrapping awkwardly. */
body.qa-page main {
    max-width: 920px;
}

.qa-item {
    margin: 32px 0;
}

.qa-q {
    font-size: 24px;
    color: var(--fg);
    margin-bottom: 20px;
}

.qa-a {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.9;
    padding-left: 16px;
    border-left: 2px solid var(--muted);
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
    text-align: center;
    margin-top: 96px;
    color: var(--muted);
    font-size: 10px;
}

/* Short pages — pull the footer up and trim body padding so they fit
   in the viewport without scrolling on standard laptops. */
body.home-page,
body.download-page {
    padding-bottom: 24px;
}

body.home-page footer,
body.download-page footer {
    margin-top: 32px;
}

/* ── Small-screen overrides ──────────────────────────────────────────
   Press Start 2P is wide and rigid: the desktop sizes blow past the
   ~360 px viewport on phones, forcing horizontal scroll. Shrink the
   type stack across the board, drop body padding, and let long words
   like the contact email break mid-token so nothing pushes the page
   wider than the viewport. */
@media (max-width: 600px) {
    html, body {
        font-size: 10px;
        line-height: 1.7;
    }

    body {
        padding: 16px 12px 32px;
    }

    /* Aggressive break for the contact email (a single 25-char token)
       and any other long unbroken strings that would otherwise force a
       horizontal scroll. */
    p, .qa-q, .qa-a {
        overflow-wrap: anywhere;
    }

    nav {
        gap: 8px;
        padding: 8px 0 16px;
        margin-bottom: 28px;
    }

    nav a {
        font-size: 9px;
        padding: 8px 12px;
    }

    h1 {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 13px;
    }

    .tagline {
        font-size: 9px;
        letter-spacing: 0.5px;
        margin-bottom: 32px;
    }

    .version {
        font-size: 12px;
    }

    .download-btn {
        padding: 14px 24px;
        font-size: 11px;
    }

    .platform-note {
        font-size: 8px;
    }

    body.qa-page main {
        max-width: 100%;
    }

    .qa-item {
        margin: 24px 0;
    }

    .qa-q {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .qa-a {
        font-size: 12px;
        padding-left: 10px;
        line-height: 1.7;
    }

    footer {
        font-size: 9px;
        margin-top: 48px;
    }
}
