@charset "utf-8";

/* Self-hosted Latin subsets (scripts/fetch-fonts.mjs, SIL OFL 1.1 — see fonts/OFL-*.txt).
   Korean text uses the system font: a Korean web font cost 16 requests and ~280KB per page. */
@font-face {
    font-family: 'Anton';
    src: url('../fonts/anton-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    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;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    font-weight: 500 800;
    font-display: swap;
    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;
}

/* Neutral surfaces let stage light and the real hardware supply the colour. */
:root {
    --color-primary: #f5f5f3;
    --color-accent: #fff;
    --color-accent-text: #c6d6df;
    --color-signal: #f5f5f3;
    --color-brass: #d7d9d9;
    --color-paper: #c7c9ca;
    --color-bg: #101112;
    --color-bg-soft: #1c1e20;
    --color-bg-footer: #101112;
    --color-text: #e8e9ea;
    --color-text-muted: #b4b8ba;
    --color-border: rgba(255, 255, 255, 0.2);
    --color-white: #fff;

    --font-system: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', system-ui, sans-serif;
    --font-heading: 'Montserrat', var(--font-system);
    --font-body: var(--font-system);
    --font-display: 'Anton', sans-serif;

    --container-mobile: min(88vw, 560px);
    --container-tablet: min(88vw, 900px);
    --container-desktop: min(90vw, 1180px);
    --container-wide: min(76vw, 1480px);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    background: var(--color-bg);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.5;
    /* Break Korean text between words, not syllables; only words longer than a line wrap. */
    word-break: keep-all;
    overflow-wrap: break-word;
}

img,
picture,
video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
strong {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

:focus-visible {
    outline: 3px solid #2671ca;
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.screen_out {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip_link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--transition-fast);
}

.skip_link:focus {
    transform: translateY(0);
}
