:root {
  --ink: #1c2a33;
  --ink-soft: #3d4f5c;
  --paper: #f7f4ef;
  --paper-deep: #ebe4d8;
  --panel: #ffffff;
  --accent: #1f5c63;
  --accent-deep: #134348;
  --accent-soft: #d7e6e7;
  --gold: #b08a3c;
  --line: rgba(28, 42, 51, 0.12);
  --shadow: 0 18px 50px rgba(19, 40, 48, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Lora", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(31, 92, 99, 0.12), transparent 34%),
    linear-gradient(180deg, #eef3f2 0%, var(--paper) 38%, #f3eee6 100%);
  min-height: 100vh;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.section-inner,
.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  color: var(--accent-deep);
}

.brand-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

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

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.has-sub > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.has-sub > button:hover,
.has-sub.open > button {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  list-style: none;
  margin: 0;
}

.has-sub.open > .submenu,
.has-sub:focus-within > .submenu {
  display: block;
}

.submenu a {
  display: block;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-weight: 500;
}

.submenu .nested {
  margin: 0.25rem 0 0.35rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-soft);
  list-style: none;
}

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #16363b;
  background-image:
    linear-gradient(180deg, rgba(12, 28, 34, 0.15), rgba(12, 28, 34, 0.62)),
    var(--hero-image, none),
    radial-gradient(ellipse at 20% 20%, rgba(176, 138, 60, 0.28), transparent 42%),
    radial-gradient(ellipse at 80% 10%, rgba(88, 156, 164, 0.35), transparent 45%),
    linear-gradient(135deg, #1a454c 0%, #0f262b 48%, #234f45 100%);
  background-position: center, center, center, center, center;
  background-size: cover, cover, auto, auto, cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 36, 42, 0.55), transparent 55%);
}

.hero-inner {
  padding: 5.5rem 0 3.5rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.05;
  font-weight: 700;
  max-width: 10ch;
  animation: riseIn 0.9s ease both;
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.92);
  animation: riseIn 1s ease 0.12s both;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 92, 99, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.page-hero p {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.section {
  padding: 3rem 0;
}

.section + .section {
  padding-top: 0;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.lead {
  color: var(--ink-soft);
  max-width: 48rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

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

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

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 30px rgba(20, 40, 48, 0.05);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--accent-deep);
  border-color: rgba(31, 92, 99, 0.35);
}

.button.secondary:hover {
  background: var(--accent-soft);
}

.hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1d22;
  aspect-ratio: 16 / 9;
}

.media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.list-clean {
  margin: 0;
  padding-left: 1.15rem;
}

.list-clean li + li {
  margin-top: 0.35rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.link-list a {
  text-decoration: none;
  font-weight: 600;
}

.staff-list p {
  margin: 0.35rem 0;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, #16363b, #0f262b);
  color: #e8f0f1;
}

.site-footer a {
  color: #d8ecee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-footer p {
  margin: 0.35rem 0;
  color: rgba(232, 240, 241, 0.88);
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: rgba(232, 240, 241, 0.7);
}

.affirming {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(176, 138, 60, 0.16);
  color: #f3e4c0;
  font-weight: 700;
  font-size: 0.9rem;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -1%, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0.15rem 0 0.35rem 0.7rem;
    min-width: 0;
  }

  .has-sub.open > .submenu {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
