/* Idle Dominion — the site.
 *
 * The palette is the game's own, taken from Theme/Palette.swift rather than
 * picked to look similar: parchment, ink, crimson, gold, stone. A site that is
 * merely in the same mood as the app it sells is the seam the whole design
 * doc exists to avoid.
 *
 * No fonts are fetched. A web font is a request to a third party on a page
 * whose entire selling point is that the app talks to nobody, and the system
 * serif stack is a closer match to Cinzel than anything worth the round trip.
 */

:root {
    --parchment: #f2e7ce;
    --parchment-shade: #dfd0af;
    --ground: #ede6d6;
    --ink: #2a2320;
    --ink-soft: #6b5f55;
    --crimson: #c4342e;
    --crimson-dark: #96231f;
    --gold: #e8b040;
    --gold-dark: #b8801f;
    --wood-dark: #55381f;
    --stone: #9a9187;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, .display {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

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

.wrap {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* The banner: crimson, with the gold rule the app's chrome uses. */
header.hero {
    background: linear-gradient(160deg, #da5a4e, var(--crimson-dark));
    border-bottom: 3px solid var(--gold-dark);
    color: var(--parchment);
    padding: 4.5rem 0 4rem;
    text-align: center;
}

header.hero h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(2.4rem, 8vw, 3.6rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tagline {
    display: inline-block;
    margin: 0.6rem 0 0;
    padding: 0.35rem 1.1rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--gold-dark);
    border-radius: 2px;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.lede {
    margin: 2.5rem 0 0;
    font-size: 1.25rem;
    color: var(--ink-soft);
}

main { padding: 3rem 0 4rem; }

section { margin: 0 0 3rem; }

h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 0.75rem;
    color: var(--wood-dark);
}

h3 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.4rem;
    color: var(--wood-dark);
}

.card {
    background: var(--parchment);
    border: 1px solid var(--parchment-shade);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.loop {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.loop li {
    background: var(--parchment);
    border: 1px solid var(--parchment-shade);
    border-left: 4px solid var(--crimson);
    border-radius: 8px;
    padding: 1rem 1.15rem;
}

.loop strong {
    display: block;
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    color: var(--crimson-dark);
    margin-bottom: 0.3rem;
}

.plain { list-style: none; padding: 0; }
.plain li {
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
}
.plain li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.85em;
    width: 8px; height: 8px;
    background: var(--gold-dark);
    border-radius: 1px;
}

footer {
    border-top: 1px solid var(--parchment-shade);
    padding: 2rem 0 3rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

footer nav a { margin-right: 1.25rem; }

.back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.meta { color: var(--ink-soft); font-size: 0.9rem; }

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #221d19;
        --parchment: #2e2823;
        --parchment-shade: #453b33;
        --ink: #efe6d6;
        --ink-soft: #b4a696;
        --crimson-dark: #e07a72;
    }
    header.hero { border-bottom-color: var(--gold-dark); }
}
