/* ============================================================
   Iowa's Little Ireland — Heritage Site Stylesheet
   Design direction: Irish County Historical Society x Modern Editorial
   Palette: deep hunter green + old gold + parchment/cream + ink
   Typography: Playfair Display (display) + Source Serif 4 (body)
   ============================================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --green-deep:      #1a3a2a;
  --green-mid:       #2d5a3d;
  --green-light:     #3d7a52;
  --green-subtle:    #c8d9cd;
  --gold:            #c9a44a;
  --gold-light:      #e8c97a;
  --gold-pale:       #f5e8c5;
  --cream:           #f7f3ea;
  --parchment:       #ede5d0;
  --ink:             #1c1a14;
  --ink-mid:         #3a3628;
  --ink-light:       #6b6350;
  --white:           #ffffff;

  --ff-display:      'Playfair Display', Georgia, serif;
  --ff-body:         'Source Serif 4', Georgia, serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.75rem;
  --fs-4xl:   3.75rem;
  --fs-5xl:   5rem;

  --lh-tight:  1.2;
  --lh-snug:   1.4;
  --lh-body:   1.7;

  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  --max-w:     1140px;
  --max-prose: 720px;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 3px rgba(28,26,20,0.12);
  --shadow-md:   0 4px 16px rgba(28,26,20,0.14);
  --shadow-lg:   0 12px 40px rgba(28,26,20,0.18);

  --border-gold: 1px solid rgba(201,164,74,0.35);
  --border-green: 1px solid rgba(45,90,61,0.25);

  --transition: 0.25s ease;
}

/* ---- RESET + BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--cream);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }

/* ---- NAVIGATION ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 58, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 74, 0.2);
  padding: var(--space-3) var(--space-6);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.nav-logo:hover, .nav-logo:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(247,243,234,0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-light);
  text-decoration: none;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--green-deep);
  overflow: hidden;
  padding: var(--space-32) var(--space-6) var(--space-20);
}

/* Subtle texture overlay */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(45,90,61,0.6) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Decorative border frame */
.hero::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201, 164, 74, 0.18);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(201, 164, 74, 0.08);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fadeDown 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-4xl), 10vw, var(--fs-5xl));
  font-weight: 900;
  line-height: 1.0;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: fadeDown 0.8s ease 0.4s forwards;
}

.hero-title em {
  display: block;
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1em;
  line-height: 1.05;
}

.hero-subtitle {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  font-style: italic;
  color: rgba(247,243,234,0.65);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeDown 0.8s ease 0.6s forwards;
}

.hero-tagline {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(247,243,234,0.78);
  max-width: 620px;
  margin: 0 auto var(--space-10);
  opacity: 0;
  animation: fadeDown 0.8s ease 0.8s forwards;
}

.hero-cta {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeDown 0.8s ease 1.0s forwards;
}

.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--gold);
  color: var(--green-deep);
  text-decoration: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xl);
  color: rgba(201,164,74,0.5);
  animation: bobDown 2s ease-in-out 1.8s infinite;
  z-index: 2;
}

/* ---- ORNAMENTAL RULE ---- */
.ornament-rule {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--parchment);
  position: relative;
}

.ornament-rule::before,
.ornament-rule::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(45,90,61,0.35));
}

.ornament-rule::before { left: var(--space-6); }
.ornament-rule::after {
  right: var(--space-6);
  background: linear-gradient(to left, transparent, rgba(45,90,61,0.35));
}

.ornament-shamrock {
  font-size: 1.5rem;
  color: var(--green-mid);
  position: relative;
  z-index: 1;
  background: var(--parchment);
  padding: 0 var(--space-4);
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--space-24) var(--space-6);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 5vw, 3.5rem);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--green-deep);
  margin-bottom: var(--space-8);
}

.section-intro {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--ink-mid);
  max-width: var(--max-prose);
  margin-bottom: var(--space-12);
}

/* ---- STORY SECTION ---- */
.section-story {
  background: var(--parchment);
}

.prose-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.prose-col p {
  margin-bottom: var(--space-4);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-mid);
}

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

/* Drop cap */
.dropcap::first-letter {
  float: left;
  font-family: var(--ff-display);
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 0.8;
  color: var(--green-mid);
  margin-right: 0.1em;
  margin-top: 0.08em;
  padding-right: 0.04em;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: var(--space-8) var(--space-10);
  margin: var(--space-12) 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.pull-quote p {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--green-deep);
  margin-bottom: var(--space-4);
}

