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

:root {
  --ink: #14110c;
  --ink-2: #1d1913;
  --ink-3: #2a241a;
  --line: #3a3224;
  --paper: #f7f1e3;
  --muted: #a89d85;
  --gold: #d9a441;
  --gold-hi: #f0cb7a;
  --gold-lo: #a8741a;
  --good: #5fbf86;
  --bad: #e0675d;
  --warn: #e3b04a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgb(0 0 0 / 35%);
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(1200px 600px at 80% -10%, #2b2212 0%, var(--ink) 55%) fixed;
  color: var(--paper);
  font: 400 16px/1.8 var(--font);
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.35; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }

a { color: var(--gold-hi); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
