/* ==========================================================
   Bob Brooks for Congress — shared stylesheet
   ========================================================== */

:root {
  --blue: #1d4ed8;
  --blue-deep: #1e3a8a;
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --ink-muted: #555;
  --cream: #f4f1ea;
  --paper: #fafaf7;
  --rule: #d9d4c6;
  --yellow: #f5c518;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

/* HEADER */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand img { height: 52px; }
nav.primary ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
nav.primary a {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.primary a:hover,
nav.primary a.current {
  border-bottom-color: var(--blue);
  color: var(--blue-deep);
}

/* HERO */
.hero {
  position: relative;
  min-height: 640px;
  background: var(--ink);
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 20, 20, 0.85) 0%,
    rgba(20, 20, 20, 0.55) 50%,
    rgba(20, 20, 20, 0.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 120px 32px 96px;
  color: var(--cream);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 14px;
  padding: 8px 18px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  margin-right: 12px;
  vertical-align: middle;
}
.hero h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero h1 .accent { color: var(--blue); display: inline-block; }
.hero .tagline {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--yellow);
  margin-bottom: 20px;
  font-weight: 400;
}
.hero .dek {
  font-family: 'Lora', serif;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 640px;
  color: var(--cream);
}

/* PAGE HEADER (interior pages) */
.page-header {
  position: relative;
  background: var(--ink);
  padding: 96px 32px 72px;
  border-bottom: 6px solid var(--blue);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--blue) 0 20px,
    var(--ink) 20px 40px
  );
}
.page-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.005em;
}

/* SECTIONS */
section { padding: 96px 32px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-medium { max-width: 1040px; margin: 0 auto; }
.wrap-bio { max-width: 920px; margin: 0 auto; }
.wrap-narrow { max-width: 780px; margin: 0 auto; }

h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
h2 .accent { color: var(--blue); display: block; }
h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: 0.01em;
}
h4 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  margin: 28px 0 10px;
}
p { margin-bottom: 20px; }
p strong { color: var(--ink); font-weight: 700; }

/* HOME INTRO */
.intro {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.intro-kicker {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 16px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.intro-grid .photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.intro-grid .photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.intro-grid .photos img:nth-child(2) {
  margin-top: 32px;
}

/* HOME BIO TEASER */
.bio-teaser {
  background: var(--ink);
  color: var(--cream);
}
.bio-teaser h2 { color: #fff; }
.bio-teaser h2 .accent { color: var(--blue); }
.bio-teaser p { color: var(--cream); }
.bio-teaser p strong { color: #fff; }
.btn {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 16px;
  color: var(--ink);
  background: var(--yellow);
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid var(--yellow);
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: transparent;
  color: var(--yellow);
}

/* BIO PAGE — wider container, consistent type sizes */
.bio-wrap p,
.bio-wrap li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.bio-wrap figure {
  margin: 48px 0;
}
.bio-wrap figure img {
  width: 100%;
  border: 1px solid var(--rule);
}
.bio-wrap .section-label {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 22px;
  color: var(--blue);
  margin: 56px 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
  line-height: 1.1;
}

/* PLATFORM PAGE */
.platform-lead {
  background: var(--ink);
  color: var(--cream);
  padding: 88px 32px;
  border-bottom: 6px solid var(--blue);
}
.platform-lead .lead-headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.005em;
  max-width: 880px;
}
.platform-lead .lead-headline .accent { color: var(--blue); }

.reforms-section {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.reforms-eyebrow {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 14px;
}
.reforms-section h2 {
  margin-bottom: 18px;
}
.reforms-intro {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 36px;
  color: var(--ink-soft);
  max-width: 720px;
}
.reforms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: reform;
}
.reforms-list li {
  counter-increment: reform;
  position: relative;
  padding: 28px 0 28px 88px;
  border-top: 1px solid var(--rule);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.reforms-list li:last-child { border-bottom: 1px solid var(--rule); }
.reforms-list li::before {
  content: counter(reform, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: 'Anton', sans-serif;
  font-size: 38px;
  color: var(--blue);
  line-height: 1;
  letter-spacing: 0.02em;
}
.reforms-list li strong {
  display: block;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ISSUES ACCORDION */
.issues-section {
  background: var(--paper);
}
.issues-heading {
  margin-bottom: 12px;
}
.issues-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--ink-muted);
}
.issue-accordion {
  border-bottom: 1px solid var(--rule);
}
.issue-accordion:first-of-type {
  border-top: 1px solid var(--rule);
}
.issue-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}
.issue-accordion summary::-webkit-details-marker { display: none; }
.issue-accordion summary::marker { display: none; }
.issue-accordion summary:hover { color: var(--blue-deep); }
.issue-accordion summary:hover .issue-title { color: var(--blue-deep); }

.issue-accordion .issue-summary-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex: 1;
}
.issue-accordion .issue-num {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 56px;
}
.issue-accordion .issue-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1.15;
  transition: color 0.2s;
}
.issue-accordion .toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  position: relative;
}
.issue-accordion .toggle::before,
.issue-accordion .toggle::after {
  content: "";
  position: absolute;
  background: var(--blue);
  transition: transform 0.25s ease;
}
.issue-accordion .toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  margin-top: -1.5px;
}
.issue-accordion .toggle::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 3px;
  margin-left: -1.5px;
}
.issue-accordion[open] .toggle::after {
  transform: rotate(90deg);
}
.issue-accordion .issue-content {
  padding: 0 0 32px 76px;
  max-width: 880px;
}
.issue-accordion .issue-content p {
  font-size: 17px;
  line-height: 1.65;
}
.issue-accordion .issue-content ol,
.issue-accordion .issue-content ul {
  padding-left: 24px;
  margin: 16px 0;
}
.issue-accordion .issue-content li {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
}
.issue-accordion .issue-content ol li::marker {
  font-family: 'Anton', sans-serif;
  color: var(--blue);
}

