/* === BASE STYLES === */

@font-face {
  font-family: "Inter";
  src: url("/vendor/fonts/Inter-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
}

button {
  cursor: pointer;
  font: inherit;
  /* color: inherit so buttons pick up the surrounding theme's text color
     instead of the UA default ButtonText (which renders black on dark
     surfaces — broke the hold-overlay vote buttons on dark themes). */
  color: inherit;
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input, select {
  font: inherit;
}

a {
  color: var(--accent);
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
