:root {
  color-scheme: light;
  --background: #f5f5f2;
  --foreground: #232323;
  --muted: #6e6e6e;
  --line: #deded8;
  --accent: #cf2e2e;
  --accent-strong: #a92121;
  --gold: #c9a35a;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --dark: #161616;
  --dark-soft: #242424;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}
body.menu-open .site-header {
  z-index: 1050;
  overflow: visible;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 45%);
  text-underline-offset: 0.22em;
}

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

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

h1,
h2,
h3 {
  color: var(--foreground);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.18;
}

.container {
  width: min(1140px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: #181818;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header--scrolled {
  background: rgba(24, 24, 24, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.site-header--scrolled .nav {
  min-height: 72px;
}
.site-header--scrolled .brand img {
  height: 39px;
}

.topbar {
  background: var(--dark);
  color: white;
  font-size: 0.86rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
}

.topbar a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
  transition: min-height 180ms ease, padding 180ms ease;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 45px;
  transition: height 180ms ease;
}

.menu-toggle,
.mobile-menu-header,
.menu-backdrop {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  color: #333;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: #8b8b8b;
  text-decoration: none;
}
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}
.nav-links a:hover {
  color: #ebcf9c;
}
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0.2)), linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 45%);
  content: "";
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/images/home-hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.home-hero-content {
  display: grid;
  align-content: center;
  gap: 20px;
  max-width: 1140px;
  padding: 96px 0;
}

.home-hero-content h1 {
  max-width: 860px;
  color: white;
  text-wrap: balance;
}
.home-hero-content .lead {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.68)), url("/assets/images/page-hero.png");
  background-position: center;
  background-size: cover;
  color: white;
}

.hero {
  display: grid;
  gap: 16px;
  max-width: 820px;
  padding: 92px 0;
}
.hero h1 {
  color: white;
  text-wrap: balance;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.button-secondary:hover {
  border-color: white;
  background: white;
  color: var(--dark);
}

.section {
  padding: 74px 0;
}

.section-intro {
  background: var(--surface);
}

.section-news {
  background: var(--surface-soft);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin-bottom: 0;
}

.section-heading h2,
.split h2 {
  text-wrap: balance;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.home-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: start;
}

.home-story-content {
  max-width: 780px;
}
.home-story-content h2 {
  margin-bottom: 28px;
}
.home-story-content h3 {
  margin-top: 30px;
}

.home-story-numbers {
  padding: 30px;
  border-top: 4px solid var(--accent);
  background: var(--dark);
  color: white;
}
.home-story-numbers p,
.home-story-numbers li {
  color: rgba(255, 255, 255, 0.78);
}
.home-story-numbers ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 20px;
}
.home-story-numbers a {
  color: white;
  font-weight: 800;
}

.relation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.relation-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font-weight: 800;
}

.signature {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.signature strong {
  display: inline-block;
  margin: 6px 0 2px;
  font-size: 1.1rem;
}

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

.feature {
  min-height: 240px;
  padding: 30px;
  border-top: 4px solid var(--accent);
  background: var(--dark);
  color: white;
}
.feature h3 {
  color: #fff;
}

.feature span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 800;
}
.feature p {
  color: rgba(255, 255, 255, 0.76);
}

.card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.card h2,
.card h3 {
  margin-bottom: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.read-more {
  align-self: end;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 24px;
  padding: 34px;
  border-top: 4px solid var(--accent);
  background: var(--dark);
  color: white;
}
.contact-details h2 {
  color: #fff;
}
.contact-details h2,
.contact-details h3,
.contact-details p {
  margin-bottom: 0;
}
.contact-details a {
  color: white;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.38);
}
.contact-details .meta {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}
.contact-details .contact-person h3 {
  color: #fff;
}

.contact-block,
.contact-person {
  display: grid;
  gap: 8px;
}

.contact-person {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.contact-form h2 {
  margin-bottom: 4px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--foreground);
  font-weight: 800;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  color: var(--foreground);
  font: inherit;
}
.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}
.contact-form textarea {
  min-height: 150px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 78%);
}

.contact-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.contact-map-canvas {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}
.contact-map-canvas p {
  display: grid;
  height: 100%;
  margin: 0;
  place-items: center;
  color: var(--muted);
}

.contact-map-tiles {
  position: absolute;
  inset: 0;
}

.contact-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
}

.contact-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 3px solid white;
  border-radius: 50%;
  background: white;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -100%);
}
.contact-map-marker::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 22px;
  height: 22px;
  background: white;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}
.contact-map-marker img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-map-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background: white;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.contact-map-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: white;
  color: var(--foreground);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}
.contact-map-controls button:last-child {
  border-bottom: 0;
}
.contact-map-controls button:hover {
  background: var(--surface-soft);
}

.contact-map-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #245;
  font-size: 0.72rem;
  text-decoration: none;
}

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