.pull-quote cite {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}

/* Place cards */
.place-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.place-card {
  background: var(--green-deep);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
}

.place-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(201,164,74,0.08);
  border-radius: 0 var(--radius) 0 60px;
}

.place-card-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.place-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-3);
  line-height: var(--lh-snug);
}

.place-card p {
  font-size: var(--fs-base);
  font-weight: 300;
  color: rgba(247,243,234,0.75);
  line-height: 1.65;
}

/* ---- FAMILIES SECTION ---- */
.section-families {
  background: var(--cream);
}

/* Surname grid */
.surname-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.surname-tile {
  background: var(--white);
  border: var(--border-gold);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-5) var(--space-4);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.surname-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.surname-tile:hover .surname-note {
  opacity: 1;
  max-height: 120px;
}

.surname {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.surname-note {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.55;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Always show note on small screens (no hover) */
@media (hover: none) {
  .surname-note {
    max-height: none;
    opacity: 1;
    margin-top: var(--space-2);
  }
}

.families-note {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--ink-light);
  max-width: var(--max-prose);
  margin: var(--space-4) 0 var(--space-12);
  border-top: var(--border-green);
  padding-top: var(--space-6);
}

/* Community section */
.community-section {
  background: var(--parchment);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-10);
  border: var(--border-green);
}

.community-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(45,90,61,0.2);
}

.community-prose p {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-mid);
  margin-bottom: var(--space-5);
}

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

/* ---- PROJECT SECTION ---- */
.section-project {
  background: var(--green-deep);
}

.section-project .section-label {
  color: var(--gold);
}

.section-project .section-title {
  color: var(--cream);
}

.project-statement {
  max-width: var(--max-prose);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(201,164,74,0.2);
}

.project-lead {
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247,243,234,0.85);
}

/* Mission pillars */
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,164,74,0.15);
  border-radius: var(--radius);
  padding: var(--space-8);
  transition: background var(--transition), border-color var(--transition);
}

.pillar:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,164,74,0.35);
}

.pillar-number {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: rgba(201,164,74,0.25);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.pillar-title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
}

.pillar p {
  font-size: var(--fs-base);
  font-weight: 300;
  color: rgba(247,243,234,0.72);
  line-height: 1.65;
}

/* FamilySearch alignment box */
.fs-alignment {
  border-top: 1px solid rgba(201,164,74,0.2);
  padding-top: var(--space-10);
}

.fs-alignment-inner {
  background: rgba(201,164,74,0.06);
  border: 1px solid rgba(201,164,74,0.2);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-10);
  max-width: 760px;
}

.fs-alignment-inner h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-5);
}

.fs-alignment-inner p {
  font-size: var(--fs-base);
  font-weight: 300;
  color: rgba(247,243,234,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.fs-alignment-inner p:last-child { margin-bottom: 0; }

/* ---- RECORDS SECTION ---- */
.section-records {
  background: var(--parchment);
}

/* Stat band */
.stat-band {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-lg);
}

.stat {
  flex: 1;
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.stat-divider {
  width: 1px;
  background: rgba(201,164,74,0.2);
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-3xl), 5vw, 4rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.stat-plus {
  font-size: 0.7em;
  vertical-align: super;
}

.stat-label {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.stat-desc {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: rgba(247,243,234,0.6);
  line-height: 1.55;
}

/* Record grid */
.record-types-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: var(--space-8);
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.record-item {
  background: var(--cream);
  border: var(--border-green);
  border-radius: var(--radius);
  padding: var(--space-6);
  transition: box-shadow var(--transition), transform var(--transition);
}

.record-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.record-icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
  color: var(--green-mid);
}

.record-item h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: var(--space-3);
  line-height: var(--lh-snug);
}

.record-item p {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ---- EXPLORE SECTION ---- */
.section-explore {
  background: var(--cream);
}

.explore-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
  background: var(--white);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-12);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.explore-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--green-deep), var(--green-light));
}

.explore-badge {
  display: inline-block;
  background: var(--green-subtle);
  color: var(--green-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  margin-bottom: var(--space-4);
}

.explore-card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: var(--space-5);
  line-height: var(--lh-snug);
}

.explore-card-text {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: var(--lh-body);
  margin-bottom: var(--space-4);
}

.living-notice {
  background: var(--gold-pale);
  border: 1px solid rgba(201,164,74,0.4);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.6;
  margin: var(--space-6) 0;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--green-mid);
  text-decoration: none;
  border-bottom: 2px solid var(--green-subtle);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.explore-link:hover, .explore-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  text-decoration: none;
}

