/* ==========================================================================
   Wright For The People — Campaign Design System & Main Stylesheet
   ========================================================================== */

/* ---------- Self-Hosted Fonts ---------- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-600.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-400-italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-500-italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-600-italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-700-italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/public-sans-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/public-sans-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/public-sans-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/public-sans-700.ttf') format('truetype');
}

:root {
  --navy: #1B2A4A;
  --navy-deep: #101A30;
  --parchment: #F6F1E6;
  --parchment-dark: #EDE4D0;
  --gold: #C9A227;
  --gold-light: #E3C767;
  --clay: #9C4A32;
  --ink: #1D2420;
  --line: rgba(29, 36, 32, 0.14);
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(16, 26, 48, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 26, 48, 0.1);
  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  background-color: var(--parchment);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.highlight-gold-italic,
.text-gold-italic,
.hero-accent {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold-light);
  font-style: italic;
  font-weight: 500;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

/* ---------- Header & Navigation (Consistent Across All Pages) ---------- */

header.site-header,
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
  background-color: var(--parchment);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--parchment-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.1;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  opacity: 0.85;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--navy);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
  border-radius: 1px;
}

.nav-cta {
  background-color: var(--gold);
  color: var(--navy-deep) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover, .nav-cta.active {
  background-color: var(--gold-light);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ---------- Hero Banner (Standard across subpages & Home) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--parchment);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.08) 0, transparent 40%),
                    radial-gradient(circle at 85% 75%, rgba(201, 162, 39, 0.06) 0, transparent 45%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.65rem, 3.2vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
  white-space: nowrap;
}

.home-hero .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow,
.card-dark .eyebrow {
  color: var(--gold-light);
}

.eyebrow .dash {
  width: 24px;
  height: 2px;
  background-color: currentColor;
  display: inline-block;
  border-radius: 1px;
  flex-shrink: 0;
}

.eyebrow-center {
  justify-content: center;
  width: 100%;
}

.page-hero h1 {
  color: var(--parchment);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero p.subtitle {
  color: rgba(246, 241, 230, 0.85);
  font-size: 1.12rem;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .page-hero p.subtitle,
  .nowrap-desktop {
    white-space: nowrap;
  }
}

/* ---------- Layout Containers ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 32px;
}

.container-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 32px;
}

/* ---------- Buttons & CTAs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--parchment);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy-deep);
}

/* ---------- Cards & Sections ---------- */

.card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.card-dark {
  background-color: var(--parchment-dark);
  border-color: rgba(29, 36, 32, 0.18);
}

.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  background-color: rgba(201, 162, 39, 0.07);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}

.pull-quote blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.55;
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
}

/* ---------- Tally Marks Signature Motif ---------- */

.tally-box {
  background-color: var(--parchment-dark);
  border: 2px dashed var(--gold);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  margin: 32px 0;
}

.tally-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.tally-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tally-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.tally-item.for .tally-number { color: var(--navy); }
.tally-item.against .tally-number { color: var(--clay); }

.tally-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  color: var(--ink);
  opacity: 0.85;
}

/* Visual Tally Marks SVG representation */
.tally-visual {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.tally-group {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 36px;
}

.tally-line {
  width: 3px;
  height: 32px;
  background-color: var(--clay);
  border-radius: 2px;
  margin-right: 6px;
}

.tally-slash {
  position: absolute;
  width: 44px;
  height: 3px;
  background-color: var(--clay);
  top: 16px;
  left: 0;
  transform: rotate(-30deg);
  border-radius: 2px;
}

/* ---------- Data Tables (Land Use & News Archive) ---------- */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  text-align: left;
}

table.data-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background-color: var(--parchment-dark);
  padding: 14px 18px;
  border-bottom: 2px solid var(--navy);
}

table.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  vertical-align: top;
}

table.data-table tbody tr:hover {
  background-color: rgba(201, 162, 39, 0.06);
}

table.data-table th:last-child,
table.data-table td:last-child {
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-for {
  background-color: rgba(27, 42, 74, 0.1);
  color: var(--navy);
}

.badge-against {
  background-color: rgba(156, 74, 50, 0.12);
  color: var(--clay);
}

table.data-table th:nth-child(3),
table.data-table td:nth-child(3) {
  text-align: center;
}

.badge-subtext {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--clay);
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.85;
  text-align: center;
}

/* ---------- Photo Gallery Grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--parchment-dark);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.img-top,
img.img-top,
.img-focus-faces,
img.img-focus-faces {
  object-position: center 4% !important;
}

.img-align-top,
img.img-align-top {
  object-position: top center !important;
}

.img-contain,
img.img-contain {
  object-fit: contain !important;
  background-color: var(--parchment-dark);
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--ink);
}

.gallery-caption .event-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

/* ---------- Footer (Consistent Across All Pages) ---------- */

footer.site-footer {
  background-color: var(--navy-deep);
  color: var(--parchment);
  padding: 60px 32px 40px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1.4fr auto;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.12);
}

.footer-brand h3 {
  color: var(--parchment);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(246, 241, 230, 0.75);
  font-size: 0.9rem;
}

.footer-links h4, .footer-newsletter h4 {
  color: var(--gold-light);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(246, 241, 230, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1080px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(246, 241, 230, 0.55);
}

/* ---------- Responsive Breakpoints ---------- */

@media (max-width: 860px) {
  header.site-header {
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background-color: var(--parchment-dark);
    color: var(--navy);
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .mobile-toggle:hover,
  .mobile-toggle:focus-visible {
    background-color: var(--white);
    border-color: var(--gold);
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--parchment);
    border-bottom: 2px solid var(--gold);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    align-items: stretch;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list .nav-link,
  .nav-list .nav-cta {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Gallery Photo Carousels ---------- */
.gallery-carousel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
  margin-bottom: 40px;
  outline: none;
}

.gallery-carousel:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.2);
}

.carousel-stage-container {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: #121815;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .carousel-stage-container {
    height: 320px;
  }
}

