/* 리셋·타이포·레이아웃 유틸만. 색·간격 토큰은 tokens.css, 부품은 components.css, 셸은 shell.css.
 * 불러오는 순서: 글꼴 css → tokens.css → base.css → components.css → shell.css → 화면 css */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* 한글 줄바꿈: 어절 단위로 끊고, 공백 없는 긴 영숫자만 넘칠 때 끊는다 */
html { word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: -0.01em;
  color: var(--color-text);
  background: var(--surface-canvas);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: var(--line-height-tight); letter-spacing: -0.01em; }
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
table { border-collapse: collapse; border-spacing: 0; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* 아이콘(Lucide 스프라이트) — 선 굵기·끝 모양은 use 안쪽으로 상속된다 */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* 레이아웃 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: 960px; }

/* 보조 */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--color-text-muted); }
.small { font-size: var(--font-size-sm); }
/* 영숫자만 이어진 값(운송장 번호·화물 번호·참조·URL)만 칸 안에서 끊는다 — 한글에는 쓰지 않는다 */
.code { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