.club-member-logo {
  position: relative;
  display: grid;
  grid-template-areas: "logo" "name" "city";
  align-content: start;
  justify-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.club-member-logo::before {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  grid-area: logo;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  content: "";
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.club-member-logo img {
  z-index: 1;
  width: min(78%, 170px);
  max-height: 70%;
  align-self: center;
  grid-area: logo;
  justify-self: center;
  object-fit: contain;
}
.club-member-logo span {
  z-index: 1;
  display: grid;
  width: 96px;
  height: 96px;
  align-self: center;
  grid-area: logo;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-size: 2.4rem;
  font-weight: 800;
}
.club-member-logo strong {
  display: block;
  grid-area: name;
  margin-top: 4px;
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.2;
}
.club-member-logo small {
  grid-area: city;
  color: var(--muted);
  font-size: 0.78rem;
}
.club-member-logo[href]:hover {
  transform: translateY(-2px);
}
.club-member-logo[href]:hover::before {
  border-color: var(--gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
}

.content {
  max-width: 860px;
}

.content :where(p, ul, ol, blockquote) {
  color: var(--foreground);
}
.content :where(img) {
  margin: 28px 0;
  border-radius: 4px;
}

.empty {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.pagination a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  background: var(--dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 44px;
  padding: 54px 0;
}

.footer-grid h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
}
.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
}
.footer-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  width: 210px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .site-header,
  .site-header--scrolled {
    overflow: visible;
    backdrop-filter: none;
  }
  h1 {
    font-size: clamp(2.05rem, 7vw, 3.2rem);
    line-height: 1.1;
  }
  h2 {
    font-size: clamp(1.55rem, 5.5vw, 2.25rem);
    line-height: 1.12;
  }
  h3 {
    font-size: clamp(1.12rem, 4vw, 1.32rem);
  }
  .container {
    width: min(100% - 28px, 720px);
  }
  .nav {
    min-height: auto;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    padding: 16px 0;
  }
  .menu-toggle {
    display: inline-grid;
    height: 44px;
    margin-left: auto;
    padding: 8px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
  }
  .menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
  }
  .menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
  }
  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    visibility: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .menu-backdrop.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
  }
  .mobile-menu-header span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .mobile-menu-header button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
  }
  .mobile-menu-header button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 1045;
    display: flex;
    visibility: hidden;
    width: min(88vw, 380px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 0 24px;
    background: #181818;
    box-shadow: -20px 0 44px rgba(0, 0, 0, 0.32);
    color: white;
    font-size: 0.92rem;
    overflow-y: auto;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 240ms ease, visibility 240ms ease;
  }
  .nav-links.offcanvas-end {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }
  .nav-links.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .nav-links a {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ebcf9c;
  }
  .home-hero {
    min-height: 560px;
  }
  .split,
  .home-story,
  .contact-grid,
  .feature-grid,
  .grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .club-members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section {
    padding: 56px 0;
  }
  .card,
  .feature {
    min-height: auto;
  }
}
@media (max-width: 640px) {
  body {
    line-height: 1.58;
  }
  .container {
    width: min(100% - 24px, 520px);
  }
  .site-header,
  .site-header--scrolled {
    position: sticky;
    background: rgba(24, 24, 24, 0.98);
  }
  .site-header .nav,
  .site-header--scrolled .nav {
    min-height: 64px;
  }
  .site-header .brand img,
  .site-header--scrolled .brand img {
    height: 38px;
  }
  .topbar {
    display: none;
  }
  .nav {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    padding: 12px 0;
  }
  .brand img {
    height: 38px;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
  .nav-links {
    width: min(84vw, 340px);
  }
  .home-hero,
  .page-hero {
    background-position: center top;
  }
  .home-hero {
    min-height: auto;
  }
  .home-hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52)), linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 45%);
  }
  .home-hero-media {
    background-position: 58% center;
  }
  .home-hero-content,
  .hero {
    gap: 16px;
    padding: 56px 0;
  }
  .home-hero-content {
    min-height: 520px;
  }
  .lead {
    font-size: 1rem;
  }
  .actions {
    width: 100%;
    margin-top: 6px;
  }
  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    text-align: center;
  }
  .section {
    padding: 44px 0;
  }
  .split {
    gap: 18px;
  }
  .feature-grid,
  .grid {
    gap: 16px;
  }
  .club-members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .feature,
  .card,
  .home-story-numbers,
  .contact-details,
  .contact-form {
    padding: 22px;
  }
  .contact-map,
  .contact-map-canvas {
    min-height: 320px;
    height: 320px;
  }
  .contact-map-marker {
    width: 76px;
    height: 76px;
    padding: 12px;
  }
  .club-member-logo {
    gap: 7px;
  }
  .club-member-logo img {
    width: 80%;
    max-height: 72%;
  }
  .club-member-logo span {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }
  .club-member-logo strong {
    font-size: 0.82rem;
  }
  .club-member-logo small {
    font-size: 0.72rem;
  }
  .feature span {
    margin-bottom: 22px;
  }
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .footer-grid {
    gap: 24px;
    padding: 42px 0;
  }
  .footer-logo {
    width: 180px;
  }
}
@media (max-width: 380px) {
  h1 {
    font-size: 1.95rem;
  }
  .brand img {
    height: 34px;
  }
}
