:root {
  --color-primary: #191970;
  --color-primary-hover: #2929A3;
  --color-primary-dark: #12124F;
  --color-gold: #FFD136;
  --color-gold-hover: #E6BC30;
  --color-text: #151515;
  --color-text-muted: #575757;
  --color-text-light: #5E5E5E;
  --color-text-faint: #898989;
  --color-bg: #ffffff;
  --color-bg-alt: #F3F3F4;
  --color-bg-blue: #F3F3FC;
  --color-border: #E2E2E2;
  --color-white: #ffffff;
  --color-error: #b00020;

  --font-heading: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --tracking-wide: 0.18em;
  --tracking-med: 0.083em;
  --tracking-sm: 0.045em;
  --radius: 0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.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 {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  padding: 0 0 4px;
  margin-left: 24px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.primary-nav a.nav-cta {
  background: var(--color-gold);
  color: var(--color-text);
  padding: 12px 24px;
  margin-left: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
  font-size: 13px;
  border: 0;
  transition: background 0.2s;
}

.primary-nav a.nav-cta:hover {
  background: var(--color-gold-hover);
  color: var(--color-text);
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--color-text);
}
.nav-icon { top: 19px; }
.nav-icon::before { top: -8px; }
.nav-icon::after { top: 8px; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    margin: 0;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a.nav-cta {
    margin: 8px 24px;
    text-align: center;
    padding: 14px 24px;
  }
}

/* === HERO === */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(25, 25, 112, 0.55) 0%, rgba(18, 18, 79, 0.85) 100%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 120px 0;
  text-align: center;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-white);
  margin: 0 auto 24px;
  max-width: 900px;
  line-height: 1.2;
}

.hero .sub-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 40px;
  max-width: 700px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero { padding: 160px 0; min-height: 560px; }
  .hero h1 { font-size: 48px; }
  .hero .sub-tagline { font-size: 20px; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn-donate {
  background: var(--color-gold);
  color: var(--color-text);
  border-color: var(--color-gold);
}
.btn-donate:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-text);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-on-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-on-primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* === SECTIONS === */
.page-section {
  padding: 80px 0;
}

.page-section.alt {
  background: var(--color-bg-alt);
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 16px;
}

.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 24px;
  line-height: 1.15;
}

.section-title.uppercase {
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: var(--tracking-sm);
}

.section-title.center { text-align: center; }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 750px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.section-subtitle.center { text-align: center; }

@media (min-width: 768px) {
  .section-title { font-size: 36px; }
  .page-section { padding: 100px 0; }
}

/* === SPLIT (image + text two-column) === */
.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .section-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .section-split.reverse .section-split-content { order: -1; }
}

.section-split-image {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-blue);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
}

.section-split-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 1.25em;
}

.section-split-content p:last-child { margin-bottom: 0; }

.section-split-content .btn {
  margin-top: 16px;
}

/* === PAGE INTRO BANNER === */
.page-intro {
  background: var(--color-bg-alt);
  padding: 72px 0;
  text-align: center;
}

.page-intro h1 {
  font-size: 36px;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: var(--tracking-sm);
}

.page-intro p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-intro h1 { font-size: 44px; }
}

/* === PROSE === */
.prose {
  max-width: 750px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text);
}

.prose p { margin: 0 0 1.25em; }
.prose p:last-child { margin-bottom: 0; }

/* === ENDORSEMENTS === */
.endorsements {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 750px;
}

.endorsements li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
}

.endorsements li:last-child { border-bottom: 0; }

/* === POST LIST === */
.post-list {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  max-width: 800px;
}

.post-list > li {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list > li:first-child { padding-top: 0; }
.post-list > li:last-child { border-bottom: 0; padding-bottom: 0; }

.post-list h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.post-list h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.post-list h3 a:hover { color: var(--color-primary); }

.post-list time {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.post-list p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.post-list-cta {
  text-align: center;
  margin-top: 48px;
}

/* === SINGLE POST === */
.post {
  padding: 80px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.post-header time {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 16px;
  display: inline-block;
}

.post-header h1 {
  font-size: 32px;
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .post-header h1 { font-size: 40px; }
}

.post-body {
  max-width: 750px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}

.post-body p { margin: 0 0 1.25em; }

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
}

.back-link-wrap {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === FORM === */
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 48px auto 0;
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
}

.contact-form label .optional {
  font-weight: 400;
  color: var(--color-text-light);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(25, 25, 112, 0.15);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: 14px;
  margin-top: 6px;
  min-height: 18px;
}

.form-status {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-top: 16px;
  min-height: 18px;
}

.contact-form .submit-row {
  text-align: center;
  margin-top: 8px;
}

/* (legacy footer rules removed — replaced by universal footer block at end of file) */

/* === DONATE page === */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 500px;
  margin: 32px auto;
}

@media (min-width: 480px) {
  .donate-amounts { grid-template-columns: repeat(4, 1fr); }
}

.donate-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  border: 2px solid var(--color-gold);
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.donate-amount:hover,
.donate-amount.is-selected {
  background: var(--color-gold);
  color: var(--color-text);
}

/* === PHOTO GRID === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.photo-tile {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-blue);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: var(--tracking-med);
  text-transform: uppercase;
}

/* === NEWSLETTER form === */
.newsletter-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 48px auto 0;
}

.newsletter-form .submit-row {
  text-align: center;
  margin-top: 8px;
}

/* === UNIVERSAL FOOTER === */
footer.site-footer {
  background: #001f3f;
  color: #fff;
  padding: 64px 32px 28px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
footer.site-footer *,
footer.site-footer *::before,
footer.site-footer *::after { box-sizing: border-box; }
footer.site-footer p,
footer.site-footer ul,
footer.site-footer li { margin: 0; padding: 0; }
footer.site-footer ul { list-style: none; }
footer.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s ease;
}
footer.site-footer a:hover { color: #fff; }

footer.site-footer .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

footer.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}

footer.site-footer .footer-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1;
}

footer.site-footer .footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 320px;
}

footer.site-footer .footer-vote {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  padding-top: 14px;
  margin: 0;
}

footer.site-footer .footer-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 20px;
}

footer.site-footer .footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer.site-footer .footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

footer.site-footer .footer-email {
  margin: 0 0 28px;
}
footer.site-footer .footer-email a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
footer.site-footer .footer-email a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

footer.site-footer .social-buttons {
  display: flex;
  gap: 10px;
}
footer.site-footer .social-buttons li { line-height: 0; }

footer.site-footer .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
footer.site-footer .social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  flex: none;
}
footer.site-footer .social-btn:hover,
footer.site-footer .social-btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #001f3f;
  transform: translateY(-1px);
  outline: none;
}

footer.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
footer.site-footer .footer-disclaimer {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
footer.site-footer .footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 800px) {
  footer.site-footer { padding: 48px 24px 24px; }
  footer.site-footer .footer-cols {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  footer.site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
