@font-face {
  font-family: "Pretendard Variable";
  src: url("fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "D2Coding", Menlo, Consolas, monospace;
  --type-size: .875rem;
  --type-display: 1.125rem;
  --type-title: var(--type-display);
  --type-section: var(--type-size);
  --type-label: var(--type-size);
  --type-body: var(--type-size);
  --type-support: var(--type-size);
  --type-caption: var(--type-size);
  --weight-title: 700;
  --weight-section: 650;
  --weight-label: 600;
  --text-display: 400 var(--type-display)/1.23 var(--font-ui);
  --text-display-strong: var(--weight-title) var(--type-display)/1.28 var(--font-ui);
  --text-title: var(--text-display-strong);
  --text-compact-title: var(--weight-title) var(--type-size)/1.32 var(--font-ui);
  --text-section: var(--weight-section) var(--type-section)/1.4 var(--font-ui);
  --text-label: var(--weight-label) var(--type-label)/1.4 var(--font-ui);
  --text-body: 400 var(--type-body)/1.5 var(--font-ui);
  --text-support: 400 var(--type-support)/1.5 var(--font-ui);
  --text-support-strong: var(--weight-label) var(--type-support)/1.5 var(--font-ui);
  --text-caption: 400 var(--type-caption)/1.4 var(--font-ui);
  --tracking-title: -.035em;
  --tracking-body: -.015em;
  --screen-gutter: 16px;
  --heading-inset: 16px;
  --heading-copy-gap: 8px;
  --page-inset: max(var(--screen-gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --screen-top: max(20px, env(safe-area-inset-top, 0px));
  --screen-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  --header-height: calc(var(--screen-top) + 44px + 8px);
  --accent: #8d83fc;
  --action: #655bea;
  --accent-ink: #5146c5;
  --on-accent: #161629;
  --accent-soft: #e0ddff;
  --tint: #f3f2ff;
  --ink: #23242b;
  --charcoal: #404450;
  --sub: #606470;
  --muted: #686c77;
  --secondary: #9296a1;
  --silver: #737784;
  --line: #e6e7ec;
  --mist: #f6f7f9;
  --paper: #fff;
  --glyph-surface: #f1f2f3;
  --white: #fff;
  --bg: var(--paper);
  --card: var(--white);
  --soft: var(--mist);
  --faint: var(--sub);
  --amber: #724927;
  --amber-bg: #fff4e9;
  --red: #aa342e;
  --red-bg: #fdefed;
  --shadow: none;
  --tap: 44px;
  /* Older component names also follow the shared palette. */
  --green: var(--accent);
  --green-deep: var(--charcoal);
  --mint: var(--tint);
}

::selection { background: var(--accent-soft); color: var(--ink); }

small, sub, sup { font-size: inherit; }
