/* Self-hosted Google Fonts (SIL Open Font License): DM Sans, Manrope. latin + latin-ext subsets. */
/* latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dmsans-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dmsans-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #05234e;
  --teal: #007f96;
  --aqua: #70d8e4;
  --ink: #142c48;
  --muted: #526477;
  --line: #d8e3e9;
  --pale: #eef6f8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 6px;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  line-height: 1.2;
}
h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  background: white;
  padding: 1rem;
  z-index: 5;
}
.skip:focus {
  top: 1rem;
}
.topline {
  background: var(--navy);
  color: white;
  padding: 0.55rem 6%;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
}
.topline span {
  color: #b5dce6;
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 1.3rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: Manrope, sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 800;
}
.brand img {
  border-radius: 50%;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1rem;
  font-weight: 600;
}
.nav-contact {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.hero {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 4%;
  padding: 3.8rem 6% 4.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
h1 {
  font-size: clamp(2.75rem, 4.2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
}
h1 em {
  color: var(--teal);
  font-style: normal;
}
.intro {
  max-width: 33rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.2rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.button {
  background: var(--navy);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
}
.button:hover {
  background: var(--teal);
  text-decoration: none;
}
.text-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.hero-art {
  margin: 0;
  background: #031d47;
  border-radius: 48% 48% 8px 8px;
  overflow: hidden;
  padding: 1.5rem 1rem 1.8rem;
  text-align: center;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-art figcaption {
  color: #c9e6ee;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.values {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem 10%;
  border-block: 1px solid var(--line);
  background: var(--pale);
  font-size: 1rem;
  font-weight: 600;
}
.values li::before {
  content: "✦";
  color: var(--teal);
  margin-right: 0.75rem;
}
.section {
  padding: 6rem 6%;
  max-width: 1440px;
  margin: auto;
}
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 10%;
}
.section-heading > p:last-child {
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 25rem;
}
.statements article + article {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.09em;
  display: block;
  margin-bottom: 0.7rem;
}
.statements p {
  margin-top: 1rem;
  color: var(--muted);
}
.events {
  background: var(--pale);
  max-width: none;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-top > p {
  color: var(--muted);
  font-size: 1rem;
}
.event-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.event-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua);
  background: var(--navy);
  font-size: 8rem;
  min-height: 270px;
}
.event-panel > div:last-child {
  padding: 2.3rem 3rem;
}
.pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: var(--pale);
  color: var(--teal);
  display: inline-block;
  margin-bottom: 1rem;
}
.event-panel p {
  color: var(--muted);
  max-width: 42rem;
  margin: 1rem 0;
}
.contact {
  padding: 4rem 6%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--navy);
  color: white;
}
.contact .eyebrow {
  color: var(--aqua);
}
.contact h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
}
.contact p {
  margin-top: 1.5rem;
  color: #c4d5e6;
  font-size: 1rem;
}
.contact-details {
  border-left: 1px solid #426080;
  padding: 1rem 0 1rem 3rem;
}
.contact-details span {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--aqua);
  display: block;
}
.contact-details a {
  display: block;
  font-size: clamp(1rem, 1.65vw, 1.5rem);
  margin-top: 0.6rem;
  text-decoration: underline;
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
}
footer {
  padding: 2rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-name {
  font-weight: 700;
  color: var(--navy);
}
.footer-name span {
  font-weight: 400;
}
footer a {
  text-decoration: underline;
}
@media (min-width: 1500px) {
  .events,
  .contact {
    padding-inline: calc((100% - 1268px) / 2);
  }
}
@media (max-width: 900px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
  .hero {
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-art figcaption {
    font-size: 0.8125rem;
  }
  .values {
    padding-inline: 6%;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .about {
    gap: 3rem;
    grid-template-columns: 1fr 1.3fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-details {
    padding: 0;
    border: 0;
  }
  footer {
    flex-wrap: wrap;
  }
  .actions {
    gap: 1rem;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .topline {
    font-size: 0.8125rem;
  }
  .topline span {
    display: none;
  }
  .brand {
    font-size: 1rem;
  }
  .brand img {
    width: 52px;
    height: 52px;
  }
  nav {
    font-size: 0.875rem;
    gap: 0.75rem;
  }
  .nav-contact {
    padding: 0.45rem 0.6rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }
  h1 {
    font-size: 2.8rem;
  }
  .hero-art {
    max-width: 360px;
    margin: 1rem auto 0;
  }
  .values {
    display: grid;
    gap: 0.4rem;
    font-size: 0.875rem;
  }
  .section {
    padding: 3.5rem 6%;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section-top {
    display: block;
  }
  .section-top > p {
    margin-top: 1rem;
  }
  .event-panel {
    grid-template-columns: 1fr;
  }
  .event-symbol {
    min-height: 120px;
    font-size: 5rem;
  }
  .event-panel > div:last-child {
    padding: 1.5rem;
  }
  .contact {
    padding-block: 3rem;
  }
  .contact-details a {
    font-size: 1.05rem;
  }
  footer {
    display: grid;
    gap: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* Gallery grid */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.gallery-item[hidden],