/* Decorative tree art */
.explore-card-art {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tree-art {
  position: relative;
  width: 120px;
  height: 180px;
}

.tree-trunk {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 80px;
  background: linear-gradient(to top, var(--ink-light), var(--green-mid));
  border-radius: 6px 6px 4px 4px;
}

.tree-leaves {
  position: absolute;
  bottom: 65px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(ellipse at 50% 60%, var(--green-light), var(--green-deep));
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 -10px 20px rgba(45,90,61,0.3);
}

.tree-branch {
  position: absolute;
  background: var(--green-mid);
  border-radius: 3px;
  transform-origin: right center;
}

.tree-branch-l1-left  { width: 30px; height: 4px; bottom: 110px; left: 20px; transform: rotate(30deg); }
.tree-branch-l1-right { width: 30px; height: 4px; bottom: 110px; right: 20px; transform: rotate(-30deg); }
.tree-branch-l2-left  { width: 22px; height: 3px; bottom: 130px; left: 26px; transform: rotate(20deg); }
.tree-branch-l2-right { width: 22px; height: 3px; bottom: 130px; right: 26px; transform: rotate(-20deg); }
.tree-branch-l3-left  { width: 16px; height: 3px; bottom: 148px; left: 32px; transform: rotate(10deg); }
.tree-branch-l3-right { width: 16px; height: 3px; bottom: 148px; right: 32px; transform: rotate(-10deg); }

/* ---- CONTRIBUTE SECTION ---- */
.section-contribute {
  background: var(--parchment);
}

.contribute-prose p {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: var(--lh-body);
  max-width: var(--max-prose);
  margin-bottom: var(--space-5);
}

.contribute-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: var(--space-10) 0;
}

.contribute-item {
  background: var(--cream);
  border: var(--border-green);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.contribute-item h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: var(--space-3);
}

.contribute-item p {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
}

.contact-block {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-12);
  max-width: 640px;
}

.contact-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-5);
}

.contact-text {
  font-size: var(--fs-lg);
  color: rgba(247,243,234,0.8);
  margin-bottom: var(--space-4);
  line-height: 1.55;
}

.contact-email {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,164,74,0.4);
  transition: color var(--transition), border-color var(--transition);
}

.contact-email:hover, .contact-email:focus-visible {
  color: var(--white);
  border-color: var(--white);
  text-decoration: none;
}

.contact-note {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: rgba(247,243,234,0.55);
  line-height: 1.6;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  padding: var(--space-16) var(--space-6) var(--space-10);
  border-top: 3px solid var(--green-deep);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-style: italic;
  font-weight: 300;
  color: rgba(247,243,234,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-rule {
  font-size: 1.2rem;
  color: rgba(201,164,74,0.4);
  margin: var(--space-6) 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.footer-links a {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(247,243,234,0.5);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-copy {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: rgba(247,243,234,0.38);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-3);
}

.footer-small {
  font-size: var(--fs-xs);
}

.footer-copy a {
  color: rgba(201,164,74,0.6);
}

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

/* ---- ANIMATIONS ---- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bobDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .prose-columns {
    grid-template-columns: 1fr;
  }

  .place-cards {
    grid-template-columns: 1fr 1fr;
  }

  .mission-pillars {
    grid-template-columns: 1fr;
  }

  .explore-card {
    grid-template-columns: 1fr;
  }

  .explore-card-art {
    display: none;
  }

  .contribute-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, var(--fs-4xl));
  }

  .place-cards {
    grid-template-columns: 1fr;
  }

  .stat-band {
    flex-direction: column;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .surname-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .community-section {
    padding: var(--space-8) var(--space-6);
  }

  .explore-card {
    padding: var(--space-8) var(--space-6);
  }

  .contact-block {
    padding: var(--space-8) var(--space-6);
  }

  .hero::before, .hero::after {
    inset: 10px;
  }
}

@media (max-width: 480px) {
  .surname-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pull-quote {
    padding: var(--space-6) var(--space-6);
  }

  .pull-quote p {
    font-size: var(--fs-lg);
  }

  .fs-alignment-inner {
    padding: var(--space-6);
  }
}

/* ---- PRINT ---- */
@media print {
  .site-nav, .hero-scroll-hint { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  * { animation: none !important; transition: none !important; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-eyebrow, .hero-title, .hero-subtitle, .hero-tagline, .hero-cta {
    opacity: 1;
    animation: none;
  }
}
