/* ============================================================
   Neat Design System — Typography Tokens
   Pretendard for everything. Hangul-first: word-break keep-all,
   tight tracking, generous line-height for readability.
   ============================================================ */

:root {
  /* ---- Families --------------------------------------------- */
  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  /* ---- Weights ---------------------------------------------- */
  --fw-light: 300; /* @kind other */
  --fw-regular: 400; /* @kind other */
  --fw-medium: 500; /* @kind other */
  --fw-semibold: 600; /* @kind other */
  --fw-bold: 700; /* @kind other */
  --fw-extrabold: 800; /* @kind other */

  /* ---- Type scale (px on a 16px root) ------------------------ */
  --fs-display: 48px; /* hero / cover */
  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-h3: 22px;
  --fs-h4: 19px;
  --fs-lg: 18px;
  --fs-body: 16px; /* base */
  --fs-sm: 15px;
  --fs-caption: 14px;
  --fs-micro: 13px;

  /* ---- Line heights ----------------------------------------- */
  --lh-tight: 1.25; /* @kind other */
  --lh-snug: 1.4; /* @kind other */
  --lh-normal: 1.6; /* @kind other */
  --lh-relaxed: 1.75; /* @kind other */

  /* ---- Letter spacing --------------------------------------- */
  --ls-tight: -0.4px; /* @kind other */
  --ls-default: -0.25px; /* @kind other */
  --ls-wide: 0.02em; /* @kind other */

  /* ---- Semantic aliases ------------------------------------- */
  --text-display-weight: var(--fw-extrabold);
  --text-heading-weight: var(--fw-bold);
  --text-body-weight: var(--fw-regular);
}

/* Apply sensible defaults wherever this DS is linked */
:where(body) {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-default);
  color: var(--text-body);
  word-break: keep-all; /* never split Korean words mid-character */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