.carousel-bg-blur {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.4) saturate(1.2);
  z-index: 1;
  transition: background-image 0.3s ease;
  pointer-events: none;
}

.carousel-stage-img {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  transition: opacity 0.25s ease;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(29, 36, 32, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.carousel-btn:hover {
  background: var(--navy);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

@media (max-width: 540px) {
  .carousel-btn.prev {
    left: 8px;
  }
  .carousel-btn.next {
    right: 8px;
  }
}

.carousel-counter-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(29, 36, 32, 0.8);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.carousel-info-card {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.carousel-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.carousel-caption-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
  font-weight: 500;
  margin: 0;
  transition: opacity 0.25s ease;
}

.carousel-thumb-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: var(--parchment);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.carousel-thumb-bar::-webkit-scrollbar {
  height: 4px;
}

.carousel-thumb-bar::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.carousel-thumb-item {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  background: var(--parchment-dark);
}

.carousel-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumb-item:hover {
  opacity: 0.9;
}

.carousel-thumb-item.active {
  opacity: 1;
  border-color: var(--navy);
  transform: scale(1.04);
}

/* ---------- Subpage & Biography Layout Styles ---------- */
.bio-section {
  margin-bottom: 56px;
}
.bio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}
.bio-grid.reverse {
  grid-template-columns: 280px 1fr;
  align-items: start;
}
.how-it-started-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas:
    "text photo";
  gap: 36px;
  align-items: start;
}
.how-it-started-text {
  grid-area: text;
}
.how-it-started-photo {
  grid-area: photo;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.photo-frame {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background-color: var(--parchment-dark);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.photo-frame-vertical {
  width: 100%;
  height: 310px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background-color: var(--parchment-dark);
}
.photo-frame-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.navy-photo-shape {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}
.bio-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}
.timeline-list {
  list-style: none;
  margin-top: 16px;
}
.timeline-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.timeline-list li::before {
  content: "•";
  color: var(--gold);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -4px;
}

/* Home Page Hero Layout */
.home-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--parchment);
  padding: 80px 32px 70px;
  position: relative;
  overflow: hidden;
}
.home-hero-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  grid-template-areas:
    "header photo"
    "body photo";
  column-gap: 48px;
  row-gap: 12px;
  align-items: center;
}
.hero-header-area {
  grid-area: header;
  align-self: end;
}
.hero-photo-area {
  grid-area: photo;
}
.hero-body-area {
  grid-area: body;
  align-self: start;
}
.hero-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(227, 199, 103, 0.4);
  padding: 10px;
  background: rgba(246, 241, 230, 0.04);
  box-shadow: var(--shadow-md);
  margin: 0;
  max-width: 100%;
}
.hero-photo-wrap img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  object-fit: contain;
}
.home-hero h1 {
  color: var(--parchment);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.home-hero h1 .highlight-gold-italic {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 500;
}
.home-hero p.lead {
  font-size: 1.25rem;
  color: rgba(246, 241, 230, 0.9);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Contact Grid & Form Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

/* Record Grid & Stats */
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.record-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}
.record-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.record-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.stat-box {
  background: var(--parchment-dark);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--line);
}
.stat-number-box {
  background-color: var(--navy);
  color: var(--parchment);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.stat-number-box .big-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.8rem;
}

/* Archive Search & Gallery Header */
.archive-search-box {
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: var(--clay);
  pointer-events: none;
  transition: fill var(--transition-fast);
}
.search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}
.search-input-wrapper:focus-within .search-icon {
  fill: var(--navy);
}
.gallery-category-title {
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lifetime-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.notes-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 36px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .card {
    padding: 24px 18px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .bio-grid, .bio-grid.reverse, .photo-pair, .contact-grid, .home-hero-grid, .lifetime-grid, .notes-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .how-it-started-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "photo"
      "text" !important;
    gap: 24px;
  }

  .how-it-started-photo .photo-frame {
    height: 380px !important;
    max-width: 320px;
    margin: 0 auto;
  }

  br.desktop-only {
    display: none;
  }

  .home-hero .eyebrow {
    white-space: nowrap;
    font-size: clamp(0.58rem, 2.7vw, 0.75rem);
    letter-spacing: 0.08em;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 12px 6px;
    font-size: 0.86rem;
    text-align: center;
    justify-content: center;
  }

  .community-spaces-photos {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .town-green-frame {
    height: 200px;
    width: 100%;
  }

  .dog-park-frame {
    height: 440px;
    width: 100%;
    background: var(--parchment-dark);
  }

  .initiative-row,
  .initiative-3photos-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .initiative-row .photo-frame {
    height: 240px;
    width: 100%;
  }

  .initiative-row .photo-frame img {
    object-fit: contain !important;
  }
}

.community-spaces-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.town-green-frame,
.dog-park-frame {
  height: 260px;
  background: var(--parchment-dark);
}

.initiative-row {
  display: grid;
  grid-template-columns: 1fr 260px 190px;
  gap: 24px;
  align-items: start;
}

.initiative-row .photo-frame {
  height: 170px;
  background: var(--parchment-dark);
}

.initiative-row-memorial {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.initiative-3photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.initiative-3photos-grid .photo-card {
  display: flex;
  flex-direction: column;
}

.initiative-3photos-grid .photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--parchment-dark);
  border-radius: 14px;
  overflow: hidden;
}

.initiative-3photos-grid .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}





