/* Grimma — stylesheet.
   Warm parchment storybook look: flat colors, hairline rules, serif
   headings. All colors are defined once below — change them here and
   nowhere else. */

:root {
    /* Colors — the central place to change them */
    --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, chapter separators, placeholder borders */
    --ph-bg: #ece1cb;
    /* placeholder fill, slightly darker than the page */

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

    /* Type stacks */
    --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);
}

/* Headings carry the book voice */

h1,
h2 {
    font-family: var(--serif);
}

/* 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: 1.5rem 2rem;
}

.studio-line {
    font-size: 0.9rem;
    margin: 0 0 2rem;
}

/* Studio imprint — the Microsheep lockup at half scale, linking home */

.imprint {
    margin: 0 0 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--rule);
}

.imprint a {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.1;
    color: inherit;
}

.imprint img {
    height: 56px;
    width: auto;
}

.game-title {
    font-size: clamp(2.25rem, 7vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

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

.tagline {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
    max-width: 22em;
    margin: 2rem auto 0.75rem;
}

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

/* Document pages (support, privacy).
   Kept as one compact content block so it could later be folded into the
   main page as a section without rewriting. */

.doc {
    max-width: 38em;
    padding-block: 1.5rem;
}

.doc h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.doc h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem;
}

/* 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;
    font-family: var(--sans);
    text-align: center;
}

/* Store badges */

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-block: 2rem 0;
}

.store-badge {
    height: 50px;
    width: auto;
}

/* Google's badge PNG carries built-in transparent padding, so it needs a
   larger box to visually match the Apple badge's height */
.play-badge {
    height: 58px;
    margin-block: -4px;
}

.badge-ph {
    background: var(--ph-bg);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0.75rem 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Alternating rows — the "chapters".
   DOM order is always image-then-text, so on phones every row stacks
   image-above-text; the left/right alternation is purely visual and
   only exists at the wide breakpoint. Each chapter opens with a
   hairline rule. */

.row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid var(--rule);
    padding-top: 3rem;
    margin-block: 3rem;
}

/* First chapter rule sits closer to the header badge, mirroring the
   imprint-rule-to-title gap above */
main > .row:first-of-type {
    margin-top: 0;
}

.row-text h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.row-text p {
    margin: 0;
    max-width: 34em;
}

.award-title {
    font-weight: 600;
}

.award-detail {
    color: var(--muted);
}

@media (min-width: 700px) {
    .row {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .row:nth-of-type(even) {
        flex-direction: row-reverse;
    }

    .row > * {
        flex: 1;
        min-width: 0;
    }
}

/* Footer */

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

.promise {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

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

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