:root {
  color-scheme: light;
  --ink: #1c2730;
  --muted-ink: #5d646b;
  --paper: #f0eadf;
  --panel: #fffdf8;
  --line: #b8aa93;
  --navy: #223954;
  --blue: #235f9b;
  --orange: #b66d32;
  --soft-blue: #dce6ee;
  --shadow: 6px 7px 0 rgba(34, 57, 84, 0.16);
  --radius-lg: 14px;
  --radius-md: 9px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px) 0 0 / 100% 34px,
    var(--paper);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

p {
  color: var(--muted-ink);
  line-height: 1.62;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.03;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(0.9rem, 3vw, 2.2rem);
  background: #fff8ec;
  border-bottom: 2px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 0 rgba(34, 57, 84, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  font-weight: 800;
  background: var(--navy);
  border: 2px solid #172637;
  border-radius: 8px;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: #fff;
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  background: var(--panel);
}

.section-pad {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  background: #f6f1e8;
  border-bottom: 2px solid var(--line);
}

.hero-copy p:not(.eyebrow) {
  max-width: 670px;
  font-size: 1.05rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--navy);
  background: #fff;
}

.text-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.text-link:hover {
  color: var(--orange);
}

.hero-panel {
  position: relative;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.hero-stats div,
.content-card,
.feature-card,
.project-card,
.activity-list article,
.qr-card {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.hero-stats span {
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.photo-card {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  color: white;
  background: #b9c2cc;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card span {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  display: inline-flex;
  padding: 0.4rem 0.55rem;
  color: white;
  font-weight: 800;
  background: rgba(28, 39, 48, 0.82);
  border-radius: 6px;
}

.photo-card.large {
  min-height: 340px;
}

.photo-card.tall {
  min-height: 420px;
}

.photo-card.small {
  min-height: 140px;
  margin-bottom: 1rem;
  box-shadow: none;
}

.logo-card img {
  object-fit: contain;
  padding: 1.4rem;
  background: #fff;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.content-card {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
}

.timeline {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.timeline article {
  padding-left: 0.9rem;
  border-left: 4px solid var(--orange);
}

.timeline span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.timeline p,
.feature-card p,
.project-card p,
.activity-list p,
.site-footer p {
  margin-bottom: 0;
}

.muted {
  background: var(--soft-blue);
  border-block: 2px solid var(--line);
}

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

.section-heading.narrow {
  max-width: 660px;
}

.feature-grid,
.project-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.project-card {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border-radius: var(--radius-md);
}

.feature-number {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--orange);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
}

.activity-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: stretch;
}

.activity-list {
  display: grid;
  gap: 1rem;
}

.activity-list article {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border-radius: var(--radius-md);
}

.dark {
  color: white;
  background: #24364b;
  border-block: 2px solid #172637;
}

.dark p,
.dark .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.project-card {
  color: var(--ink);
  background: #fffdf8;
}

.programs {
  background: #24364b;
  color: white;
  border-block: 2px solid #172637;
}

.programs .section-heading p,
.programs .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.7rem 0.9rem;
  color: white;
  font-weight: 800;
  background: #314b68;
  border: 2px solid #172637;
  border-radius: 8px;
  cursor: pointer;
}

.tab-button.is-active {
  color: var(--ink);
  background: #fff8ec;
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.6rem);
  color: var(--ink);
  background: #fff8ec;
  border: 2px solid #172637;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tab-panel[hidden] {
  display: none;
}

.program-copy {
  padding: 0.4rem;
}

.program-copy .eyebrow {
  color: var(--orange);
}

.program-copy p {
  max-width: 780px;
}

.program-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted-ink);
}

.program-media {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  max-width: 460px;
  width: 100%;
}

.carousel {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  background: #d7d1c5;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}

.carousel img.contain {
  object-fit: contain;
  padding: 1rem;
  background: #fff;
}

.carousel img.is-active {
  opacity: 1;
}

.logo-carousel img {
  object-fit: contain;
  padding: 1.2rem;
  background: #fff;
}

.media-note {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.85rem;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid .photo-card {
  min-height: 190px;
}

.visit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: #efe2cf;
  border-top: 2px solid var(--line);
}

.visit p {
  max-width: 700px;
}

.visit .button {
  margin-top: 1rem;
}

.qr-card {
  display: grid;
  width: min(270px, 72vw);
  aspect-ratio: 1;
  place-items: center;
  padding: 1.2rem;
  text-align: center;
  border-radius: 12px;
}

.qr-card img {
  width: min(185px, 52vw);
  height: auto;
  padding: 0.45rem;
  background: white;
  border: 2px solid var(--line);
  border-radius: 7px;
}

.qr-card small {
  align-self: end;
  color: var(--muted-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 4.5rem);
  color: var(--muted-ink);
  background: #fff8ec;
  border-top: 2px solid var(--line);
}

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

  .site-nav {
    position: fixed;
    inset: 74px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: #fff8ec;
    border: 2px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .split,
  .activity-layout,
  .tab-panel,
  .visit {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card.large,
  .photo-card.tall {
    min-height: 300px;
  }

  .carousel {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .section-pad {
    padding-inline: 1rem;
  }

  .feature-grid,
  .project-grid,
  .gallery-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .carousel {
    min-height: 230px;
  }
}
