:root {
  --green-950: #3e4a7a;
  --green-900: #3a4674;
  --green-800: #405073;
  --club-blue: #2f3796;
  --cream: #f4f4f4;
  --cream-2: #f8f9fb;
  --sand: #c9d3e0;
  --chrome: #e7ebf0;
  --anthracite: #405073;
  --muted: #586782;
  --rust: #e53935;
  --rust-dark: #bf2421;
  --button-blue: #4d7ef3;
  --button-blue-hover: #3a4674;
  --line: #c9d3e0;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(62, 74, 122, 0.14);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Trebuchet MS", sans-serif;
  --container: min(1180px, calc(100vw - 40px));
  --header-edge-gap: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(62, 74, 122, 0.035) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(180deg, rgba(77, 126, 243, 0.055), transparent 360px),
    var(--cream-2);
  color: var(--anthracite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

body.gallery-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(77, 126, 243, 0.58);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--green-950);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: 4rem;
}

h2 {
  max-width: 780px;
  font-size: 2.75rem;
}

h3 {
  font-size: 1.55rem;
}

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: var(--header-edge-gap);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 10px 10px 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 18px 55px rgba(62, 74, 122, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.brand-logo {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  border-radius: 7px;
  padding: 10px 15px;
  color: var(--green-950);
  font-size: 0.93rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover {
  background: rgba(77, 126, 243, 0.1);
  color: var(--button-blue);
}

.main-nav a[aria-current="page"] {
  background: var(--club-blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
}

.section-pad {
  width: var(--container);
  margin-inline: auto;
  padding-block: clamp(78px, 11vw, 138px);
}

.page-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(var(--header-edge-gap) + 4px);
  margin-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  padding-top: clamp(86px, 10vw, 132px);
  padding-bottom: clamp(52px, 8vw, 92px);
  background:
    linear-gradient(90deg, rgba(62, 74, 122, 0.055) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--white);
  border-block: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero > p {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.home-hero {
  width: 100%;
  margin: 0 auto;
  padding-top: calc(var(--header-edge-gap) + 4px);
  padding-bottom: 0;
  background: transparent;
}

.home-hero-panel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.92fr);
  align-items: stretch;
  min-height: min(820px, calc(100svh - 88px));
  gap: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero-panel > * {
  min-width: 0;
}

.hero-copy {
  display: grid;
  align-content: center;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(135deg, #3e4a7a, #3a4674 56%, #2f3796);
  padding: clamp(64px, 8vw, 120px);
}

.hero-copy h1,
.hero-copy .hero-lede {
  color: var(--white);
}

.hero-copy h1 {
  font-size: 5.35rem;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--rust);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
  font-size: 1.48rem;
  line-height: 1.48;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--button-blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--button-blue-hover);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.home-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.teaser-card {
  display: grid;
  min-height: 220px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), var(--cream));
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 18px 60px rgba(62, 74, 122, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.teaser-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 126, 243, 0.4);
  box-shadow: 0 24px 80px rgba(62, 74, 122, 0.14);
}

.teaser-card span {
  margin-bottom: 18px;
  color: var(--rust);
  font-weight: 700;
}

.teaser-card h3 {
  margin-bottom: 12px;
}

.teaser-card p {
  margin-bottom: 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  aspect-ratio: auto;
  min-height: 820px;
  border: 0;
  border-radius: 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--green-950);
}

