/*
  Shared styles for the standalone static content pages (about, how-to-play,
  types-of-clue, 404). These pages load without the WASM runtime so they are instant and
  fully crawlable; they reuse the design tokens and card chrome from privacy.html. Kept as
  one stylesheet rather than repeating the block in every page.
*/

:root {
    --bg: #e9edf4;
    --surface: #ffffff;
    --hairline: #d9dee8;
    --ink: #16202e;
    --ink-dim: #6b7686;
    --accent: #4f46e5;
    --radius-lg: 18px;
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .16);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f141b;
        --surface: #171e28;
        --hairline: #283242;
        --ink: #eef2f8;
        --ink-dim: #97a3b6;
        --accent: #7c75ff;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 42rem;
    margin: 0 auto;
    padding: calc(1.5rem + env(safe-area-inset-top)) 1.25rem
             calc(2.5rem + env(safe-area-inset-bottom));
}

.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.5rem .5rem;
}

header {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

header img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.updated {
    margin: 0;
    color: var(--ink-dim);
    font-size: .8rem;
}

section {
    padding: 1rem 0;
    border-top: 1px solid var(--hairline);
}

section:first-of-type { border-top: none; }

h2 {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
    font-weight: 800;
}

h3 {
    margin: 1rem 0 .3rem;
    font-size: .95rem;
    font-weight: 700;
}

p { margin: 0 0 .6rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 .6rem; padding-left: 1.25rem; }
li { margin: 0 0 .35rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lead { color: var(--ink-dim); }

/* Clue-type / example callout: the worked "clue → answer" line. */
.example {
    margin: .4rem 0 0;
    padding: .5rem .7rem;
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    font-size: .9rem;
}

.example .answer { font-weight: 800; letter-spacing: .02em; }

.signals {
    margin: .3rem 0 0;
    font-size: .85rem;
    color: var(--ink-dim);
}

.signals .tag {
    display: inline-block;
    margin-right: .35rem;
    padding: .05rem .4rem;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.back {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: .9rem;
}

/* Footer row of cross-links between the content pages. */
.more-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
    font-size: .9rem;
}

.more-links a { margin-right: 1rem; }
