/*
Theme Name: WA Independents
Theme URI: https://washingtonindependents.org
Description: Public-records accountability for Washington politics. Reads as record, not argument — warm paper, hairlines, one column, provenance under every data block. Party color appears only as a 3px mark, never as a surface.
Author: Washington Independents
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Template: blockhead
Text Domain: wa-ind
*/

/*
 * Design tokens live in assets/css/tokens.css and components in
 * assets/css/components.css, both enqueued from inc/assets.php.
 * This file carries only the base element layer.
 *
 * tokens.css is generated — see design-tokens.json.
 */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
pre {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Visually hidden, still announced. Carried over from the design. */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* No motion on data — the design is explicit about this. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
