/* Shared web fonts for all markets. Keep versions pinned for consistent rendering. */

@font-face {
  font-family: 'NanumSquareRound';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/shared/fonts/nanum-square-round/NanumSquareRoundL.woff2') format('woff2');
}

@font-face {
  font-family: 'NanumSquareRound';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/shared/fonts/nanum-square-round/NanumSquareRoundR.woff2') format('woff2');
}

@font-face {
  font-family: 'NanumSquareRound';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/shared/fonts/nanum-square-round/NanumSquareRoundB.woff2') format('woff2');
}

@font-face {
  font-family: 'NanumSquareRound';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/shared/fonts/nanum-square-round/NanumSquareRoundEB.woff2') format('woff2');
}

:root {
  --site-font-family: 'Wanted Sans Variable', 'Noto Sans';
}

:root:lang(ko),
:root[data-language="kr"] {
  --site-font-family: 'NanumSquareRound', 'Wanted Sans Variable', 'Noto Sans';
}

/* The locale router uses vn as its Vietnamese language key. */
:root:lang(vi),
:root:lang(vn),
:root[data-language="vn"] {
  --site-font-family: 'Noto Sans', 'Wanted Sans Variable';
}

body, button, input, select, textarea {
  font-family: var(--site-font-family), 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
