@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"),
    url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
    url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
    url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  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: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2");
  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: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2");
  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: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/pt-serif-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2");
  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;
}

:root {
  --bg-canvas: #f2f4f8;
  --bg-surface: #ffffff;
  --bg-raised: #e6ebf2;
  --hairline: #d5dde8;
  --hairline-strong: #b9c4d3;
  --border-input: #6e7b91;
  --text-primary: #111622;
  --text-secondary: #353f52;
  --text-muted: #556073;
  --accent: #cfa44e;
  --accent-hover: #b68932;
  --accent-edge: #876320;
  --on-accent: #111622;
  --accent-text: #7a5912;
  --focus-ring: #1d3b6e;
  --status-ok: #157347;
  --status-warn: #8a5604;
  --status-danger: #b82924;

  --font-display: "PT Serif", Georgia, serif;
  --font-ui: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

:root[data-theme="dark"] {
  --bg-canvas: #0f131a;
  --bg-surface: #151b24;
  --bg-raised: #1d2532;
  --hairline: #252f3f;
  --hairline-strong: #364458;
  --border-input: #66758e;
  --text-primary: #eceff5;
  --text-secondary: #c1c8d4;
  --text-muted: #949eb0;
  --accent: #cfa252;
  --accent-hover: #ddb368;
  --accent-edge: #8f6b29;
  --on-accent: #0f131a;
  --accent-text: #dfc07c;
  --focus-ring: #dfc07c;
  --status-ok: #3fdc8a;
  --status-warn: #e2a243;
  --status-danger: #f07067;

  --font-display: "PT Serif", Georgia, serif;
  --font-ui: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* Живой видоискатель камеры всегда оптически тёмный (белые визирные уголки и яркий изумруд поверх видеопотока) */
[data-surface="camera"] {
  --bg-canvas: #0f131a;
  --bg-surface: #151b24;
  --bg-raised: #1d2532;
  --hairline: #252f3f;
  --hairline-strong: #364458;
  --border-input: #66758e;
  --text-primary: #eceff5;
  --text-secondary: #c1c8d4;
  --text-muted: #949eb0;
  --accent: #cfa252;
  --accent-hover: #ddb368;
  --accent-edge: #8f6b29;
  --on-accent: #0f131a;
  --accent-text: #dfc07c;
  --focus-ring: #dfc07c;
  --status-ok: #3fdc8a;
  --status-warn: #e2a243;
  --status-danger: #f07067;
}
