/* Microsheep — stylesheet.
   Neutral, editorial, monochrome. All colors are defined once below —
   change them here and nowhere else. */

:root {
    /* Colors — the central place to change them.
       Same palette as the Grimma site, so the two feel like one family. */
    --bg: #f4ecdd;
    /* page background: warm parchment */
    --ink: #2b2118;
    /* body text: warm near-black */
    --muted: #6b5d4b;
    /* secondary text, placeholder labels */
    --accent: #6e3428;
    /* links: deep oxblood */
    --rule: #c9b998;
    /* hairlines, placeholder borders */
    --ph-bg: #ece1cb;
    /* placeholder fill, slightly darker than the page */

    /* Image corner rounding — tune to taste */
    --img-radius: 12px;

    /* Type stacks — same as the Grimma site */
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

figure {
    margin: 0;
}

figure img {
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: var(--img-radius);
}

/* Links: oxblood, underlined, thicker underline on hover */

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Layout containers */

.page-header,
main,
.page-footer {
    max-width: 64rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Skip link */

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 0;
    padding: 0.5rem 1rem;
    background: var(--ink);
    color: var(--bg);
}

/* Header */

.page-header {
    text-align: center;
    padding-block: 3rem 1rem;
}

.wordmark {
    font-family: var(--serif);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 3.5rem;
}

.wordmark a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: inherit;
}

.wordmark img {
    height: clamp(72px, 16vw, 112px);
    width: auto;
}

.headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    line-height: 1.08;
    text-wrap: balance;
    margin: 0 0 1.5rem;
}

.intro {
    max-width: 34em;
    margin: 0 auto;
}

/* Featured game */

.game {
    text-align: center;
    border-top: 1px solid var(--rule);
    padding-top: 3rem;
    margin-block: 3.5rem;
}

.game figure {
    max-width: 52rem;
    margin-inline: auto;
}

.game h2 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

/* The whole title + artwork block is one link to the Grimma site */

.game a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Image placeholders: flat tinted blocks with a small label */

.ph {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--ph-bg);
    border: 1px solid var(--rule);
    border-radius: var(--img-radius);
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Footer */

.page-footer {
    text-align: center;
    border-top: 1px solid var(--rule);
    margin-top: 4rem;
    padding-block: 2.5rem 2rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-block: 0 1.5rem;
}

.copyright {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}