.intro-strip div {
  padding: 28px clamp(18px, 4vw, 38px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.intro-strip div:first-child {
  border-inline-start: 0;
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong {
  margin-bottom: 8px;
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.intro-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.45;
}

.section-heading {
  margin-bottom: clamp(32px, 6vw, 64px);
}

.section-heading.narrow {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.section-heading.split p:last-child {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

main > .section-pad[aria-labelledby="home-pages-title"] {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  padding-top: clamp(72px, 8vw, 106px);
  padding-bottom: clamp(84px, 10vw, 126px);
  background:
    linear-gradient(180deg, rgba(62, 74, 122, 0.07), rgba(248, 249, 251, 0) 132px),
    var(--cream-2);
}

main > .section-pad[aria-labelledby="home-pages-title"] > * {
  width: min(1180px, 100%);
  margin-inline: auto;
}

main > .section-pad[aria-labelledby="home-pages-title"] .section-heading {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: stretch;
}

.about-media {
  min-height: clamp(560px, 52vw, 720px);
  border-radius: 8px;
}

.about-copy {
  max-width: 680px;
}

.lead {
  color: var(--anthracite);
  font-size: 1.34rem;
  line-height: 1.5;
}

.about-detail {
  margin-top: 24px;
}

.about-detail h3 {
  margin-bottom: 10px;
}

.about-detail p {
  margin-bottom: 0;
}

.knowledge-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.knowledge-list li {
  border-left: 3px solid var(--rust);
  padding: 10px 0 10px 14px;
  color: var(--muted);
}

.knowledge-list strong {
  color: var(--green-950);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--green-950);
  font-size: 0.94rem;
  font-weight: 800;
}

.club-gallery {
  padding-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.72fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
  box-shadow: 0 18px 60px rgba(62, 74, 122, 0.08);
}

.gallery-item-large {
  grid-row: span 2;
  min-height: 560px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.faq {
  background:
    linear-gradient(180deg, rgba(248, 249, 251, 0.12), rgba(62, 74, 122, 0) 118px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 70px 70px,
    var(--green-950);
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  padding-top: clamp(76px, 9vw, 118px);
  padding-bottom: clamp(78px, 9vw, 116px);
}

.faq h2,
.faq .eyebrow {
  color: var(--cream-2);
}

.faq .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.faq-list {
  max-width: 880px;
  margin-inline: auto;
}

details {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

details:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  cursor: pointer;
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
}

.club-life {
  padding-bottom: clamp(70px, 9vw, 110px);
}

.club-life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.life-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(62, 74, 122, 0.08);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.life-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 126, 243, 0.4);
  box-shadow: 0 24px 80px rgba(62, 74, 122, 0.14);
}

.life-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

.life-card div {
  padding: 24px 22px 26px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--rust);
  font-family: var(--font-display);
  font-weight: 750;
}

.life-card h3 {
  margin-bottom: 16px;
  font-size: 1.55rem;
}

.life-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.cms-gallery {
  padding-top: 0;
}

.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.cms-gallery-item {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 60px rgba(62, 74, 122, 0.08);
}

.cms-gallery-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 660px;
}

.cms-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.cms-gallery-item::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(180deg, rgba(62, 74, 122, 0), rgba(62, 74, 122, 0.86));
  pointer-events: none;
}

.cms-gallery-item:hover img {
  transform: scale(1.035);
}

.cms-gallery-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--white);
}

.cms-gallery-caption span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cms-gallery-caption strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 39, 69, 0.82);
  backdrop-filter: blur(14px);
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  max-height: min(900px, calc(100svh - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 34px 100px rgba(20, 28, 53, 0.32);
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.gallery-modal-header .eyebrow {
  margin-bottom: 8px;
}

.gallery-modal-header h2 {
  font-size: 2rem;
}

.gallery-modal-close,
.gallery-control,
.gallery-thumb {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.gallery-modal-close {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-950);
  padding: 10px 14px;
  font-weight: 700;
}

.gallery-modal-stage {
  position: relative;
  display: grid;
  min-height: 0;
  background: #0f1718;
}

.gallery-modal-stage img {
  width: 100%;
  height: min(620px, 62svh);
  object-fit: contain;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-950);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-control-prev {
  left: 18px;
}

.gallery-control-next {
  right: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-auto-columns: 96px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 14px clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line);
}

.gallery-thumb {
  overflow: hidden;
  width: 96px;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--sand);
  padding: 0;
}

