:root {
  --navy-950: #061126;
  --navy-900: #0a1b3a;
  --navy-800: #12305d;
  --gold: #dfb95d;
  --gold-dark: #b78225;
  --ink: #142039;
  --muted: #67758b;
  --line: #dce4ef;
  --soft: #edf5ff;
  --white: #fff;
  --shadow: 0 22px 60px rgba(6, 17, 38, 0.14);
  --radius: 8px;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(6, 17, 38, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  border: 1px solid rgba(223, 185, 93, 0.5);
  border-radius: 50%;
}
.brand strong { display: block; text-transform: uppercase; font-size: 0.98rem; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }

.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 0.94rem; }
.nav a { color: rgba(255, 255, 255, 0.8); }
.nav a:hover { color: var(--gold); }
.nav-toggle { display: none; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(112deg, rgba(6, 17, 38, 0.98), rgba(18, 48, 93, 0.92)),
    var(--navy-950);
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}
.hero p { max-width: 650px; margin: 26px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}
.button-gold { color: var(--navy-950); background: var(--gold); box-shadow: 0 16px 38px rgba(223, 185, 93, 0.2); }
.button-dark { color: var(--white); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(223, 185, 93, 0.44);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ticker {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--gold-dark);
}
.ticker strong { color: var(--navy-950); text-transform: uppercase; }

.portal-section { padding: clamp(70px, 9vw, 112px) clamp(20px, 5vw, 72px); }
.section-head,
.intro,
.split,
.visit {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(26px, 6vw, 76px);
}
.label { margin: 0 0 12px; color: var(--gold-dark); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4.6vw, 4.5rem); line-height: 1.02; }
h3 { margin: 10px 0 8px; line-height: 1.18; }
.intro p:last-child,
.split p,
.visit p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.text-link { color: var(--gold-dark); font-weight: 800; justify-self: end; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.story-card,
.event-list article,
.service-grid article,
.media-card,
.media-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(20, 32, 57, 0.06);
}
.story-card { overflow: hidden; }
.story-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-card div { padding: 20px; }
time, .media-card span, .service-grid span {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.story-card p, .event-list p { margin: 0; color: var(--muted); }

.split,
.service-band { background: var(--soft); }
.event-list { display: grid; gap: 12px; }
.event-list article { padding: 22px; border-left: 4px solid var(--gold); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.service-grid article { padding: 24px; }
.service-grid p { color: var(--muted); margin: 0; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.media-card, .media-empty { min-height: 132px; padding: 22px; }
.media-card { display: grid; align-content: end; color: var(--white); background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.media-empty { color: var(--muted); grid-column: 1 / -1; }

.visit { align-items: center; color: var(--white); background: var(--navy-950); }
.visit p { color: rgba(255, 255, 255, 0.72); }
.visit .button { justify-self: end; }
.site-alert {
  margin: 0;
  padding: 14px clamp(20px, 5vw, 72px);
  color: #123518;
  background: #def6df;
  border-bottom: 1px solid #b8dfbc;
  font-weight: 800;
}
.site-alert.alert-error {
  color: #9b1c15;
  background: #ffe9e7;
  border-color: #ffc8c2;
}
.public-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(20, 32, 57, 0.06);
}
.public-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
  font-size: 0.9rem;
}
.public-form input,
.public-form textarea,
.public-form select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}
.public-form textarea { resize: vertical; }
.public-form .wide,
.forum-form { grid-column: 1 / -1; }
.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.membership .section-head,
.forums .section-head {
  align-items: start;
}
.membership .section-head > p,
.forums .section-head > p,
.muted {
  color: var(--muted);
  margin: 0;
}
.forums { background: var(--soft); }
.forum-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.forum-column,
.forum-post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.forum-column { padding: 24px; }
.forum-column h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.forum-post { padding: 16px; margin-top: 12px; }
.forum-post strong { color: var(--gold-dark); }
.forum-post p { margin: 8px 0 0; color: var(--muted); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: #030814;
}
.footer p { margin: 0; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
  }
  .nav {
    position: fixed;
    inset: 76px 14px auto;
    display: grid;
    gap: 0;
    padding: 10px;
    color: var(--navy-950);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 160ms ease;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav a { padding: 13px; color: var(--navy-950); }
  .hero,
  .section-head,
  .intro,
  .split,
  .visit { grid-template-columns: 1fr; }
  .card-grid,
  .service-grid,
  .media-grid,
  .public-form,
  .forum-layout { grid-template-columns: 1fr; }
  .text-link,
  .visit .button { justify-self: start; }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
    overflow-wrap: break-word;
  }
  .hero-actions,
  .button { width: 100%; }
  .brand small { display: none; }
  .ticker { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer { display: grid; }
}
