:root {
  --primary: #075265;
  --primary-dark: #043f4d;
  --primary-soft: #e9f2f4;
  --accent: #a66f51;
  --accent-soft: #d7bca8;
  --ink: #18373d;
  --muted: #50696e;
  --card: #ffffff;
  --card-alt: #eff6f7;
  --line: rgba(7, 82, 101, 0.16);
  --shadow: 0 5px 16px rgba(7, 82, 101, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(7, 82, 101, 0.58);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.brand,
.btn,
.feature-card,
.social-card,
.link-card {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  background: #a8c3c9;
  border-bottom: 1px solid rgba(7, 82, 101, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar::before {
  content: "";
  display: block;
  height: 34px;
  background: var(--primary);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  line-height: 1;
}

.brand-logo {
  width: clamp(90px, 11vw, 130px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.brand-mark,
.brand > span:last-child {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
}

.main-nav a {
  color: var(--primary-dark);
  padding: 10px 14px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration-color: rgba(7, 82, 101, 0.48);
  text-underline-offset: 4px;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
  text-decoration-color: currentColor;
}

.language-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(7, 82, 101, 0.35);
}

.language-toggle button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(7, 82, 101, 0.25);
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.language-toggle button:last-child {
  border-right: 0;
}

.language-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

.language-toggle button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

.page-content {
  padding: 30px 0 56px;
}

.hero-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  padding: 42px 0 36px;
  box-shadow: none;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.5fr 0.9fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.lede {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.fundraising-copy {
  max-width: 900px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 0;
  padding: 0 20px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: rgba(20, 53, 98, 0.3);
}

.hero-meta {
  display: grid;
  gap: 14px;
  border-left: 4px solid #a8c3c9;
  padding-left: 22px;
  position: relative;
  z-index: 1;
}

.meta-box {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: 6px;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.meta-box strong {
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--ink);
}

.section-block {
  margin-top: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 30px 0;
  box-shadow: none;
}

.alt-block {
  background: transparent;
  border-top: 4px solid #a8c3c9;
}

.section-heading {
  margin-bottom: 18px;
}

.pill {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  letter-spacing: -0.04em;
}

.card-grid,
.info-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
}

.contact-leadership {
  grid-column: 1 / -1;
}

.feature-card,
.social-card,
.info-card,
.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 15px 0;
  transition: color 0.18s ease;
}

.feature-card:hover,
.social-card:hover,
.info-card:hover,
.link-card:hover {
  color: var(--primary);
}

.card-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.feature-card strong,
.social-card span,
.info-card h3,
.link-card strong {
  font-size: 1.08rem;
}

.feature-card strong,
.social-card span,
.link-card strong {
  text-decoration: underline;
  text-decoration-color: rgba(7, 82, 101, 0.58);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.feature-card small,
.social-card small,
.info-card p,
.link-card small {
  color: var(--muted);
  line-height: 1.6;
}

.social-card span {
  color: var(--ink);
}

.info-card h3 {
  margin: 0;
}

.info-card p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid rgba(7, 82, 101, 0.18);
  background: #a8c3c9;
}

.site-footer::after {
  content: "";
  display: block;
  min-height: 42px;
  background: var(--primary);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
  color: var(--muted);
}

.footer-wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-wrap a {
  color: var(--primary);
  font-weight: 600;
}

.footer-base {
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  padding: 14px 0;
}

.content-page {
  padding-top: 24px;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.page-header-copy {
  min-width: 0;
}

.openverse-photo {
  width: 100%;
  max-width: 509px;
  margin: 0;
}

.openverse-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.openverse-photo figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.page-header h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 12px 0 0;
  letter-spacing: -0.05em;
}

.page-header p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
}

.nowrap {
  white-space: nowrap;
}

.link-list {
  display: grid;
  gap: 12px;
}

.program-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.program-list .info-card {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 2fr;
  align-items: baseline;
  gap: 18px;
}

.link-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.link-card strong {
  color: var(--ink);
}

.link-card small {
  max-width: 620px;
}

.budget-link {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-header .btn {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 18px, 1160px);
  }

  .topbar::before {
    display: none;
  }

  .nav-wrap,
  .footer-wrap,
  .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav"
      "language language";
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px 0 12px;
    min-height: 0;
  }

  .page-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
    width: max-content;
    flex: 0 0 auto;
    margin-right: 2px;
  }

  .brand-logo {
    width: clamp(62px, 16vw, 82px);
    height: auto;
  }

  .main-nav {
    grid-area: nav;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    width: auto;
    margin-left: 0;
    overflow: visible;
    position: relative;
    margin-right: 0;
  }

  .main-nav a {
    padding: 6px 4px;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .language-toggle {
    grid-area: language;
    display: inline-flex;
    justify-self: end;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .hero-card {
    padding: 28px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 9vw, 3.3rem);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section-block {
    padding: 22px 0;
  }

  .link-card,
  .program-list .info-card {
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-wrap {
    padding: 18px 0 22px;
    gap: 10px;
  }

  .footer-wrap nav {
    gap: 10px 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .topbar::before {
    display: none;
  }

  .nav-wrap {
    padding: 8px 0 2px;
    column-gap: 4px;
    row-gap: 0;
  }

  .brand-logo {
    width: 56px;
  }

  .main-nav {
    gap: 2px;
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 8px 4px;
    font-size: 0.7rem;
  }

  .language-toggle {
    width: auto;
    justify-content: stretch;
    margin-left: auto;
    transform: translateY(-6px);
  }

  .language-toggle button {
    min-height: 24px;
    min-width: 25px;
    padding: 0 4px;
    flex: 1 1 0;
    font-size: 0.64rem;
  }

  .page-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }
}