.gallery-thumb[aria-current="true"] {
  border-color: var(--button-blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-night {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding: 0;
}

.club-night-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(135deg, #3e4a7a, #3a4674 58%, #2f3796);
  padding-block: clamp(42px, 6vw, 76px);
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  color: var(--cream-2);
  box-shadow: var(--shadow);
}

.club-night h2 {
  max-width: 780px;
  color: var(--cream-2);
}

.club-night p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
}

.club-night .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.club-night-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  padding: clamp(22px, 4vw, 34px);
}

.club-night-card span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-transform: uppercase;
}

.club-night-card strong {
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 3.05rem;
  line-height: 1;
}

.club-night-card a:not(.button) {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.club-night-card .button {
  justify-self: start;
  margin-top: 14px;
  background: var(--white);
  color: var(--button-blue);
}

.club-night-card .button:hover {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.contact-main {
  padding-top: calc(var(--header-edge-gap) + 4px);
}

.contact-split {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.88fr);
  gap: 0;
  align-items: stretch;
  padding-bottom: 0;
}

.contact-hero-card {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 640px;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(135deg, #3e4a7a, #3a4674 58%, #2f3796);
  padding: clamp(36px, 5vw, 56px);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(62, 74, 122, 0.14);
}

.contact-hero-card h1,
.contact-hero-card p {
  color: var(--white);
}

.contact-hero-card > p {
  max-width: 660px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}

.contact-hero-card .eyebrow {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-form,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 70px rgba(62, 74, 122, 0.08);
}

.contact-form {
  display: grid;
  gap: 18px;
  min-height: 640px;
  padding: clamp(32px, 4vw, 48px);
}

.contact-form-hero {
  align-content: center;
  border-radius: 0;
  box-shadow: 0 24px 70px rgba(62, 74, 122, 0.12);
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  color: var(--green-950);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--anthracite);
  font: inherit;
  padding: 13px 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 148px;
}

input:hover,
textarea:hover {
  border-color: var(--line);
}

input:focus,
textarea:focus {
  border-color: var(--button-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(77, 126, 243, 0.13);
  outline: none;
}

.form-submit {
  justify-self: start;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3.5vw, 36px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.panel-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-link {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--white);
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--white);
  color: var(--white);
}

.site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: #37436d;
  color: var(--cream-2);
  padding: clamp(48px, 6vw, 72px) 0 clamp(18px, 3vw, 26px);
}

.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.58fr) minmax(420px, 0.72fr);
  grid-template-areas: "brand links";
  gap: clamp(44px, 7vw, 96px);
  align-items: stretch;
  width: var(--container);
  margin-inline: auto;
}

