/* Shared foundations and controls for the homepage and 404 page. */
@font-face { font-family: DisplayKo; src: url("../fonts/display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: NoteKo; src: url("../fonts/note.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --bg: #050505; --text: #f9fafb; --muted: #a7aab4; --red: #dc2626; --gold: #ca8a04; --yellow: #facc15; --steel: #334155; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; word-break: keep-all; text-wrap: balance; }
h2 { font: 400 clamp(30px, 4vw, 48px)/1.3 DisplayKo, "Malgun Gothic", sans-serif; }
h3 { font-size: 24px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.container { width: min(1152px, calc(100% - 40px)); margin-inline: auto; }
.container-medium { max-width: 1024px; }
.container-small { max-width: 896px; }
.brand { display: inline-block; white-space: nowrap; font-size: 28px; font-weight: 900; letter-spacing: -1.5px; line-height: 38px; }
.brand span, .domain-number { color: #ff3b42; }
.domain-number { font-size: 1.17em; font-weight: 900; }
.text-red { color: #ef4444; }
.text-gold { color: var(--gold); }
.text-yellow { color: var(--yellow); }
.centered { text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; width: 260px; max-width: 100%; min-height: 68px; padding: 18px 26px; border: 1px solid transparent; border-radius: 999px; font-size: 18px; font-weight: 700; line-height: 1.5; transition: background .2s, color .2s, box-shadow .2s; }
.button-primary { background: #fff; color: #050505; }
.button-primary:hover { background: var(--red); color: #fff; box-shadow: 0 0 25px #dc262670; }
.button-secondary { background: var(--steel); border-color: #6b7280; color: #fff; }
.button-secondary:hover { background: #475569; border-color: #9ca3af; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 16px; background: #fff; color: #000; z-index: 100; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

