/*
  WP Local Consent — brand tokens.
  Expects a sibling "fonts/" directory holding the three self-hosted woff2 files below
  (all OFL-licensed, sourced from Google Fonts — see fonts/README.md).
*/

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/public-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-variable.woff2") format("woff2");
}

:root {
  /* Color */
  --wlc-ink: #1B1D3A;
  --wlc-paper: #F5F1E8;
  --wlc-signal: #EF6A4C;
  --wlc-indigo: #3A3FA8;
  --wlc-leaf: #2F8F6F;

  /* Semantic aliases */
  --wlc-color-bg: var(--wlc-paper);
  --wlc-color-text: var(--wlc-ink);
  --wlc-color-accent: #B93C24;
  --wlc-color-link: var(--wlc-indigo);
  --wlc-color-status-ok: var(--wlc-leaf);

  /* Type */
  --wlc-font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --wlc-font-body: "Public Sans", "Inter", -apple-system, "Segoe UI", sans-serif;
  --wlc-font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --wlc-color-bg: var(--wlc-ink);
  --wlc-color-text: var(--wlc-paper);
  --wlc-color-accent: var(--wlc-signal);
  --wlc-color-link: #A9ADFF;
  --wlc-color-status-ok: #5FC9A1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wlc-color-bg: var(--wlc-ink);
    --wlc-color-text: var(--wlc-paper);
    --wlc-color-accent: var(--wlc-signal);
    --wlc-color-link: #A9ADFF;
    --wlc-color-status-ok: #5FC9A1;
  }
}