.footer-brand-panel {
  display: grid;
  grid-area: brand;
  grid-template-columns: auto auto;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.footer-brand {
  color: var(--cream-2);
}

.footer-brand .brand-logo {
  height: clamp(148px, 11vw, 196px);
}

.footer-member {
  display: flex;
  align-items: center;
}

.footer-nav span {
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #8fb0ee;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-member-logo {
  width: auto;
  height: clamp(148px, 11vw, 196px);
  object-fit: contain;
  opacity: 0.95;
}

.footer-link-panel {
  grid-area: links;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-top: 0;
  align-self: stretch;
  align-items: start;
  justify-self: end;
  justify-items: end;
  width: min(420px, 100%);
}

.footer-nav {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 12px;
  min-width: 0;
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: var(--container);
  margin-top: clamp(42px, 5vw, 64px);
  margin-inline: auto;
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.2vw, 1.16rem);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px clamp(22px, 3vw, 34px);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

.admin-bar .site-header {
  top: calc(var(--header-edge-gap) + 32px);
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

.entry-content {
  max-width: 880px;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content a {
  color: var(--button-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 18px 60px rgba(62, 74, 122, 0.08);
}

.post-card h2 {
  margin-bottom: 0;
  font-size: 2.1rem;
}

.post-card-media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
}

.post-card-media img,
.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-featured-image {
  margin-bottom: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

.nav-links a {
  color: var(--button-blue);
  font-weight: 800;
}

.theme-sidebar {
  padding-top: 0;
}

.widget {
  max-width: 880px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.widget-title {
  font-size: 1.7rem;
}

.wp-block-image img {
  height: auto;
}

.alignwide {
  max-width: 1180px;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: calc(var(--header-edge-gap) + 46px);
  }
}

@media (max-width: 980px) {
  .home-hero-panel,
  .about-grid,
  .page-hero,
  .section-heading.split,
  .club-night-inner,
  .contact-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-panel {
    width: 100%;
    margin-left: 0;
    min-height: auto;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    width: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .about-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .hero-copy {
    border-radius: 0;
  }

  .intro-strip,
  .home-teasers,
  .gallery-grid,
  .cms-gallery-grid,
  .club-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cms-gallery-featured {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 440px;
  }

  .gallery-item-large {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 420px;
  }

  .intro-strip div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .contact-panel {
    position: static;
  }

  .contact-hero-card {
    border-radius: 8px 8px 0 0;
    min-height: auto;
  }

  .contact-form-hero {
    border-radius: 0 0 8px 8px;
    min-height: auto;
  }

  .contact-main {
    padding-top: calc(var(--header-edge-gap) + 4px);
  }

  .contact-split {
    width: 100%;
    margin-left: 0;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand-panel {
    max-width: none;
  }

  .footer-link-panel {
    max-width: none;
    padding-top: 0;
    width: min(260px, 100%);
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 1180px);
    --header-edge-gap: 8px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    width: calc(100vw - 20px);
    margin-top: 0;
  }

  .brand-logo {
    height: 50px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--green-950);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle span + span {
    margin-top: 0;
  }

  .site-header.nav-active .nav-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.nav-active .nav-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 74px;
    right: 10px;
    left: 10px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 70px rgba(62, 74, 122, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px);
  }

  .site-header.nav-active .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .section-pad {
    padding-block: 72px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3,
  .life-card h3 {
    font-size: 1.62rem;
  }

  .hero-lede,
  .lead {
    font-size: 1.08rem;
  }

  summary {
    font-size: 1.45rem;
  }

  .club-night-card strong {
    font-size: 2.25rem;
  }

  .contact-link {
    font-size: 1.45rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .intro-strip,
  .home-teasers,
  .gallery-grid,
  .cms-gallery-grid,
  .club-life-grid {
    grid-template-columns: 1fr;
  }

  .cms-gallery-item,
  .cms-gallery-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }

  .gallery-item,
  .gallery-item-large {
    min-height: 260px;
  }

  .page-hero {
    padding-top: 72px;
  }

  .intro-strip div,
  .intro-strip div:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .intro-strip div:first-child {
    border-top: 0;
  }

  .about-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  summary {
    align-items: flex-start;
    min-height: 70px;
    padding-block: 18px;
  }

  .club-night {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: 0;
  }

  .club-night-inner {
    padding: 28px 18px;
  }

  .contact-form,
  .contact-panel {
    padding: 20px;
  }

  .contact-main {
    padding-top: calc(var(--header-edge-gap) + 4px);
  }

  .contact-split {
    padding-bottom: 0;
  }

  .contact-hero-card {
    padding: 20px 18px;
    gap: 18px;
  }

  .contact-form {
    min-height: auto;
    padding: 20px 18px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand-panel {
    grid-template-columns: auto auto;
    gap: 20px;
    align-items: center;
  }

  .footer-brand .brand-logo {
    height: 136px;
  }

  .footer-member-logo {
    width: auto;
    height: 136px;
  }

  .footer-link-panel {
    gap: 24px;
    justify-self: stretch;
    justify-items: start;
    width: 100%;
  }

  .footer-nav {
    justify-items: start;
    text-align: left;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .footer-bottom-links a {
    text-align: left;
  }

}

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