@font-face {
  font-family: Onest;
  src: url('../fonts/onest-lat.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: Onest;
  src: url('../fonts/onest-cyr.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: light;
  color: var(--ink);
  --sans: Onest, system-ui, sans-serif;
  --weight-label: 550;
  --weight-strong: 600;
  --weight-heading: 630;
  --radius-detail: 4px;
  --radius-control: 8px;
  --radius-panel: 10px;
  --canvas: #fff;
  --surface: #fff;
  --subtle: #f6f5f3;
  --ink: #20201f;
  --muted: #605e5a;
  --line: #e8e5e1;
  --control-line: #d7d2cc;
  --field-line: #8a847e;
  --accent: #fb8a1d;
  --accent-hover: #f57c09;
  --accent-ink: #884100;
  --on-accent: #211409;
  --focus: #a64f04;
  --tint: #fff0df;
  --positive-ink: #2b6149;
  --positive-tint: #eaf4ed;
  --danger-ink: #9a3655;
  --danger-tint: #f9ecef;
  --rating-ink: #795019;
  --rating-tint: #f9ebce;
  --shade: #26211c22;
  --overlay: #17151280;
}

:root[data-appearance='dark'] {
  color-scheme: dark;
  --canvas: #121212;
  --surface: #141414;
  --subtle: #1d1d1d;
  --ink: #ebebeb;
  --muted: #aeaeae;
  --line: #292929;
  --control-line: #3b3b3b;
  --field-line: #6c6c6c;
  --accent-hover: #ffa54d;
  --accent-ink: #ffa64e;
  --focus: var(--accent);
  --tint: #30241a;
  --positive-ink: #a7dbb9;
  --positive-tint: #233a30;
  --danger-ink: #f1aaba;
  --danger-tint: #472c35;
  --rating-ink: #e7bf7f;
  --rating-tint: #443722;
  --shade: #0005;
  --overlay: #0009;
}

.pwa-status-surface { display: none; }

@media (display-mode: standalone) {
  @supports (-webkit-touch-callout: none) and (-webkit-background-clip: text) {
    .pwa-status-surface {
      display: block;
      position: fixed;
      inset: 0 0 auto;
      z-index: 10;
      pointer-events: none;
      background-color: var(--pwa-status-color, var(--surface));
      /* WebKit samples fixed backgrounds taller than 10px. The empty text clip keeps this one off the page. */
      height: 11px;
      -webkit-background-clip: text;
      background-clip: text;
    }
  }
}

.appearance-trigger svg:first-child, [data-appearance='dark'] .appearance-trigger svg:last-child { display: none; }
[data-appearance='dark'] .appearance-trigger svg:first-child { display: block; }

[data-appearance='dark'] .category-card { --category-ink: var(--accent-ink); --category-tint: var(--tint); }
[data-appearance='dark'] .category-card[aria-current] .category-icon { color: var(--on-accent); }