/* ENDORSEMENTS PAGE — flat grid, no groups */
.endorse-intro {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 56px;
  max-width: 720px;
  color: var(--ink-soft);
}
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px 24px;
}
.endorser {
  text-align: center;
}
.endorser .photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
}
.endorser .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.endorser .photo.logo img {
  object-fit: contain;
  padding: 16px;
  background: #fff;
}
.endorser h4 {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  line-height: 1.15;
  font-weight: 400;
}
.endorser .role {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* FOOTER — minimal */
footer.site {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 32px 40px;
  border-top: 6px solid var(--blue);
  position: relative;
}
footer.site::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--blue) 0 20px,
    var(--ink) 20px 40px
  );
}
.foot-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-brand {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.foot-brand .accent { color: var(--blue); }
.foot-nav {
  list-style: none;
  display: flex;
  gap: 28px;
}
.foot-nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
}
.foot-nav a:hover { color: var(--blue); }
.foot-paid {
  max-width: 1240px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: rgba(244, 241, 234, 0.6);
  text-align: center;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================
   BLOG — listing & single post
   ========================================================== */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 96px;
}
.blog-loading { color: var(--ink-muted); }

.blog-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.blog-card-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}
.blog-card-title a { color: var(--ink); text-decoration: none; transition: color 0.18s; }
.blog-card-title a:hover { color: var(--blue); }

.blog-card-excerpt {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-deep);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.18s;
}
.blog-read-more svg { width: 16px; height: 16px; }
.blog-read-more:hover { color: var(--blue); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}
.pagination-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--rule);
  background: var(--paper);
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pagination-btn:hover { background: var(--cream); border-color: var(--blue); color: var(--blue-deep); }
.pagination-btn.pagination-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.post-main { padding: 64px 32px 96px; }
.post-article { max-width: 780px; margin: 0 auto; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.18s;
}
.post-back svg { width: 16px; height: 16px; }
.post-back:hover { color: var(--blue-deep); }

.post-header {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 36px;
  margin-bottom: 40px;
}
.post-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}
.post-excerpt {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}
.post-body { line-height: 1.75; }
.post-body h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  text-transform: uppercase;
  color: var(--ink);
  margin: 56px 0 18px;
}
.post-body h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 14px;
}
.post-body p { margin-bottom: 20px; font-size: 18px; color: var(--ink-soft); line-height: 1.7; }
.post-body ul, .post-body ol { margin: 0 0 20px 28px; }
.post-body li { font-size: 18px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 10px; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body blockquote {
  border-left: 4px solid var(--blue);
  background: var(--cream);
  padding: 24px 28px;
  margin: 36px 0;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.post-body hr { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }
.post-loading { color: var(--ink-muted); padding: 64px 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-wrap { padding: 12px 20px; gap: 16px; }
  .brand img { height: 42px; }
  nav.primary ul { gap: 18px; }
  nav.primary a { font-size: 14px; letter-spacing: 0.08em; }
  section { padding: 64px 20px; }
  .hero-content { padding: 80px 20px 64px; }
  .hero { min-height: 520px; }
  .page-header { padding: 64px 20px 56px; }
  .platform-lead { padding: 56px 20px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid .photos img:nth-child(2) { margin-top: 0; }
  .foot-wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .foot-nav { flex-direction: column; gap: 12px; }
  .reforms-list li { padding-left: 0; padding-top: 64px; }
  .reforms-list li::before { top: 16px; }
  .issue-accordion .issue-content { padding-left: 0; }
}
@media (max-width: 560px) {
  nav.primary ul { gap: 12px; }
  nav.primary a { font-size: 12px; letter-spacing: 0.06em; }
  .endorse-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 16px; }
  .issue-accordion .issue-summary-left { gap: 12px; }
  .issue-accordion .issue-num { min-width: 40px; font-size: 14px; }
}
