/* ==========================================================================
   Base reset & typography
   ========================================================================== */

@import url('../vendor/fonts/pretendard.css');

/* SUIT(SUNN, OFL) 가변 굵기 — 화면 맨 위 큰 영어 제목 전용(v2.css --font-title). 본문은 아래 Pretendard. */
@font-face { font-family: 'SUIT Variable'; src: url('../assets/fonts/SUIT-Variable.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
/* 본문 글꼴 — Pretendard(OFL). 화면 맨 위 큰 영어 제목(SCHOOLS·steppY 등)만 SUIT를 쓴다(v2.css) */
/* 영문·숫자 글꼴 — Manrope(OFL). 지금은 쓰지 않음: 앱 전체가 애플 고딕(없으면 Pretendard, tokens.css) */
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-Variable.woff') format('woff'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Pretendard Variable'; src: url('../assets/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-900);
  background: #fff;
  min-width: 1120px; /* 데스크탑 전용 스코프 */
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus visibility — 키보드 접근성 */
:focus-visible {
  outline: 2.5px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--amber-200); color: var(--ink-900); }

/* ---- Layout primitives ---- */
.page-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.tnum { font-variant-numeric: tabular-nums; }

/* ---- Scrollbar (webkit) — 톤에 맞춘 얇은 스크롤바 ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--sky-300);
  border-radius: var(--radius-pill);
  border: 2px solid var(--cloud-50);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 화면이 옆으로 밀리지 않게 — 어느 기종에서든 화면 폭에 고정. clip 은 hidden 과 달리 스크롤 상자를 만들지 않아 sticky(위 검색 띠 등)가 그대로 동작한다 */
html, body { overflow-x: clip; }
