:root {
  --forest: #08241b;
  --forest-deep: #051610;
  --forest-mid: #145437;
  --forest-soft: #1e6b46;
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --cream: #f6f0e4;
  --cream-dark: #e8dcc4;
  --ink: #14201b;
  --muted: #4d5c55;
  --white: #fffefa;
  --shadow: 0 18px 50px rgba(5, 22, 16, 0.18);
  --radius: 22px;
  --max: 1160px;
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--gold);
  color: var(--forest);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 36, 27, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand img {
  width: auto;
  height: 45px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--forest) !important;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700 !important;
  display: flex;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  color: var(--white);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(8 36 27 / 8%) 0%, rgba(8, 36, 27, 0.35) 42%, rgb(5 22 16 / 58%) 100%), linear-gradient(90deg, rgba(5, 22, 16, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.92;
  margin: 0.7rem 0 0.4rem;
  max-width: 11ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.tagline {
  font-family: "Birthstone", cursive;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  margin: 0.4rem 0 1rem;
  color: var(--cream);
}

.hero p.lead {
  max-width: 42rem;
  font-size: 1.08rem;
  color: #efe6d0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(240, 215, 140, 0.55);
}

.stats {
  background: var(--forest);
  color: var(--cream);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
}

.stat {
  text-align: center;
  padding: 0.4rem;
}

.stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-light);
  line-height: 1;
}

.stat span {
  font-size: 0.86rem;
  color: #cfc4a8;
}

section {
  padding: 4.6rem 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-kicker {
  color: var(--forest-mid);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

.intro {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.portrait-card {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 50% 18%;
}

.portrait-caption {
  background: var(--forest);
  color: var(--cream);
  padding: 1rem 1.1rem;
}

.portrait-caption strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 1rem;
}

.tab {
  border: 1px solid var(--cream-dark);
  background: var(--white);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.panel.is-active {
  display: block;
}

.panel h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.panel p {
  margin: 0 0 0.9rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.source-links a {
  font-size: 0.88rem;
  color: var(--forest-mid);
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.term {
  background: #eef6f0;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 0.8rem;
}

.term strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}

.priorities {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 28%),
    var(--forest-deep);
  color: var(--cream);
}

.priorities h2,
.priorities .section-kicker {
  color: var(--gold-light);
}

.priorities .intro {
  color: #d8d0bc;
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gov-card {
  background: rgba(255, 254, 250, 0.06);
  border: 1px solid rgba(240, 215, 140, 0.22);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 180px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gov-card:hover,
.gov-card:focus-within {
  transform: translateY(-4px);
  background: rgba(255, 254, 250, 0.1);
}

.num {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.gov-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  margin: 0.4rem 0 0.5rem;
}

.ops {
  margin-top: 3rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ops-grid button {
  cursor: default;
}

.op {
  text-align: left;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.op[aria-expanded="true"] {
  outline: 2px solid var(--gold);
}

.op strong {
  display: block;
  margin-bottom: 0.2rem;
}

.op span {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline h2 {
  max-width: 16ch;
}

.years {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
  counter-reset: year;
}

.year {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.year::before {
  counter-increment: year;
  content: "Year " counter(year);
  color: var(--forest-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.year h3 {
  margin: 0.35rem 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
}

.year p {
  margin: 0;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0;
}

.chips span {
  background: #e7f1ea;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.timeline-visual {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  width: 100%;
}

.timeline-visual img {
  width: 100%;
}

.events {
  background: linear-gradient(180deg, #efe6d0, var(--cream));
  padding-bottom: 0;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-card.featured {
  background: var(--forest);
  color: var(--cream);
}

.badge {
  align-self: flex-start;
  background: var(--gold);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.event-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  margin: 0.3rem 0;
}

.event-meta {
  margin: 0;
  font-size: 0.95rem;
}

.event-card a {
  color: var(--forest-mid);
  font-weight: 650;
  margin-top: auto;
  padding-top: 0.8rem;
}

.event-card.featured a {
  color: var(--gold-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #111;
}

.gallery-item:first-child, .gallery-item:nth-child(2) {
  grid-row: 1 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(5, 22, 16, 0.85));
  color: var(--cream);
  font-size: 0.92rem;
}

.cta-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
}

.cta-band h2 {
  color: var(--gold-light);
}

.site-footer {
  background: var(--forest-deep);
  color: #cfc4a8;
  padding: 2rem 0 2.4rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 22, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: var(--gold);
  color: var(--forest);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  color: var(--cream);
}

@media (max-width: 960px) {
  .stats-grid,
  .gov-grid,
  .ops-grid,
  .years,
  .event-grid,
  .bio {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:first-child, .gallery-item:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .portrait-card {
    position: static;
  }

  .portrait-card img {
    height: 420px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--forest);
    flex-direction: column;
    padding: 1rem 1.2rem 1.3rem;
    gap: 0.85rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .stats-grid,
  .gov-grid,
  .ops-grid,
  .years,
  .event-grid,
  .bio,
  .terms {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-item,
  .gallery-item:first-child {
    grid-column: auto;
    min-height: 240px;
    height: 280px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    max-width: none;
  }

  section {
    padding: 3.2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-item img,
  .gov-card {
    transition: none;
  }
}
