/* vote-to-follow brand tokens. A theme overrides these custom properties (data-theme on <html>).
   The palette doubles as vote semantics: blue = a favor, red = en contra, light grey = abstención. */
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/bitter-normal-latin.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: "Bitter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/bitter-normal-latin-ext.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: "Source Serif 4"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/fonts/sourceserif4-normal-latin.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: "Source Serif 4"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/fonts/sourceserif4-normal-latin-ext.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: "Source Serif 4"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("/static/fonts/sourceserif4-italic-latin.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 {
  --font-display: "Bitter", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  /* type scale (≈1.25 major third) */
  --step--1: .8rem; --step-0: 1.0625rem; --step-1: 1.33rem; --step-2: 1.66rem; --step-3: 2.07rem; --step-4: 2.6rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2.5rem; --space-6: 4rem;
  --measure: 68ch;
  --max-width: 74rem;
  --radius: 2px;

  /* brand */
  --republica: #0B3D91;   /* primary blue */
  --rojo: #C8102E;        /* secondary red */
  --niebla: #DCE0E6;      /* tertiary light grey */
  --tinta: #14213D;       /* navy ink */
  --papel: #F5F6F8;       /* cool paper */

  /* roles */
  --bg: var(--papel); --surface: #FFFFFF; --text: var(--tinta); --muted: #4E5A73; --border: #D3D8E0;
  --accent: var(--republica); --accent-contrast: #FFFFFF; --rule: var(--rojo);
  --header-bg: var(--republica); --header-text: #FFFFFF; --header-muted: #C9D3E8;
  --yes: var(--republica); --no: var(--rojo); --abstain: #9AA3B2; --other: #6B7385;
  --left: #C8102E; --center: #6B7385; --right: #0B3D91; --transversal: #5B4B8A;
  --track: var(--niebla);
  --focus: #F2B705;
  --pill-bg: #3A4357; --pill-text: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0D1526; --surface: #141E35; --text: #E8ECF4; --muted: #A5AEC2; --border: #26324D;
    --accent: #8DB2FF; --accent-contrast: #0D1526; --rule: #E0465A;
    --header-bg: #0A1A3F; --header-text: #FFFFFF; --header-muted: #A9B7D6;
    --yes: #8DB2FF; --no: #FF6B7D; --abstain: #6B7590; --other: #8A93A8;
    --left: #FF6B7D; --right: #8DB2FF; --transversal: #B9A6F2; --track: #26324D;
    --pill-bg: #C9D1DE; --pill-text: #0D1526;
  }
}
