/* Match the 500 default display weight in WebKit while retaining the variable axes. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: optional;
  src: url(/assets/fonts/fraunces-latin-20261119-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f6f4ec;
    --bg-alt: #eee8dc;
    --surface: #fbf9f2;
    --text: #231f19;
    --muted: #5a5146;
    --accent: #833c28;
    --accent-hover: #653021;
    --forest: #352e25;
    --border: #c5b9a5;
    --studio-rule: #554a3d;
    --radius: 4px;
}

::selection {
    color: var(--text);
    background: #e9c8b5;
}

:focus-visible {
    border-radius: 2px;
}

.site-header {
    border-color: var(--studio-rule);
    background: var(--bg);
    backdrop-filter: none;
}

.nav {
    min-height: 72px;
}

.brand {
    min-height: 44px;
    color: var(--text);
}

.site-header .brand-mark,
.site-header .brand-caption {
    display: none;
}

.brand-name {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 650;
    letter-spacing: -.055em;
}

.nav-links {
    gap: clamp(16px, 2.3vw, 34px);
    margin-inline: auto;
}

.nav-links a {
    font-size: .875rem;
}

.nav-links .nav-cta {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
}

.nav-links .nav-cta:hover {
    background: transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: .35em;
}

.language-switch {
    gap: 0;
    padding-left: 7px;
    border-left: 1px solid var(--border);
}

.language-switch a {
    width: 38px;
    border-radius: 2px;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border-color: var(--border);
    border-radius: 3px;
}

.btn,
.document-content button[data-cookie-settings],
.released-store,
.demo-screen,
.screenshot-grid figure,
.cookie-consent,
.cookie-actions button,
.language-notice {
    border-radius: var(--radius);
}

.btn:hover {
    transform: none;
}

.btn-secondary,
.document-content button[data-cookie-settings] {
    min-height: 44px;
    border-color: var(--studio-rule);
    color: var(--text);
    background: transparent;
}

.btn-secondary:hover,
.document-content button[data-cookie-settings]:hover {
    color: var(--accent);
    background: var(--bg-alt);
}

.site-footer {
    padding-block: 36px 26px;
    border-top: 1px solid var(--studio-rule);
    background: var(--bg-alt);
}

.footer-grid {
    gap: 24px clamp(16px, 2.2vw, 34px);
    padding-block: 0;
}

.institutional-footer {
    grid-template-columns: minmax(185px, 1.55fr) repeat(4, minmax(0, 1fr));
}

.footer-grid h2 {
    color: var(--text);
    font-size: .875rem;
    margin-bottom: 7px;
}

.footer-grid div > a,
.footer-grid button {
    min-height: 36px;
    font-size: .875rem;
    text-underline-offset: 3px;
}

.footer-grid a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
}

.footer-grid .footer-company .footer-brand {
    min-height: 44px;
    padding-top: 0;
    color: var(--text);
    font: 650 1.9rem/1.15 var(--serif);
    letter-spacing: -.05em;
}

.footer-company p {
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.55;
}

.footer-company > a[href^="mailto:"] {
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 22px;
    font-size: .8125rem;
}

.document-hero {
    padding-block: clamp(42px, 7vw, 100px) clamp(32px, 5.7vw, 80px);
    border-color: var(--studio-rule);
    background: var(--bg);
}

.document-hero h1 {
    font-size: clamp(2.7rem, 5.7vw, 5.1rem);
    font-weight: 500;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.document-hero p:not(.eyebrow) {
    max-width: 62ch;
    margin-top: 20px;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.document-hero p.release-note {
    font-size: .8125rem;
    color: var(--muted);
}

.document-content {
    padding-block: clamp(36px, 5.5vw, 72px);
}

.document-content h2 {
    font-size: clamp(1.95rem, 3.35vw, 3.05rem);
    line-height: 1.16;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.document-content > .container > p,
.document-content > .container > ul {
    max-width: 67ch;
    font-size: 1rem;
    line-height: 1.8;
}

.document-content p > a:not(.btn),
.document-content li > a {
    color: var(--accent);
    overflow-wrap: anywhere;
}

.reading-document .container {
    max-width: 48rem;
}

.reading-document .document-content > .container > h2:not(:first-child) {
    margin-top: clamp(32px, 5vw, 58px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.reading-document .document-content .btn {
    margin-top: 18px;
}

.reading-document .document-content li + li {
    margin-top: 7px;
}

.support-document .document-hero .btn {
    width: auto;
    min-height: 46px;
    overflow-wrap: anywhere;
}

.support-product {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 5vw, 72px);
    margin-bottom: clamp(40px, 6vw, 84px);
}

.support-product p {
    max-width: 65ch;
    margin-top: 16px;
    color: var(--muted);
}

.document-content .support-links {
    padding-left: 0;
    margin-block: 2px 0;
    list-style: none;
    border-top: 1px solid var(--studio-rule);
}

.support-links li {
    border-bottom: 1px solid var(--border);
}

.support-links a {
    display: block;
    min-height: 44px;
    padding-block: 10px;
}

.support-games {
    margin-top: 24px;
    border-block: 1px solid var(--studio-rule);
}

.support-games article {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 42rem);
    gap: 24px;
    padding-block: 20px;
}

.support-games article + article {
    border-top: 1px solid var(--border);
}

.support-games h3 {
    font-size: clamp(1.45rem, 2.3vw, 1.85rem);
    line-height: 1.2;
}

.support-games p {
    color: var(--muted);
}

.game-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
}

.game-hero h1 {
    font-size: clamp(2.65rem, 5vw, 4.7rem);
}

.game-hero p.project-lead {
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.35;
}

.game-hero .release-badge {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
}

.game-hero .project-tags {
    margin-top: 20px;
}

.game-hero .project-tags li {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
}

.game-hero-trailer h2 {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    margin-bottom: 16px;
}

.game-hero-trailer .eyebrow {
    margin-bottom: 6px;
    font-size: .75rem;
}

.game-document .document-content + .document-content > .container {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.game-document .game-features article {
    padding: 17px 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.game-document .game-features p {
    font-size: 1rem;
    line-height: 1.65;
}

.game-document .tomato-home {
    border-color: var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
}

.error-page {
    min-height: 58vh;
}

.error-content .btn {
    margin-top: 0;
}

@media (max-width: 960px) {
    .nav {
        min-height: 66px;
    }

    .nav-links {
        gap: 4px 20px;
        margin-inline: 0;
    }

    .nav-ready .nav-links {
        border-color: var(--studio-rule);
        background: var(--bg);
        box-shadow: none;
    }

    .institutional-footer {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-company {
        grid-column: 1 / -1;
    }

    .game-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .game-hero-trailer {
        padding-top: 22px;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 760px) {
    .institutional-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .institutional-footer > div:last-child {
        grid-column: auto;
    }

    .footer-grid div > a,
    .footer-grid button {
        min-height: 44px;
    }

    .support-product,
    .support-games article {
        grid-template-columns: minmax(0, 1fr);
    }

    .support-games article {
        gap: 8px;
    }

    .document-hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .game-hero p.project-lead {
        font-size: 1.28rem;
    }
}
