/* =============================================================================
   Hekaya — shared design tokens and base styles
   Loaded by every page (public menu + dashboard), before the page's own CSS.
   ========================================================================== */

:root {
  /* Brand (from the original menu design) */
  --dough: #fbf0da;        /* page background */
  --paper: #fffaf0;        /* surfaces: cards, drawer */
  --crust: #5b2f14;        /* primary brand brown */
  --crust-dark: #43210c;   /* hover / pressed */
  --gold: #c8892b;         /* accents, focus ring */
  --gold-soft: #f4e1bb;
  --ink: #2a1709;          /* main text */
  --muted: #6f5844;        /* secondary text */
  --line: #e2cfa9;         /* borders, separators */
  --white: #fff;

  /* State colors: always paired with a label or icon, never color alone */
  --success: #1c7041;  --success-soft: #dcefe2;
  --danger: #a3301c;   --danger-soft: #f9e0d9;
  --info: #285a83;     --info-soft: #dde9f4;
  --warning: #8f5300;  --warning-soft: #fbe7c4;

  /* Type */
  --display: "Lalezar", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --body: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, sans-serif;

  /* Shape */
  --radius-sm: .5rem;
  --radius: .75rem;
  --radius-lg: 1rem;
  --pill: 999px;
  --shadow: 0 1px 2px rgb(42 23 9 / .06), 0 6px 18px rgb(42 23 9 / .07);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--dough);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
a { color: var(--crust); }

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

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Hidden <svg> that only holds <symbol> definitions */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Numbers: Latin digits keep their width so prices line up */
.num { font-variant-numeric: tabular-nums; }

/* Inline SVG icon (see src/Support/Icon.php) */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
