/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--color-primary-active); text-decoration: none; }

/* HTML hidden 속성을 컴포넌트 CSS(display: flex 등)가 덮어쓰지 않도록 강제 */
[hidden] { display: none !important; }

/* root body — Noto Sans KR, 16px / 1.5 / white */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--color-ink);
  background: var(--color-canvas);
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* selection */
::selection { background: var(--color-primary); color: var(--color-primary-on); }

/* typography utilities */
.t-h1 {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 700; line-height: 1.2;
}
.t-h2 {
  font-family: var(--ff-display);
  font-size: 24px; font-weight: 700; line-height: 1.25;
}
.t-h3 {
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 600; line-height: 1.3;
}
.t-subtitle {
  font-family: var(--ff-text);
  font-size: 14px; font-weight: 400; line-height: 1.4;
  color: var(--color-text-muted);
}
.t-body {
  font-family: var(--ff-text);
  font-size: 16px; font-weight: 400; line-height: 1.5;
}
.t-body-strong {
  font-family: var(--ff-text);
  font-size: 16px; font-weight: 600; line-height: 1.5;
}
.t-caption {
  font-family: var(--ff-text);
  font-size: 13px; font-weight: 400; line-height: 1.4;
}
.t-caption-strong {
  font-family: var(--ff-text);
  font-size: 13px; font-weight: 600; line-height: 1.4;
}
.t-fine-print {
  font-family: var(--ff-text);
  font-size: 11px; font-weight: 400; line-height: 1.4;
  color: var(--color-text-muted);
}
.t-tagline {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 700; line-height: 1.2;
}
/* legacy aliases (이전 코드 호환) */
.t-display-md { font-family: var(--ff-display); font-size: 24px; font-weight: 700; line-height: 1.25; }
.t-display-lg { font-family: var(--ff-display); font-size: 28px; font-weight: 700; line-height: 1.2; }
.t-lead       { font-family: var(--ff-text);    font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text-muted); }

.muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* visually hidden — screen reader only */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* heading default reset */
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; }
