:root {
    --bg: #0f1214;
    --ink: #ffffffd2;
    --ink-soft: #cecece;
    --muted: #9a9a9a;
    --line: #2b2b2b;
    --accent: #4a9eff;
    --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --header-h: 62px;
    --edge: clamp(24px, 8vw, 160px);

    /* nav links, footer links, brand, copyright */
    --fs-xs: 0.85rem;
    /* body copy, paragraphs, lists */
    --fs-sm: 1rem;
    /* h2 / content headings */
    --fs-md: 2rem;
    /* h1 / page title */
    --fs-xl: 2.85rem;
    --fs-xl-mobile: 2.1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    line-height: 1.75;
    letter-spacing: 0.015rem;
    -webkit-font-smoothing: antialiased;
}

/* header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 18px var(--edge);
}

.site-brand {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-link {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    text-decoration: 2px underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.header-link:hover,
.site-brand:hover {
    color: #0f1214;
    background-color: #ffffff;
    text-decoration-color: #ffffff;
}

/* content */
.page {
    min-height: calc(100vh - var(--header-h));
    padding: 56px var(--edge) 64px;
}

.page-inner {
    max-width: 620px;
}

.page-title {
    margin: 0 0 28px;
    font-family: var(--font-sans);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
}

/* media */
.page-media {
    margin: 0 0 40px;
}

.page-media img,
.page-media video {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
}

.content-section {
    margin: 0 0 36px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-heading {
    margin: 0 0 12px;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--ink);
}

.content-section p {
    margin: 0 0 14px;
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: var(--ink-soft);
}

.content-section p:last-child {
    margin-bottom: 0;
}

.inline-link {
    color: var(--ink);
    text-decoration: 2px underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.inline-link:hover {
    color: #0f1214;
    background-color: #ffffff;
    text-decoration-color: #ffffff;
}

.content-section ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px var(--edge) 40px;
}

.footer-inner {
    max-width: 460px;
    text-align: left;
}

.copyright {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    text-decoration: 2px underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
    width: fit-content;
}

.footer-links a:hover {
    color: #0f1214;
    background-color: #ffffff;
    text-decoration-color: #ffffff;
}

/* responsive */
@media (max-width: 640px) {
    :root {
        --edge: 20px;
    }

    .page {
        padding: 40px var(--edge) 48px;
    }

    .page-title {
        font-size: var(--fs-xl-mobile);
        margin-bottom: 24px;
    }

    .page-media img,
    .page-media video {
        max-width: 240px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 16px;
    }

    .header-nav {
        gap: 20px;
    }
}