/* Biu Wui: tokens. Warm paper, ink, one vermilion + gold accent family. Shared by the site and the app. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --cjk: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", "Noto Serif JP", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --paper: #f4ede1;
  --paper-2: #ece2d1;
  --card: #fffaf2;
  --ink: #201a15;
  --ink-2: #3d342c;
  --muted: #8a7e72;
  --faint: #bcb0a2;
  --line: rgba(70, 45, 20, 0.12);

  --red: #cf3a24;          /* vermilion: the chop, the accent */
  --red-deep: #a42a17;
  --red-soft: #f7ddd3;
  --gold: #b9862c;         /* red-packet gold: dividends, coins, "paid" */
  --gold-2: #e5bd5c;
  --gold-soft: #f6e7c2;
  --night: #1c1411;        /* the street at night, behind the neon */

  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; font-size: 16px; }
img, svg { display: block; }
code { font-family: var(--mono); font-size: 0.86em; background: rgba(70, 45, 20, 0.07); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.cjk { font-family: var(--cjk); font-weight: 700; letter-spacing: 0.02em; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.num .dec { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }
