/* ============================================================
   Mike Nahas for Austin City Council, District 1 — site styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

:root {
  --green: #4f7942;
  --green-deep: #3d6032;
  --dem-blue: #0015bc;
  --red: #c0392b;
  --ink: #111;
  --paper: #fff;
  --muted: #555;
  --soft: #f5f5f3;
  --line: #ddd;
  --maxw: 960px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a.text-link { color: var(--green-deep); text-decoration: underline; }
a.text-link:hover { color: var(--green); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* ----- Header ----- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--ink);
}
.site-logo {
  width: 34px;
  height: 34px;
  color: var(--green);
  flex-shrink: 0;
}
.site-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.nav-toggle { position: absolute; left: -9999px; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 4px;
}
.nav-toggle-label:hover { background: var(--soft); }
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: none;
  flex-basis: 100%;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}
.site-nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 1rem;
}
.site-nav a:hover { color: var(--green); }
.site-nav a.current { color: var(--green); }

@media (min-width: 760px) {
  .nav-toggle-label { display: none; }
  .site-nav {
    display: block;
    flex-basis: auto;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 0.25rem;
    border-top: none;
    margin-top: 0;
  }
  .site-nav a {
    border-bottom: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
  }
  .site-nav a:hover { background: var(--soft); }
  .site-nav a.current { background: var(--soft); }
}

/* ----- Main / layout ----- */
main {
  flex: 1;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.page h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page p { font-size: 1.05rem; }
.page ul.bullets {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.page ul.bullets li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.page-photo {
  width: 100%;
  border-radius: 6px;
  margin: 1rem 0 1.5rem;
}
.next-page-link {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.next-page-link a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
}

/* ----- Hero block (homepage) ----- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
}
.tagline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.blurb {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.volunteer-line {
  font-size: 1.1rem;
  font-weight: 600;
}
.volunteer-line a {
  color: var(--red);
  text-decoration: underline;
}
.volunteer-line a:hover { color: #8a2820; }

/* ----- Photo block (homepage) ----- */
.photo-block {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto 1rem;
  padding: 0 1rem;
}
.hero-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.dem-badge {
  display: inline-block;
  background: var(--dem-blue);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  margin-top: 0.75rem;
}

@media (min-width: 760px) {
  .photo-block { padding: 0 1rem; }
  .dem-badge { font-size: 1rem; }
}

/* ----- Hero row: stacked on mobile, side-by-side on desktop ----- */
.hero-row {
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 760px) {
  .hero-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 1rem 2rem;
  }
  .hero-row .hero,
  .hero-row .photo-block {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .hero-row .tagline {
    font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  }
}

/* ----- "Where to go next?" block ----- */
.next {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 0 1rem 3rem;
}
.next-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.next-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.next-links a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--paper);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.next-links a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--soft);
}
.next-links a::after {
  content: ' →';
  color: var(--green);
}

@media (min-width: 760px) {
  .next-links { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}
.paid-for {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.footer-links a { color: var(--green-deep); text-decoration: underline; }
.footer-links a:hover { color: var(--green); }
.fair-practices {
  font-style: italic;
  margin-bottom: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.copyright { margin: 0; font-size: 0.8rem; }
