:root {
  --green-900: #173a2f;
  --green-700: #315f4a;
  --green-500: #6f936f;
  --leaf: #dfe9d7;
  --stone: #eee7d9;
  --paper: #fbfaf5;
  --white: #ffffff;
  --ink: #1d2420;
  --muted: #647069;
  --poppy: #b7352e;
  --raf-blue: #385f86;
  --gold: #c49a44;
  --line: rgba(29, 36, 32, 0.14);
  --shadow: 0 18px 45px rgba(23, 58, 47, 0.16);
  --radius: 8px;
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--stone);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-900);
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.nav-links a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  color: var(--green-900);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: var(--leaf);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--green-900);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  isolation: isolate;
  overflow: hidden;
}

.hero picture,
.hero picture::after,
.hero img {
  position: absolute;
  inset: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero picture::after {
  content: "";
  background: linear-gradient(90deg, rgba(251, 250, 245, 0.95), rgba(251, 250, 245, 0.76) 42%, rgba(251, 250, 245, 0.14));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 6rem 0 4rem;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.hero-copy {
  max-width: 620px;
  color: #35413b;
  font-size: 1.25rem;
}

.eyebrow {
  color: var(--poppy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button-row,
.input-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--green-900);
  color: var(--white);
}

.button-secondary {
  background: var(--poppy);
  color: var(--white);
}

.button-ghost {
  border-color: var(--green-900);
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-900);
}

.button-light {
  background: var(--stone);
  color: var(--green-900);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.section,
.intro-band,
.cta-band {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.intro-band {
  background: var(--green-900);
  color: var(--stone);
}

.intro-band h2,
.intro-band .eyebrow {
  color: var(--stone);
}

.intro-grid,
.two-column,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.split-layout,
.page-hero-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.reverse > :first-child {
  order: 2;
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.image-panel,
.notice-panel,
.feature-card,
.record-card,
.empty-state,
.database-preview,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-panel {
  overflow: hidden;
}

.image-panel img,
.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-band {
  background: var(--paper);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1rem;
}

.photo-strip figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  box-shadow: var(--shadow);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.photo-strip figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.92);
  color: var(--green-900);
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.stat-strip div {
  border-left: 4px solid var(--poppy);
  background: var(--stone);
  padding: 0.85rem;
}

.stat-strip strong {
  display: block;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.soft-band {
  background: var(--stone);
}

.news-band {
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
}

.feature-card,
.news-card,
.record-card,
.empty-state,
.notice-panel,
.database-preview,
.contact-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-height: 260px;
}

.news-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  min-height: 250px;
  border-top: 5px solid var(--green-700);
}

.news-card.urgent {
  border-top-color: var(--poppy);
}

.news-date {
  color: var(--muted);
  font-weight: 800;
}

.card-icon,
.status-pill,
.record-meta {
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: var(--leaf);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill {
  background: rgba(183, 53, 46, 0.12);
  color: var(--poppy);
}

.accent-card {
  border-top: 5px solid var(--poppy);
}

.text-link {
  color: var(--green-900);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}

.cta-band {
  background: var(--raf-blue);
  color: var(--white);
}

.cta-band h2,
.cta-band .eyebrow {
  color: var(--white);
}

.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--leaf), var(--stone));
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: #36433d;
  font-size: 1.1rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 140px minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.timeline span {
  color: var(--poppy);
  font-weight: 900;
}

.database-preview {
  display: grid;
  gap: 1.25rem;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(180px, 0.6fr);
  gap: 0.75rem;
  align-items: end;
}

.preview-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: var(--green-900);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0.78rem 0.9rem;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(56, 95, 134, 0.35);
  outline-offset: 3px;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--leaf);
  color: var(--green-900);
  padding: 0.55rem 0.8rem;
  font-weight: 800;
}

.record-card {
  min-height: 220px;
}

.event-notice {
  display: grid;
  gap: 0.45rem;
  margin: 1.4rem 0;
  border: 1px solid rgba(183, 53, 46, 0.26);
  border-left: 5px solid var(--poppy);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.2rem;
  text-align: left;
}

.event-date {
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.empty-state .button {
  margin-top: 1rem;
}

.contact-layout {
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.large-link {
  color: var(--green-900);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--green-900);
  color: var(--stone);
}

.site-footer .brand strong,
.site-footer .brand small,
.site-footer h2 {
  color: var(--stone);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-contact {
  display: grid;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--stone);
  overflow-wrap: anywhere;
}

.copyright {
  margin-top: 0.75rem;
  color: rgba(238, 231, 217, 0.78);
  font-size: 0.9rem;
}

.center-row {
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-links a {
    border-radius: var(--radius);
  }

  .intro-grid,
  .two-column,
  .cta-grid,
  .split-layout,
  .page-hero-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .reverse > :first-child {
    order: initial;
  }

  .card-grid.three,
  .news-grid,
  .stat-strip,
  .photo-strip,
  .preview-toolbar {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .hero-content {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero picture::after {
    background: rgba(251, 250, 245, 0.86);
  }

  .button,
  .button-row,
  .input-row {
    width: 100%;
  }

}
