:root {
  --shell-navy: #13233a;
  --shell-cream: #f6f3ec;
  --shell-paper: #fffdf8;
  --shell-terracotta: #c8612d;
  --shell-gold: #c9a84c;
  --shell-teal: #2a7f7f;
  --shell-line: rgba(19, 35, 58, 0.14);
}

html { scroll-padding-top: 112px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 16px;
  border: 2px solid var(--shell-teal);
  border-radius: 2px;
  background: var(--shell-paper);
  color: var(--shell-navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

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

#main-content:focus { outline: none; }

body :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(42, 127, 127, 0.5);
  outline-offset: 3px;
}

body > .site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 96px;
  padding: 0 40px;
  gap: 24px;
  overflow: visible;
  border-bottom: 1px solid var(--shell-line);
  background: rgba(246, 243, 236, 0.98);
  box-shadow: 0 7px 24px rgba(19, 35, 58, 0.04);
}

body > .site-nav .nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 72px;
}

body > .site-nav .nav-logo img {
  display: block;
  width: auto;
  height: 76px;
  background: transparent;
  mix-blend-mode: multiply;
}

body > .site-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

body > .site-nav .nav-links a,
body > .site-nav .nav-donate {
  letter-spacing: 0;
}

body > .site-nav .nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--shell-navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body > .site-nav .nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--shell-terracotta);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

body > .site-nav .nav-links a:hover,
body > .site-nav .nav-links a[aria-current="page"] {
  color: var(--shell-terracotta);
}

body > .site-nav .nav-links a:hover::after,
body > .site-nav .nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

body > .site-nav .nav-donate {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--shell-terracotta);
  border-radius: 2px;
  background: var(--shell-terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

body > .site-nav .nav-donate:hover,
body > .site-nav .nav-donate[aria-current="page"] {
  border-color: #a84921;
  background: #a84921;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--shell-line);
  border-radius: 2px;
  background: var(--shell-paper);
  color: var(--shell-navy);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; top: -6px; }
.nav-toggle-lines::after { position: absolute; top: 6px; }

.site-nav.is-open .nav-toggle-lines { background: transparent; }
.site-nav.is-open .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.site-nav.is-open .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

body > .site-nav a:focus-visible,
body > .site-nav button:focus-visible,
body > footer a:focus-visible {
  outline: 3px solid rgba(42, 127, 127, 0.4);
  outline-offset: 3px;
}

body > footer {
  padding: 58px 40px 28px;
  background: #0d1a29;
  color: #fff;
}

body > footer :is(.footer-grid, .fg) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(150px, 1fr));
  gap: 48px;
  width: min(1180px, 100%);
  margin: 0 auto 40px;
}

body > footer :is(.footer-brand, .fb) img {
  display: block;
  width: auto;
  height: 54px;
  margin: 0 0 16px;
  object-fit: contain;
}

body > footer :is(.footer-brand, .fb) p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.75;
}

body > footer :is(.footer-col, .fc) h4 {
  margin: 0 0 16px;
  color: var(--shell-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body > footer :is(.footer-col, .fc) a,
body > footer :is(.footer-col, .fc) span {
  display: block;
  width: fit-content;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

body > footer :is(.footer-col, .fc) a:hover { color: var(--shell-gold); }

body > footer :is(.footer-bottom, .fb-bottom) {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.53);
  font-size: 12px;
}

body > footer :is(.footer-tagline, .ft) {
  color: var(--shell-gold);
  font-style: italic;
}

@media (max-width: 1120px) {
  body > .site-nav { padding: 0 24px; gap: 16px; }
  body > .site-nav .nav-links { gap: 15px; }
  body > .site-nav .nav-links a { font-size: 11px; }
  body > .site-nav .nav-donate { padding: 0 15px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 88px; }

  body > .site-nav {
    min-height: 76px;
    padding: 0 18px;
  }

  body > .site-nav .nav-logo img { height: 60px; }

  body > .site-nav.nav-enhanced .nav-toggle { display: grid; }

  body > .site-nav.nav-enhanced .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 77px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 18px 16px;
    border-bottom: 1px solid var(--shell-line);
    background: var(--shell-cream);
    box-shadow: 0 16px 28px rgba(19, 35, 58, 0.12);
  }

  body > .site-nav.nav-enhanced.is-open .nav-links { display: flex; }

  body > .site-nav.nav-enhanced .nav-links a {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(19, 35, 58, 0.09);
  }

  body > .site-nav.nav-enhanced .nav-links li:last-child a { border-bottom: 0; }
  body > .site-nav.nav-enhanced .nav-links a::after { display: none; }

  body > .site-nav .nav-donate {
    min-height: 40px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 11px;
  }

  body > footer { padding: 46px 24px 24px; }

  body > footer :is(.footer-grid, .fg) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  body > footer :is(.footer-brand, .fb) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body > .site-nav { gap: 10px; padding: 0 12px; }
  body > .site-nav .nav-logo { min-width: 56px; }
  body > .site-nav .nav-logo img { height: 54px; }
  body > .site-nav .nav-donate { padding: 0 10px; }

  body > footer :is(.footer-grid, .fg) { grid-template-columns: 1fr; }
  body > footer :is(.footer-brand, .fb) { grid-column: auto; }
  body > footer :is(.footer-bottom, .fb-bottom) {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
