/* Confluence Indivisible — colors and fonts taken from the VoteNote newsletter */
:root {
  --red: #c64a4d;
  --red-soft: #d97677;
  --blush: #e6a8a3;
  --peach: #fbc6ad;
  --blue: #77a0bd;
  --navy: #34445d;
  --ink: #1c1c1b;
  --charcoal: #3f3d3a;
  --link: #07296f;
  --paper: #ffffff;
  --mist: #f4f5f8;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-headline: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Playwrite US Modern", cursive;

  --max: 1100px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: var(--link); }
a:hover { color: var(--red); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-top: 10px solid var(--charcoal);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.06);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand img { width: 56px; height: 56px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-family: "Sanchez", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 8px;
}

.org-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 20px;
}
.org-name span { display: block; }

.r { color: var(--red); }
.b { color: var(--blue); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.9;
  margin: 0;
}

.byline {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 6px 0 12px;
}

.lede {
  font-size: 1.15rem;
  max-width: 34ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #a93b3e; color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: #26324a; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.slogan {
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red-soft);
  outline: 4px dotted #fff;
  outline-offset: -18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  box-shadow: 0 12px 30px rgb(198 74 77 / 0.25);
}
.slogan p {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 0.95;
  margin: 0 0 16px;
  color: var(--ink);
}
.slogan small {
  font-family: "Sanchez", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Countdown band ---------- */
.band {
  background: linear-gradient(100deg, var(--navy) 0%, #1a2233 45%, var(--red) 80%, var(--peach) 100%);
  color: #fff;
  padding: 22px 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.1rem;
}
.band strong { font-family: var(--font-body); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-title {
  display: inline-block;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 8px 18px;
  margin: 0 0 8px;
}
.section-intro {
  font-family: var(--font-script);
  margin: 12px 0 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #a6a6a6;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card h3 {
  background: var(--charcoal);
  margin: 0;
  padding: 12px 18px;
  font-size: 1.1rem;
}
.card .card-body { padding: 18px; flex: 1; }
.card .card-lead {
  font-family: var(--font-script);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
}
.card p { margin: 0 0 12px; }
.card a { color: var(--link); font-weight: 700; }

/* Micro activism */
.micro {
  background: var(--mist);
}
.micro-head {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  max-width: 480px;
  margin: 0 auto;
}
.micro-head h2 {
  margin: 0;
  font-weight: 400;
  font-family: var(--font-script);
  font-size: 1.4rem;
}
.micro-head span { display: block; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; }
.micro .section-intro { text-align: center; }

.tile {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.tile h3 {
  color: var(--blush);
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.tile p { margin: 0; }
.tile a { color: var(--link); font-weight: 700; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Events */
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.event {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--mist);
  border-left: 6px solid var(--blue);
}
.event.highlight { border-left-color: var(--red); }
.event h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.2rem; }
.event p { margin: 0 0 8px; }
.event .meta { font-weight: 600; color: var(--red); }
.event a { font-weight: 700; }
.date {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  padding: 10px 0 12px;
}
.date span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--blush);
}

.alt { background: var(--mist); }
.alt .contact-box { background: var(--paper); }

/* Candidate records */
.records {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.record {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-bottom: 6px solid var(--red);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.record:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgb(52 68 93 / 0.3);
}
.record .race {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blush);
}
.record h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 8px 0 10px;
}
.record p { margin: 0 0 16px; flex: 1; }
.record .url { font-weight: 700; color: var(--peach); }

/* VoteNote newsletter */
.newsletter { background: var(--mist); }
.newsletter-head { max-width: 640px; margin-bottom: 32px; }
.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.issue {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px;
  align-items: start;
}
.issue img {
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform 0.15s ease;
}
.issue a:hover img { transform: scale(1.03); }
.issue h3 { margin: 4px 0 8px; color: var(--navy); font-size: 1.15rem; }
.issue p { margin: 0 0 14px; }
.tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
}
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); padding: 6px 14px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
button.btn { background: none; font-family: inherit; line-height: inherit; cursor: pointer; }
button.btn-outline { font-size: 0.95rem; }

