/* Dunow — a reaction game for the fold.
 *
 * Sibling to xgest.app / gososh.app / whatsfordinnertonight.org: same page
 * structure (header, brand, nav, container, footer, umbrella cross-promo), but
 * its own skin. Dunow is a game, so the site is dark, bold, and colourful — the
 * eight game tile colours as accents, medal gold for the primary action, and the
 * app's rounded-black display type. No build step, no JS required.
 */

/* ---- Variables ---- */

:root {
    --bg: #0e0f14;                 /* near-black game canvas */
    --bg-raise: #171922;           /* raised surface / cards */
    --fg: #f4f5f8;
    --fg-muted: #a6abba;
    --fg-tertiary: #6f7585;

    /* The eight Dunow tile colours (mirrors ColorToken in the app). */
    --red:    #e3383d;
    --orange: #f28c26;
    --yellow: #f7cc38;
    --green:  #34a854;
    --blue:   #2a70de;
    --purple: #8f38c7;
    --brown:  #825733;
    --slate:  #5c7387;

    --accent: var(--blue);         /* the app's tint */
    --gold:   #ffd54a;             /* medal gold — the primary CTA */
    --gold-dark: #e6b92e;

    --border: #262a36;
    --surface: #171922;

    --maxw: 42rem;

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text",
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-round: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset / base ---- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Header / nav ---- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-raise);
    padding: 0.9rem 0;
    margin-bottom: 2.5rem;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--fg);
    font-family: var(--font-round);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.primary-nav {
    display: flex;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.primary-nav a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.primary-nav a:hover { color: var(--gold); }

/* ---- Headings ---- */

h1, h2, h3 {
    font-family: var(--font-round);
    line-height: 1.15;
    color: var(--fg);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.9rem;
    margin: 0 0 0.6rem;
    font-weight: 900;
}

h2 {
    font-size: 1.6rem;
    margin: 2.8rem 0 0.8rem;
    font-weight: 800;
}

h3 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; font-weight: 700; }

p { margin: 0 0 1.1rem; }

/* Subtitle line right under the H1. */
.lede {
    font-size: 1.2rem;
    color: var(--fg-muted);
    margin: 0 0 1.6rem;
}

strong { color: var(--fg); font-weight: 700; }

hr { border: none; border-top: 1px solid var(--border); margin: 2.8rem 0; }

/* ---- Links ---- */

a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.15s ease;
}

a:hover { color: var(--gold-dark); }

/* ---- Hero rainbow rule (the eight tile colours) ---- */

.rainbow {
    height: 8px;
    border-radius: 999px;
    margin: 0 0 2rem;
    background: linear-gradient(90deg,
        var(--red)    0%,  var(--red)    12.5%,
        var(--orange) 12.5%, var(--orange) 25%,
        var(--yellow) 25%, var(--yellow) 37.5%,
        var(--green)  37.5%, var(--green)  50%,
        var(--blue)   50%, var(--blue)   62.5%,
        var(--purple) 62.5%, var(--purple) 75%,
        var(--brown)  75%, var(--brown)  87.5%,
        var(--slate)  87.5%, var(--slate)  100%);
}

/* ---- "Coming soon" CTA (medal-gold pill, not yet a link) ---- */

.cta-download-wrap { text-align: center; margin: 2rem 0 0.6rem; }

.cta-download {
    display: inline-block;
    padding: 0.9rem 2.1rem;
    background: var(--gold);
    color: #1a1400;
    font-family: var(--font-round);
    font-weight: 800;
    font-size: 1.08rem;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(255, 213, 74, 0.28);
}

/* The teaser badge is not a link yet — muted, no pointer. */
.cta-soon {
    display: inline-block;
    padding: 0.9rem 2.1rem;
    background: var(--bg-raise);
    color: var(--gold);
    border: 1.5px solid var(--gold);
    font-family: var(--font-round);
    font-weight: 800;
    font-size: 1.08rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.cta-note {
    text-align: center;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    color: var(--fg-muted);
}

/* ---- Feature cards ---- */

.card {
    background: var(--bg-raise);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    margin: 1rem 0;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Little coloured chip used inline for the tile colours in copy. */
.chip {
    display: inline-block;
    width: 0.78em; height: 0.78em;
    border-radius: 4px;
    vertical-align: -0.05em;
    margin: 0 0.05em;
}
.chip.red { background: var(--red); }
.chip.orange { background: var(--orange); }
.chip.yellow { background: var(--yellow); }
.chip.green { background: var(--green); }
.chip.blue { background: var(--blue); }
.chip.purple { background: var(--purple); }

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-raise);
    margin-top: 4rem;
    padding: 1.8rem 0;
    color: var(--fg-muted);
}

.site-footer .container { text-align: center; }

.site-footer .tagline {
    font-family: var(--font-round);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--fg);
}

.site-footer .umbrella { margin: 0.5rem 0 0.6rem; font-size: 0.92rem; }

.site-footer .umbrella a {
    text-decoration: none;
    border-bottom: 1px dotted var(--border);
    padding-bottom: 1px;
    color: var(--fg-muted);
}

.site-footer .meta { font-size: 0.88rem; margin: 0; color: var(--fg-tertiary); }
.site-footer a { color: var(--fg-muted); }

/* ---- Responsive ---- */

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.4rem; }
    .container { padding: 0 1.2rem; }
    .primary-nav { gap: 1rem; }
    .primary-nav a { font-size: 0.9rem; }
}
