/*
  Oakland Parents for Quality Education
  Design direction: civic print. Franklin Gothic is the typeface of American
  ballots and newspapers; Public Sans is the U.S. government's web face.
  Flat color, heavy rules, ballot-oval markers. No shadows, no card lifts.
*/

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

:root {
  /* Palette (drawn from the OPQE logo) */
  --ink: #171d18;
  --paper: #ffffff;
  --green: #1e4d33;
  --green-dark: #12331f;
  --gold: #d09a2e;
  --gold-dark: #a87a1e;
  --tint: #f0f3ee;
  --rule: #171d18;
  --muted: #4c554e;

  /* Type */
  --display: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif;
  --body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1040px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Section kicker: small bold tag with a ballot oval */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.75rem;
}

/* The ballot oval — the fill-in bubble on a paper ballot */
.oval,
.kicker::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.kicker::before { background: var(--green); border-color: var(--green); }

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--green);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  min-width: 0;
}

.site-logo img { width: 34px; height: 34px; flex-shrink: 0; }
.site-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 10px 22px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--paper); }

.btn-outline-light {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}
.btn-outline-light:hover { background: var(--paper); color: var(--green-dark); }

.nav-links .btn { padding: 7px 16px; font-size: 13.5px; border-bottom: 2px solid var(--ink); }
.nav-links .btn:hover { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--green);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem var(--pad) 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--green-dark);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { color: var(--paper); margin-bottom: 1rem; }

.hero .lede {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.hero .kicker { color: var(--gold); }
.hero .kicker::before { background: var(--gold); border-color: var(--gold); }

/* The ballot card — signature element */
.ballot {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 1.5rem 1.5rem 1.25rem;
}

.ballot-head {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 0.35rem;
}

.ballot-sub {
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}

.ballot ul { list-style: none; margin: 0; padding: 0; }

.ballot li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(23, 29, 24, 0.25);
}
.ballot li:last-child { border-bottom: none; }
.ballot li .oval { transform: translateY(1px); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ballot { max-width: 420px; }
}

/* ---------- Sections ---------- */

section.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
section.band + section.band { border-top: 3px solid var(--rule); }
section.band.tint { background: var(--tint); }

/* Stats as ruled rows, not cards */
.stat-rows { margin: 1.5rem 0 1.75rem; border-top: 3px solid var(--rule); }

.stat-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.stat-row .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--green);
  line-height: 1;
}

.stat-row .label { font-size: 16px; }

@media (max-width: 560px) {
  .stat-row { grid-template-columns: 110px 1fr; }
}

/* Ballot-oval bullet lists */
ul.oval-list { list-style: none; margin: 0; padding: 0; }
ul.oval-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2.1rem;
  max-width: 46em;
}
ul.oval-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 18px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--green);
}

.section-note { color: var(--muted); max-width: 44em; }

/* Quote band */
.quote-band {
  background: var(--gold);
  border-top: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  max-width: 40em;
}

.quote-band cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Letters (index preview + letters page) */
.letter-list { border-top: 3px solid var(--rule); margin-top: 1.5rem; }

.letter-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.letter-entry .when {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.letter-entry .when strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.letter-entry h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.letter-entry p { max-width: 46em; }

.letter-entry .signers {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pdf-link {
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.pdf-link:hover { color: var(--green-dark); text-decoration-color: var(--gold); }

blockquote.pull {
  margin: 0.9rem 0 1rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--gold);
  font-style: italic;
  max-width: 42em;
}

@media (max-width: 640px) {
  .letter-entry { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* News */
.news-list { border-top: 3px solid var(--rule); margin-top: 1.5rem; }

a.news-entry {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

a.news-entry .meta {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

a.news-entry .meta span.date {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.75rem;
}

a.news-entry h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a.news-entry:hover h3 { text-decoration-color: var(--gold); }

a.news-entry p { color: var(--muted); max-width: 46em; margin-bottom: 0; }

/* Video */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border: 3px solid var(--rule);
  background: #000;
  margin-top: 1.5rem;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Values on green */
.values {
  background: var(--green);
  color: var(--paper);
  border-top: 3px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.values h2 { color: var(--paper); }
.values .kicker { color: var(--gold); }
.values .kicker::before { background: var(--gold); border-color: var(--gold); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
}

.value-item {
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.value-item h3 { color: var(--gold); margin-bottom: 0.4rem; }
.value-item p { color: rgba(255, 255, 255, 0.9); font-size: 15px; margin-bottom: 0; }

@media (max-width: 720px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* CTA */
.cta { text-align: left; }
.cta p { max-width: 40em; }

/* Footer */
footer {
  border-top: 3px solid var(--rule);
  padding: 2.5rem 0;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.footer-brand img { width: 30px; height: 30px; }

.disclosure {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 46em;
  flex: 1;
  min-width: 260px;
}
