:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #62666d;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d9d5ca;
  --blue: #0277b8;
  --blue-dark: #003c5f;
  --red: #b7282e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 0.95;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 800;
}

.header-club-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-club-logos a {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.header-club-logos img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-picture,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture {
  display: block;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.1) 56%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding: 0 clamp(20px, 6vw, 72px) clamp(72px, 12vh, 128px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #75d2ff;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 14vw, 8.8rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 750;
}

.button.primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.button.ghost {
  color: #fff;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
}

.intro > p,
.copy-block p,
.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.club-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.club-logo-card {
  display: grid;
  min-height: 188px;
  place-items: center;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.club-logo-card img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}

.club-logo-card figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 800;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card div {
  padding: 22px;
}

.feature-card p,
.notice-list p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 6vw, 78px);
  border-top: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.facts div {
  border-top: 3px solid var(--blue);
  padding-top: 12px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.notice-board {
  border-top: 1px solid var(--line);
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.notice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notice-list article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.notice-list time {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--blue-dark);
  font-weight: 800;
}

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

.link-card {
  display: grid;
  min-height: 178px;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.link-card span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.link-card strong {
  font-size: 1.28rem;
  line-height: 1.05;
}

.link-card small {
  color: var(--muted);
  font-weight: 750;
}

.link-card-members {
  background:
    linear-gradient(135deg, rgba(0, 60, 95, 0.08), rgba(183, 40, 46, 0.06)),
    var(--surface);
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 12vw, 178px);
  gap: 12px;
  grid-auto-flow: dense;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}

.gallery-feature {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-panorama {
  grid-column: span 4;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-square {
  grid-column: span 2;
}

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

.gallery-focus-top img {
  object-position: center 24%;
}

.gallery-focus-bottom img {
  object-position: center 72%;
}

.gallery-tall {
  grid-column: span 2;
  grid-row: span 2;
}

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

.sponsors-section {
  padding-top: 0;
  border-top: 1px solid var(--line);
}

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

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

.sponsor-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.sponsor-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 92px;
  height: 92px;
  border: 18px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.sponsor-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sponsor-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.sponsor-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-transform: uppercase;
}

.sponsor-card-blue {
  color: var(--blue-dark);
}

.sponsor-card-red {
  color: var(--red);
}

.sponsor-card-dark {
  color: var(--ink);
}

.sponsor-card-light {
  background: var(--blue-dark);
  color: #fff;
}

.sponsor-card-light p {
  color: rgba(255, 255, 255, 0.72);
}

.sponsor-logo-card {
  min-height: 220px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.sponsor-logo-card::after {
  display: none;
}

.sponsor-logo-card img {
  width: min(260px, 100%);
  max-height: 98px;
  object-fit: contain;
  margin-bottom: 16px;
}

.sponsor-card-reserved {
  color: var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(2, 119, 184, 0.08), rgba(183, 40, 46, 0.05)),
    var(--surface);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(42px, 7vw, 70px) clamp(20px, 6vw, 72px);
  background: var(--blue-dark);
  color: #fff;
}

.contact-band .eyebrow {
  color: #75d2ff;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-band address {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.contact-address {
  display: grid;
  gap: 2px;
  max-width: 460px;
  line-height: 1.4;
}

.contact-band a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 6vw, 72px);
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox {
  width: min(1080px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #101010;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-close {
  top: 10px;
  right: 10px;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.members-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 64px);
  background: var(--blue-dark);
  color: #fff;
}

.members-card {
  width: min(920px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.members-visual {
  position: relative;
  min-height: clamp(360px, 62vh, 620px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vw, 80px);
  isolation: isolate;
}

.members-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.members-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(-42deg, rgba(255, 205, 0, 0.84) 0 18px, rgba(20, 20, 20, 0.84) 18px 36px);
  mix-blend-mode: multiply;
}

.members-sign {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 46px);
  border: 4px solid #ffd34d;
  border-radius: 8px;
  background: rgba(247, 245, 239, 0.94);
  color: var(--ink);
  text-align: center;
  transform: rotate(-2deg);
}

.members-sign span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.members-sign h1 {
  margin: 10px 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 0.96;
}

.members-sign p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.members-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 30px);
  background: #fff;
  color: var(--ink);
}

.members-footer a {
  font-weight: 850;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 18px;
  }

  .header-club-logos a {
    width: 74px;
    height: 74px;
  }

  .header-club-logos img {
    width: 60px;
    height: 60px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 54px;
  }

  .intro,
  .split,
  .feature-grid,
  .notice-list,
  .link-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .facts,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .gallery-feature,
  .gallery-panorama,
  .gallery-wide,
  .gallery-square,
  .gallery-tall {
    grid-column: span 2;
    grid-row: span 1;
  }

  .contact-band address {
    text-align: left;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 620px;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 1.4rem;
  }

  .brand small {
    font-size: 0.88rem;
  }

  .header-club-logos {
    gap: 7px;
  }

  h1 {
    font-size: 3.8rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section {
    width: min(100% - 28px, 1160px);
  }

  .club-logos {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-feature,
  .gallery-panorama,
  .gallery-wide,
  .gallery-square,
  .gallery-tall {
    grid-column: auto;
  }
}