.js .gallery-grid:not(.ready) .gallery-item:nth-child(n + 25) {
  display: none;
}
.gallery-item a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--pale);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item a:hover img,
.gallery-item a:focus-visible img {
  transform: scale(1.04);
}
.gallery-item a:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 3px;
}
.gallery-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-status {
  color: var(--muted);
  font-size: 0.875rem;
}
.gallery-more {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}
.gallery-more:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 4px;
}

/* Lightbox */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 22, 52, 0.97);
  color: white;
}
.lightbox::backdrop {
  background: rgba(3, 22, 52, 0.97);
}
.lightbox-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1rem 1rem;
}
.lightbox figure {
  margin: 0;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox figcaption {
  text-align: center;
  font-size: 1rem;
  color: #c9e6ee;
  max-width: 50rem;
}
.lightbox-count {
  display: block;
  font-size: 0.875rem;
  color: var(--aqua);
}
.lightbox button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0.2rem;
}
.lightbox button:hover {
  background: var(--teal);
}
.lightbox button:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 3px;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}
html.lightbox-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .lightbox-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    padding: 3.5rem 0.5rem 1rem;
  }
  .lightbox figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .lightbox-prev {
    grid-row: 2;
    justify-self: end;
  }
  .lightbox-next {
    grid-row: 2;
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img {
    transition: none;
  }
}

/* ---------- Events (upcoming + past) ---------- */
.anchor-alias {
  position: relative;
  top: -2rem;
  display: block;
}
.upcoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.upcoming-card .upcoming-flyer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  min-height: 270px;
}
.upcoming-card .upcoming-flyer img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
}
.upcoming-card h3 a:hover {
  color: var(--teal);
}
.event-location {
  font-weight: 600;
  color: var(--navy) !important;
  margin: 0.25rem 0 0 !important;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.event-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Even card grid: 4 columns on desktop, 3 on tablet, 2 on phone, 1 on very small screens.
     grid-auto-rows: 1fr makes every row (and so every card) the same height. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
.event-card {
  display: flex;
  min-width: 0;
}
.event-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.event-card a:hover {
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(5, 35, 78, 0.12);
  transform: translateY(-2px);
}
.event-card a:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 3px;
}
.event-card-media {
  display: block;
  flex: none;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: hidden;
}
.event-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.event-card-placeholder {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--aqua);
  font-size: 4rem;
}
.event-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem 1.3rem;
}
.event-card-date {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.event-card-title {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.event-card-meta {
  margin-top: auto;
  padding-top: 0.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.empty-note {
  color: var(--muted);
}

/* ---------- Event page ---------- */
.event-page {
  padding-top: 3rem;
}
.back-link {
  display: inline-flex;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 2rem;
}
.back-link:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 4px;
}
.event-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.event-head.has-flyer {
  grid-template-columns: 1.4fr 1fr;
}
.event-title {
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--navy);
}
.event-meta {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.event-description {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 42rem;
}
.event-ask {
  margin-top: 1.75rem;
}
.event-ask .button {
  display: inline-block;
}
.event-flyer {
  margin: 0;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.event-flyer img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  border-radius: 4px;
}
.event-flyer a:focus-visible {
  outline: 3px solid #e59d19;
  outline-offset: 3px;
}
.event-flyer figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.gallery-empty-note {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed #a5bec9;
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--muted);
}
.not-found {
  min-height: 40vh;
}
.not-found p:last-child {
  margin-top: 1.25rem;
  color: var(--muted);
}
@media (max-width: 1099px) {
  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  /* dates may wrap to two lines in narrower cards; reserve both so titles line up across a row */
  .event-card-date {
    line-height: 1.35;
    min-height: 2.7em;
  }
}
@media (max-width: 900px) {
  .event-head.has-flyer {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
}
@media (max-width: 600px) {
  .event-card-body {
    padding: 0.75rem 0.8rem 0.9rem;
  }
  .event-card-title {
    font-size: 1rem;
  }
  .event-card-date {
    font-size: 0.72rem;
  }
  .event-card-meta {
    font-size: 0.8rem;
  }
  .upcoming-card .upcoming-flyer {
    min-height: 0;
    padding: 1rem;
  }
  .event-page {
    padding-top: 2rem;
  }
}
@media (max-width: 359px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .event-card a {
    transition: none;
  }
}
