/* DIY Drink Iris — shared design tokens (placeholder until the shop has a logo; SPEC.md §2a).
   Every page links this file and uses only these names; change colours here, not inside each page. */

/* Myanmar text: Walone (the founder's choice, the same files as the netZ brand kit), served from our own
   server so it works offline and where Google's sites are blocked. unicode-range keeps it to Myanmar
   letters; Latin uses the system font and Chinese the device's CJK font (PingFang on iPad, Noto Sans CJK
   on Android). */
@font-face {
  font-family: 'Iris Myanmar';
  src: url('/shared/fonts/walone-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200B-200D, U+25CC;
}
@font-face {
  font-family: 'Iris Myanmar';
  src: url('/shared/fonts/walone-700.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+1000-109F, U+A9E0-A9FF, U+AA60-AA7F, U+200B-200D, U+25CC;
}

:root {
  /* paper and ink; one accent (brown sugar). Drink colours belong to the cup art, not to the chrome. */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F2EEE7;
  --text: #1E1A16;
  --muted: #6F675E;
  --line: #E6E0D6;
  --primary: #7A4A26;
  --primary-strong: #5E3819;
  --primary-soft: #F3E8DD;
  --on-primary: #FFFFFF;
  --ok: #2F7D4F;        /* ready, paid */
  --warn: #A35F00;      /* waiting to pay, low stock */
  --danger: #B42318;    /* cancel, errors */

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(30, 26, 22, 0.12);   /* only for things that float: sheets, toasts */
  --font: 'Iris Myanmar', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB',
    'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --tap: 48px; /* smallest touch target */
}
/* Phones may ask for dark; counter tablets set data-theme="light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412; --surface: #1F1C19; --surface-2: #2A2622; --text: #F3EFE9; --muted: #A69E94;
    --line: #34302B; --primary: #D9A06B; --primary-strong: #E8B98C; --primary-soft: #3A2C20; --on-primary: #1E1A16;
    --ok: #6CC08B; --warn: #E0A040; --danger: #F27A6A; --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #161412; --surface: #1F1C19; --surface-2: #2A2622; --text: #F3EFE9; --muted: #A69E94;
  --line: #34302B; --primary: #D9A06B; --primary-strong: #E8B98C; --primary-soft: #3A2C20; --on-primary: #1E1A16;
  --ok: #6CC08B; --warn: #E0A040; --danger: #F27A6A; --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { min-height: var(--tap); cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
