/* ---------- Colors (edit these to rebrand) ---------- */
:root {
  --pine: #1F4D3A;
  --gold: #E0A526;
  --paper: #FAFAF7;
  --ink: #1C2321;
  --muted: #55605B;
  --sage: #E3EBE5;
  --line: #C9D4CC;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pine: #7FC4A2; --gold: #F0BE4E; --paper: #141A17; --ink: #E8EDEA;
    --muted: #A3AEA8; --sage: #1E2723; --line: #34413A;
  }
}
:root[data-theme="dark"] {
  --pine: #7FC4A2; --gold: #F0BE4E; --paper: #141A17; --ink: #E8EDEA;
  --muted: #A3AEA8; --sage: #1E2723; --line: #34413A;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-family: "Zilla Slab", Rockwell, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); color: var(--pine); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--pine); color: #fff;
  border-bottom: 5px solid var(--gold);
}
:root[data-theme="dark"] header { background: #10291F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header { background: #10291F; } }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .85rem; }
.brand { font-family: "Zilla Slab", Rockwell, Georgia, serif; font-weight: 700; font-size: 1.35rem; color: #fff; text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
nav a {
  display: block; padding: .4rem .75rem; border-radius: 4px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
}
nav a:hover { background: rgba(255,255,255,.14); }

/* ---------- Hero with photo ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 2.5rem; align-items: center; }
.photo {
  aspect-ratio: 4 / 5; width: 100%;
  background: var(--sage); border: 2px dashed var(--line); border-radius: 6px;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .95rem; padding: 1rem;
  box-shadow: 10px 10px 0 var(--gold);
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.office { color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); color: var(--pine); margin-bottom: .3em; }
.hero .lede { font-size: 1.2rem; max-width: 34rem; }
.election { display: inline-block; margin-top: .5rem; padding: .5rem .9rem; background: var(--gold); color: #1C2321; font-weight: 600; border-radius: 4px; }

/* ---------- Sections ---------- */
section.block { padding: 3.5rem 0; border-top: 1px solid var(--line); }
section.alt { background: var(--sage); }
.prose { max-width: 42rem; }

.issues { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 2.5rem; }
.issues li { border-left: 4px solid var(--gold); padding-left: 1rem; }
.issues p { color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.contact-grid dt { font-weight: 600; color: var(--muted); font-size: .95rem; }
.contact-grid dd { margin: .15rem 0 0; font-size: 1.1rem; }

footer { background: var(--pine); color: #fff; padding: 1.75rem 0; font-size: .9rem; }
:root[data-theme="dark"] footer { background: #10291F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer { background: #10291F; } }
.paid { display: inline-block; border: 1px solid rgba(255,255,255,.6); padding: .35rem .7rem; margin-bottom: .6rem; }
footer p { margin: 0; }

@media (max-width: 680px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .photo { max-width: 16rem; }
  .bar { justify-content: center; text-align: center; }
  nav ul { justify-content: center; }
}

/* ---------- Additions for this page ---------- */
.tagline { font-family: "Zilla Slab", Rockwell, Georgia, serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--ink); margin-bottom: .6em; }
.photo.has-img { padding: 0; border: 0; background: none; }

.intro { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 2.5rem; align-items: start; }
.intro figure { margin: 0; }
.intro img { border-radius: 6px; box-shadow: 8px 8px 0 var(--gold); }
.roles { margin: 0 0 1em; padding-left: 1.25rem; }
.roles li { margin-bottom: .35rem; }

.area { display: grid; grid-template-columns: 1fr minmax(0, 22rem); gap: 2.5rem; align-items: center; }
.map { margin: 0; background: #fff; border-radius: 6px; padding: 1rem; border: 1px solid var(--line); }
.map figcaption { font-size: .9rem; color: #55605B; margin-top: .5rem; text-align: center; }

.bring { list-style: none; margin: 0 0 1.25em; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.bring li { background: var(--gold); color: #1C2321; font-weight: 600; padding: .45rem .9rem; border-radius: 4px; }
.issues h3 { color: var(--ink); }

.vote { margin-top: 2.5rem; padding: 1.5rem; background: var(--sage); border-radius: 6px; }
.vote h3 { color: var(--pine); }
.vote p:last-child { margin: 0; }

@media (max-width: 680px) {
  .intro, .area { grid-template-columns: 1fr; }
  .intro figure { max-width: 14rem; }
}

.spaced { margin-top: 2.5rem; }

/* Text left, map right */
.area-side {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.area-side .prose { flex: 1 1 0; }
.area-side .map {
  flex: 0 0 22rem;   /* width of the map column */
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
}
.area-side .map img { width: 100%; height: auto; display: block; }
.area-side .map figcaption {
  font-size: .9rem;
  color: #55605B;
  text-align: center;
  margin-top: .5rem;
}

/* Stack on phones */
@media (max-width: 680px) {
  .area-side { flex-direction: column; align-items: stretch; }
  .area-side .map { flex-basis: auto; max-width: 22rem; }
}
.side-photo {
  flex: 0 0 18rem;   /* width of the photo column */
  margin: 0;
}
.side-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--gold);
}
.side-photo figcaption {
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
  margin-top: .75rem;
}

@media (max-width: 680px) {
  .side-photo { flex-basis: auto; max-width: 18rem; }
}