/* Voter cheatsheet */
.cheatsheet-card { grid-template-columns: 420px 1fr; gap: 28px; padding: 24px; max-width: 960px; }
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cheatsheet-card + .cheatsheet-card { margin-top: 24px; }
.steps { margin: 0 0 14px; padding-left: 1.3em; }
.steps li { margin-bottom: 4px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-box {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 6px solid var(--red);
}
.contact-box a { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 36px 0;
  border-bottom: 10px solid var(--charcoal);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.site-footer a { color: var(--peach); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container,
  .contact,
  .issues { grid-template-columns: 1fr; }
  .cards,
  .tiles,
  .records { grid-template-columns: 1fr; }
  .slogan { width: min(100%, 320px); padding: 36px; }
}

@media (max-width: 600px) {
  .site-header { position: static; }
  .site-header .container { flex-direction: column; }
  .nav { justify-content: center; }
  section { padding: 48px 0; }
  .event { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
  .date { font-size: 1.8rem; }
  .issue { grid-template-columns: 110px 1fr; gap: 14px; }
  .cheatsheet-card { grid-template-columns: 1fr; padding: 18px; }
  .previews { max-width: 400px; margin: 0 auto; }
}

/* Cheatsheet viewer (cheatsheets/index.html). CSS-only selector, no JavaScript.
   The .viewer-anchor spans are position:fixed, so choosing a cheatsheet never scrolls or jumps the page.
   Chelan & Douglas is the default; #statewide flips the panes. To add one: add an anchor, a nav link and a pane,
   then copy the #statewide rules below for it. */
.cheatsheet-page { padding: 32px 0 64px; }
.cheatsheet-page .page-head { margin-bottom: 20px; }
.cheatsheet-page .wordmark { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 4px; }
.cheatsheet-page .byline { margin-bottom: 0; }
.viewer-anchor { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }
.viewer { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }

.viewer-nav {
  position: sticky; top: 96px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
  overflow: hidden;
}
.viewer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  color: var(--navy); text-decoration: none;
  border-left: 4px solid transparent;
}
.viewer-nav a + a { border-top: 1px solid var(--mist); }
.viewer-nav a:hover, .viewer-nav a:focus-visible { background: var(--mist); }
.viewer-nav img {
  width: 44px; height: 57px; flex: none;
  object-fit: cover; object-position: top;
  border: 1px solid #ddd; border-radius: 4px;
}
.viewer-nav strong { display: block; line-height: 1.25; }
.viewer-nav small { display: block; color: #55606f; line-height: 1.3; }
/* the selected entry (Chelan & Douglas unless #statewide is chosen) */
.viewer-nav .nav-chelan { background: var(--mist); border-left-color: var(--red); font-weight: 700; }
#statewide:target ~ .viewer .nav-chelan { background: transparent; border-left-color: transparent; font-weight: 400; }
#statewide:target ~ .viewer .nav-statewide { background: var(--mist); border-left-color: var(--red); font-weight: 700; }

.viewer-pane {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
  padding: 16px;
}
.pane-statewide { display: none; }
#statewide:target ~ .viewer .pane-chelan { display: none; }
#statewide:target ~ .viewer .pane-statewide { display: block; }

.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.sheet-bar h2 { margin: 4px 0 0; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.sheet { display: block; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.sheet img { display: block; width: 100%; height: auto; }
.sheet-hint { margin: 10px 0 0; color: #55606f; font-size: 0.9rem; }

@media (max-width: 800px) {
  .viewer { grid-template-columns: 1fr; gap: 14px; }
  .viewer-nav { position: static; display: flex; }
  .viewer-nav a { flex: 1 1 50%; padding: 10px 12px; }
  .viewer-nav a + a { border-top: none; border-left-color: transparent; }
  .viewer-nav img { display: none; }
  .viewer-pane { padding: 10px; }
}
