/* 기본 스타일: 글꼴, 초기화, 레이아웃 뼈대, 접근성 */

@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/Pretendard-Bold.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/barlow-condensed-latin-600-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/barlow-condensed-latin-700-normal.woff2")
    format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

h1 {
  font-size: var(--fs-2xl);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-xl);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 {
  font-size: var(--fs-lg);
  line-height: 1.35;
  font-weight: 700;
}
h4 {
  font-size: var(--fs-md);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.muted {
  color: var(--ink-2);
}
.num {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.92em;
}

@media (max-width: 760px) {
  .container {
    padding: 16px 14px 32px;
  }
  h1 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
