:root {
    /* Colors */
    --color-background:  #e0e1dd;
    --color-text:        #1b263b;
    --color-title:       #1b263b;
    --color-intro:       #0d1b2a;
    --color-heading:     #0d1b2a;
    --color-link:        #0d1b2a;
    --color-link-hover:  #0d1b2a;
    --color-divider:     #778da9;
    --color-copyright:   #0d1b2a;

    /* Typography */
    --font-heading: "Outfit", "Segoe UI", system-ui, sans-serif;
    --font-body:    "Nunito Sans", "Segoe UI", system-ui, sans-serif;

    /* Layout */
    --page-width: 46rem;
}

/* ---------- Base ---------- */

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

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

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

a {
    color: var(--color-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
    color: var(--color-link-hover);
}

h1, h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* ---------- Page layout ---------- */

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
}

main {
    flex: 1;
}

/* ---------- Header ---------- */

.site-header {
    margin-bottom: 3rem;
}

.site-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    letter-spacing: -0.01em;
    color: var(--color-title);
}

.intro {
    margin: 0.75rem 0 0;
    max-width: 36rem;
    color: var(--color-intro);
    font-size: 1.125rem;
}

/* ---------- Section headings ("Games") ---------- */

.section-title {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

/* ---------- Games ---------- */

.game-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.steam-widget {
    overflow: hidden;
}

.steam-widget iframe {
    display: block;
    border: 0;
    transform-origin: top left;
}

/* ---------- Footer ---------- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-divider);
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list a {
    font-weight: 600;
}

.link-list a:hover,
.link-list a:focus-visible {
    text-decoration-thickness: 2px;
}

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