:root {
  --navy: #2e4867;
  --lavender: #a19cc4;
  --ink: #2e4867;
  --muted: #405572;
  --paper: #ffffff;
  --surface: #f3f2f8;
  --accent-ink: #766a9e;
  --line: #dbd9e9;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    18px/1.65 "DM Sans",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent-ink);
}
a:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 4px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.6rem 1rem;
  background: #fff;
  z-index: 9;
}
.skip:focus {
  top: 1rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  max-width: 1320px;
  margin: auto;
  padding: 1.2rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}
.brand-logo {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.7rem;
}
nav a {
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
nav a[aria-current="page"] {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.5em;
}
.hero {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero a:focus-visible {
  outline-color: #fff;
}
.hero-inner {
  max-width: 1320px;
  margin: auto;
  padding: 5.7rem 3.5rem 6.2rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #ebe9f5;
  text-transform: uppercase;
}
.eyebrow span {
  padding: 0 0.7rem;
}
h1,
h2,
h3,
.route-card strong {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.035em;
  line-height: 1.13;
}
h1 {
  font-size: clamp(3.2rem, 6.2vw, 6.8rem);
  font-weight: 500;
  max-width: 13ch;
  margin: 1.2rem 0 1.5rem;
}
.lead {
  font-size: 1.16rem;
  max-width: 56ch;
  color: #f0eff8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.button {
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  gap: 2rem;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 3px;
}
.button:hover {
  background: #eae7f5;
  color: var(--navy);
}
.hero .text-link,
.hero .text-link:hover {
  color: #fff;
}
.text-link {
  font-size: 0.9rem;
  font-weight: 700;
}
.hero-logo {
  display: block;
  width: min(100%, 470px);
  height: auto;
  justify-self: center;
  border-radius: 50%;
  border: 6px solid #fff;
}
.content-wrap {
  max-width: 1208px;
  margin: 0 auto;
  padding: 3rem 3.5rem 7rem;
}
.section-rule {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  padding-bottom: 1rem;
}
.section-rule span:last-child {
  font-size: 1.3rem;
  line-height: 1;
}
.prose {
  max-width: 880px;
  padding-top: 1rem;
}
.prose h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  margin: 3.6rem 0 0.65rem;
}
.prose p,
.prose li {
  color: #344c6a;
}
.prose li {
  margin: 0.7rem 0;
}
.prose a {
  color: var(--accent-ink);
  font-weight: 700;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 4rem;
  width: min(1100px, calc(100vw - 7rem));
}
.route-card {
  background: #f1eff8;
  border: 1px solid #d8d3e7;
  min-height: 230px;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
.route-card .eyebrow {
  color: var(--navy);
}
.route-card:nth-child(2) {
  background: #e9edf5;
  border-color: #d2dbea;
}
.route-card:nth-child(3) {
  background: #f7f6fa;
  border-color: #dedce8;
}
.route-card:hover {
  transform: translateY(-5px);
  color: var(--ink);
  background: #fff;
}
.route-card strong {
  font-size: 2rem;
  margin: auto 0 0.7rem;
}
.route-card > span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
}
.photo-grid {
  display: grid;
  gap: 1rem;
  margin: 2.25rem 0 3rem;
}
.photo-grid--home,
.photo-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-grid figure,
.photo-feature {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef1f6;
}
.photo-grid img,
.photo-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-grid--home figure { aspect-ratio: 1.25; }
.photo-grid--two figure { aspect-ratio: 1; }
.photo-grid--three figure { aspect-ratio: 0.82; }
.photo-feature { margin: 2rem 0 1rem; }
.photo-feature img { aspect-ratio: 1.52; object-position: center; }
.photo-feature figcaption {
  padding: 0.75rem 0.9rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}
.animal-accent {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.3rem 0 3rem;
  padding: 0.6rem 1.8rem;
  min-height: 160px;
  border-left: 5px solid var(--lavender);
  background: radial-gradient(circle at 19% 40%, #d9d6ed 0 21%, transparent 21.2%),
    linear-gradient(120deg, #f2f0fa, #eaf0f8);
}
.animal-accent img {
  position: relative;
  z-index: 1;
  flex: none;
  width: 155px;
  height: 145px;
  object-fit: contain;
  transform: rotate(-5deg);
}
.animal-accent--cat img { height: 165px; transform: rotate(4deg); }
.animal-accent p { position: relative; z-index: 1; margin: 0; }
.animal-accent strong { display: block; font: 500 1.5rem/1.2 Fraunces, Georgia, serif; color: var(--navy); }
.animal-accent span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 0.45rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.tool-card { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--lavender); background: var(--surface); padding: 1.3rem; text-decoration: none; }
.tool-card:nth-child(2) { background: #edf1f8; }
.tool-card strong { font: 500 1.5rem/1.2 Fraunces, Georgia, serif; color: var(--navy); }
.tool-card > span:last-child { color: var(--muted); font-size: 0.85rem; }
.prose .tool-card > span:last-child { font-weight: 400; }
.tool-card:hover { border-top-color: var(--navy); color: var(--navy); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 2.5rem;
}
.team-card {
  min-width: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.team-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 38%;
}
.team-card figcaption {
  padding: 0.9rem 1rem 1.1rem;
  line-height: 1.35;
}
.team-card figcaption strong,
.team-card figcaption span {
  display: block;
}
.team-card figcaption strong {
  color: var(--navy);
  font-size: 1.08rem;
}
.team-card figcaption span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.25rem;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 2.5rem;
}
.sponsor-grid li {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sponsor-grid img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
}
.sponsor-grid span {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 700;
  margin-top: 0.4rem;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 3rem;
}
.event-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.event-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.event-card .event-open {
  border: 0;
  background: none;
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.event-open:focus-visible,
.event-view:focus-visible,
.event-dialog button:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 4px;
}
.event-view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: none;
  padding: 0.45rem 0;
  margin-top: 0.55rem;
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.event-view:hover { color: var(--navy); }
.event-view span { display: inline; }
.event-dialog {
  width: min(960px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.event-dialog::backdrop { background: rgba(19, 31, 49, 0.88); }
.gallery-shell { padding: 1rem 1.5rem 1.3rem; }
.gallery-top, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery-top > button { white-space: nowrap; }
.gallery-top h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); }
.gallery-help { margin: 0.15rem 0 0.65rem; font-size: 0.85rem; color: var(--muted); }
.event-dialog button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.event-dialog button:hover { background: #e9e6f3; }
.gallery-stage img {
  display: block;
  width: 100%;
  height: min(64dvh, 680px);
  object-fit: contain;
  background: #eef0f4;
}
.gallery-controls { margin-top: 0.8rem; }
.gallery-controls span { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.event-card figcaption {
  padding: 1rem 1.2rem 1.2rem;
  line-height: 1.4;
}
.event-card figcaption strong,
.event-card figcaption > span {
  display: block;
}
.event-card figcaption strong {
  font-size: 1.1rem;
}
.event-card figcaption > span {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.impact-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.5rem 0 3rem;
}
.impact-overview > div {
  min-width: 0;
  border-top: 3px solid var(--lavender);
  background: var(--surface);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.impact-overview strong { line-height: 1.25; }
.impact-overview > div > span:last-child,
.impact-card small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.impact-kicker {
  color: var(--accent-ink);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.impact-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #f7f6fb;
  padding: 1.35rem;
  border-radius: 0 18px 0 18px;
}
.impact-card:nth-child(even) { background: #edf1f8; }
.impact-card h3 { font-weight: 500; font-size: 1.5rem; margin: 1rem 0 0; }
.impact-card .impact-value {
  font-family: Fraunces, Georgia, serif;
  color: var(--navy);
  font-size: 4rem;
  line-height: 1;
  margin: 0.5rem 0;
}
.impact-card p:not(.impact-value) { font-size: 0.86rem; margin: 0 0 1rem; }
footer {
  background: var(--navy);
  color: #fff;
  padding: 4rem 3.5rem 1.5rem;
}
.footer-inner {
  max-width: 1208px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-inner > div:first-child {
  max-width: 330px;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.15;
  display: block;
}
.footer-inner h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e7e2f4;
  margin: 0.7rem 0 1.3rem;
}
.footer-inner p,
.footer-inner a {
  font-size: 0.88rem;
  color: #f2f0fa;
}
.footer-inner a {
  display: block;
  margin: 0.65rem 0;
}
.footer-bottom {
  max-width: 1208px;
  margin: 3.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #70819a;
  font-size: 0.75rem;
  color: #e5e3f0;
}
@media (max-width: 900px) {
  .sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.1rem 2rem;
  }
  .hero-inner {
    padding: 4rem 2rem;
    gap: 1rem;
  }
  .content-wrap {
    padding: 2rem 2rem 5rem;
  }
  .route-grid {
    width: calc(100vw - 4rem);
  }
}
@media (max-width: 760px) {
  .tool-grid { grid-template-columns: 1fr; }
  .photo-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-overview { grid-template-columns: 1fr; }
  .team-grid,
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body {
    font-size: 16px;
  }
  .header-inner {
    padding: 1rem 1.25rem;
  }
  nav {
    gap: 0.2rem 0.55rem;
  }
  nav a {
    font-size: 0.75rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 2.5rem;
  }
  .hero-actions {
    margin-top: 1.25rem;
  }
  .hero-copy h1 {
    margin: 0.65rem 0 0.8rem;
  }
  .hero-logo {
    max-width: 235px;
    justify-self: end;
    margin-top: -1rem;
  }
  .hero--interior .hero-logo {
    display: none;
  }
  .hero--interior .hero-inner {
    padding: 2rem 1.25rem 2.25rem;
  }
  .hero--interior h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
  h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }
  .content-wrap {
    padding: 1.75rem 1.25rem 4rem;
  }
  .route-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.75rem;
  }
  .route-card {
    min-height: 160px;
  }
  .route-card strong {
    margin: 0.7rem 0;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  footer {
    padding: 3rem 1.25rem 1.25rem;
  }
  .footer-inner > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 420px) {
  .animal-accent { gap: 0.6rem; padding: 0.8rem; min-height: 135px; }
  .photo-grid--home,
  .photo-grid--two,
  .photo-grid--three { grid-template-columns: 1fr; }
  .photo-grid--home figure { aspect-ratio: 1.15; }
  .photo-grid--two figure { aspect-ratio: 1.05; }
  .photo-grid--three figure { aspect-ratio: 1; }
  .animal-accent img { width: 98px; height: 115px; }
  .animal-accent strong { font-size: 1.13rem; }
  .animal-accent span { font-size: 0.72rem; }
  .team-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .brand-logo {
    width: 52px;
    height: 52px;
  }
  .hero:not(.hero--interior) .hero-inner {
    padding-top: 0.5rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner > div:first-child {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .route-card {
    transition: none;
  }
}
