/* Hallmark · custom (tuned) · vibe: "매장 간판과 번호표 — 매장 색 면 위의 굵은 숫자"
 * paper #FFFFFF · ink #121212 · accent: store colour as a surface (fallback 차례온 #A83E2C)
 * display: Paperlogy 700/800 (numbers, titles) · body: Pretendard Variable
 * status: waiting / called / seated / no-show / cancelled — fixed colours, never the store colour
 * pre-emit critique: P4 H5 E4 S4 R4 V4
 * Source: docs/brand/tokens.json (ADS greys, 4px scale, 6px controls, no motion)
 */
@font-face {
  font-family: 'Paperlogy';
  src: url('/assets/fonts/Paperlogy-700-hangul-ext.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+AC00-D7A3;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('/assets/fonts/Paperlogy-800-hangul-ext.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+AC00-D7A3;
}
/* Declared last, so it is tried first: Latin, digits and the 2,350 common syllables. */
@font-face {
  font-family: 'Paperlogy';
  src: url('/assets/fonts/Paperlogy-700-ksx1001.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('/assets/fonts/Paperlogy-800-ksx1001.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard Variable';
  src: url('/assets/fonts/PretendardVariable-ksx1001.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand (tokens.json) */
  --color-paper: #ffffff;
  --color-surface: #f3f5f7;
  --color-ink: #121212;
  --color-muted: #3d4854;
  --color-rule: #dee3e8;
  --color-brand: #a83e2c;
  --color-focus: #a83e2c;
  --color-disabled: #dee3e8;
  --color-faint: #7b8590; /* placeholders and steps not reached yet */
  --color-danger: #a1271d;
  --color-danger-soft: #fbeceb;
  --color-band: #e9edf1;
  --color-on-brand: #ffffff;
  --color-brand-deep: #8a3122; /* hover on the brand colour */
  --color-brand-soft: #f8ece9;
  --color-photo: #e7e3dc; /* behind a store photo while it loads */
  --color-night: #16191d; /* staff top bar */
  --color-on-night: #ffffff;
  --color-night-muted: #c3cad2;

  /* status — text / soft fill / solid. Always shown with a word, never colour alone. */
  --status-waiting: #2a3440;
  --status-waiting-soft: #eef1f4;
  --status-waiting-solid: #4a5561;
  --status-called: #8a3f00;
  --status-called-soft: #fff1dc;
  --status-called-solid: #b45309;
  --status-seated: #12613a;
  --status-seated-soft: #e4f3ea;
  --status-seated-solid: #1a7f4b;
  --status-noshow: #8c1d18;
  --status-noshow-soft: #fbeceb;
  --status-noshow-solid: #b3261e;
  --status-cancelled: #4a5561;
  --status-cancelled-soft: #f3f5f7;
  --status-cancelled-solid: #5b6672;

  /* store theme — replaced at runtime from the store's colour (contrast-checked) */
  --color-store: #121212;
  --color-on-store: #ffffff;
  --color-store-text: #121212;
  --color-store-soft: #f3f5f7;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-display: 'Paperlogy', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-num-l: 112px;
  --text-num-xl: 200px;

  --weight-body: 400;
  --weight-medium: 550;
  --weight-strong: 700;
  --weight-num: 800;
  --weight-title: 700;

  --line-body: 1.6;
  --line-tight: 1.15;
  --tracking-tight: -0.025em;

  --radius-control: 6px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-none: 0;
  --icon-accent: #a83e2c;
  --rule-width: 1px;
  --focus-width: 2px;
  --focus-offset: 4px;
  --control-height: 48px;
  --touch-height: 88px;

  --opacity-disabled: 0.55;
  --opacity-active: 0.7;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-instant: 0ms;
}
