@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* ===== LEVANEY design tokens =====
   Two themes share one set of names. Change the look of the whole site here. The theme is chosen by <html data-theme="light|dark">
   (set by /js/theme.js: the visitor's saved choice, otherwise the operating-system setting). */
:root, :root[data-theme="light"] {
  color-scheme: light;
  /* surfaces: page < card < raised */
  --bg: #F6F5F3; --bg-2: #EEECE8; --surface: #FFFFFF; --surface-2: #FAF9F7; --surface-3: #F0EEEA; --field: #FFFFFF;
  --border: #E2DFDA; --border-2: #ECEAE6; --border-strong: #C9C5BE;
  /* text */
  --text: #17171C; --text-2: #55555F; --text-3: #6C6C77;
  /* brand accent (navy / blue): --accent for text, links and indicators, --accent-solid for filled buttons */
  --accent: #A4583D; --accent-2: #833F28; --accent-3: #C4795E; --accent-solid: #1D1D23; --accent-solid-h: #34343C; --accent-soft: #F4E6DF; --on-accent: #FFFFFF;
  --strong: #17171C; --on-strong: #FFFFFF; /* dark filled areas: active menu item, tags, footer, toasts */
  /* status colors (text on soft background, soft background, border) */
  --good: #167A3B; --good-soft: #E0F3E7; --good-b: #B5DFC4; --good-t: #0F5A2A;
  --warn: #9A5B00; --warn-soft: #FBF0D3; --warn-b: #EBD08A; --warn-t: #6E4300;
  --bad: #B42318; --bad-soft: #FCE5E2; --bad-b: #F1BDB7; --bad-t: #8A1C12; --bad-solid: #B42318;
  --info: #1D5FB8; --info-soft: #E1EDFB;
  --glow: rgba(164, 88, 61, .08); --scrim: rgba(8, 12, 24, .55); --log-bg: #17171C; --log-t: #CFD8EE;
  --shadow: 0 1px 2px rgba(14, 23, 48, .05), 0 6px 20px rgba(14, 23, 48, .05);
  --shadow-hover: 0 2px 4px rgba(14, 23, 48, .06), 0 14px 34px rgba(14, 23, 48, .10);
  --shadow-lg: 0 30px 80px rgba(14, 23, 48, .18), 0 4px 14px rgba(14, 23, 48, .06);
  --focus: 0 0 0 3px rgba(164, 88, 61, .28);
  --sheen: rgba(255, 255, 255, .22);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101115; --bg-2: #14151A; --surface: #191A20; --surface-2: #1E1F26; --surface-3: #23242C; --field: #14151A;
  --border: #34353E; --border-2: #2A2B33; --border-strong: #4A4B55;
  --text: #F5F5F5; --text-2: #A6A6B1; --text-3: #8B8C99;
  --accent: #E8BBA7; --accent-2: #F2D3C4; --accent-3: #D9A48D; --accent-solid: #E8BBA7; --accent-solid-h: #F0C9B8; --accent-soft: rgba(232, 187, 167, .12); --on-accent: #1A1411;
  --strong: #23242C; --on-strong: #F5F5F5;
  --good: #5FD08A; --good-soft: rgba(52, 190, 110, .14); --good-b: rgba(52, 190, 110, .35); --good-t: #9BE7B8;
  --warn: #F0B24B; --warn-soft: rgba(240, 178, 75, .14); --warn-b: rgba(240, 178, 75, .35); --warn-t: #F6D391;
  --bad: #FF8A7E; --bad-soft: rgba(255, 110, 96, .14); --bad-b: rgba(255, 110, 96, .38); --bad-t: #FFB4AB; --bad-solid: #D4483B;
  --info: #7DB2FF; --info-soft: rgba(110, 165, 255, .14);
  --glow: rgba(232, 187, 167, .09); --scrim: rgba(2, 4, 10, .66); --log-bg: #0B0C0F; --log-t: #C2CCE4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .38);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, .6), 0 4px 16px rgba(0, 0, 0, .4);
  --focus: 0 0 0 3px rgba(232, 187, 167, .34);
  --sheen: rgba(255, 255, 255, .10);
}
:root {
  /* legacy names used by older rules and inline styles: they point at the tokens above so both themes follow */
  --cream: var(--bg); --warm: var(--surface); --ink: var(--text); --muted: var(--text-2); --line: var(--border); --line-2: var(--border-2);
  --brown: var(--accent); --brown-d: var(--accent-2); --brown-l: var(--accent-soft); --olive: var(--good); --olive-l: var(--good-soft);
  --good-l: var(--good-soft); --warn-l: var(--warn-soft); --bad-l: var(--bad-soft);
  /* type: Pretendard for UI and body; DM Mono for small labels; Instrument Serif italic for emphasis. Other scripts use system fonts (see i18n.css). */
  --font-ui: "Geist", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, "Malgun Gothic", monospace;
  --font-serif: "Instrument Serif", Georgia, "Noto Serif KR", "Batang", serif;
  --font-head: "Space Grotesk", "Geist", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  --brand-word-display: none;
  /* shape: radii, 8px-based spacing, motion */
  --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --gap-btn: 10px; --gap-section: 24px; /* between buttons in a group (8-12) / between a page header with its buttons and the content below it (20-24; 16+ on phones) */
  --ease: cubic-bezier(.2, .8, .2, 1); --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
}

/* ===== typography tokens (one place for size, weight, line height, letter spacing) =====
   English: Space Grotesk for headings, Geist for text, DM Mono for numbers and small labels. Korean: Pretendard Variable for everything (headings and text are the same family, weights tuned).
   Japanese / Arabic: Geist for Latin letters, the system / Noto Sans Arabic font for the script. All fonts are SIL OFL 1.1 (see /fonts/LICENSES.md). */
:root {
  --fs-2xs: 11.5px; --fs-xs: 12.5px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-h3: 22px; --fs-h2: clamp(26px, 3.2vw, 40px); --fs-h1: clamp(30px, 4.4vw, 52px); --fs-display: clamp(44px, 7.4vw, 104px);
  --fw-text: 400; --fw-ui: 500; --fw-head: 600; --lh-text: 1.6; --lh-tight: 1.15;
  --ls-text: 0; --ls-head: -.025em; --ls-display: -.045em; --ls-label: .1em;
}
html[lang="ko"] { --fw-text: 400; --fw-ui: 500; --fw-head: 650; --ls-text: -.012em; --ls-head: -.035em; --ls-display: -.04em; --lh-text: 1.68; --lh-tight: 1.25; --ls-label: .02em; }
html[lang="ja"] { --ls-head: -.02em; --ls-display: -.03em; --lh-text: 1.7; --lh-tight: 1.25; --ls-label: .04em; }
html[lang="ar"] { --ls-text: 0; --ls-head: 0; --ls-display: 0; --lh-text: 1.75; --lh-tight: 1.35; --ls-label: 0; }
@media (max-width: 720px) { :root { --fs-md: 15.5px; --fs-sm: 14px; --fs-xs: 13px; } }
body { font-family: var(--font-ui); font-weight: var(--fw-text); line-height: var(--lh-text); letter-spacing: var(--ls-text); font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "kern", "liga"; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
html[lang="ko"] nav a, html[lang="ko"] .btn, html[lang="ko"] .chip, html[lang="ko"] .badge, html[lang="ko"] th, html[lang="ko"] label { font-weight: var(--fw-ui); }
html[lang="ko"] small, html[lang="ko"] .muted { letter-spacing: -.008em; }
.score, .fit-score b, .big, .hm-meters b, .lx-row u, .stat .big { font-variant-numeric: tabular-nums; }
