:root {
  color-scheme: light;
  --paper: #fcfcfd;
  --panel: #f0f2f4;
  --ink: #212429;
  --text: #40454f;
  --muted: #555d68;
  --charcoal: #262a30;
  --wine: #722839;
  --wine-dark: #522030;
  --line: #d7dbe0;
  --heading: "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 var(--sans);
}

body:has(dialog[open]) { overflow: hidden; }

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

a { color: inherit; }
figure, h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

::selection { color: white; background: var(--wine); }

.wrap {
  width: min(100% - 7rem, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  clip-path: inset(50%);
  background: var(--paper);
  padding: .6rem .9rem;
  color: var(--wine);
}

.skip-link:focus { clip-path: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.05rem;
  height: 2.8rem;
  background: var(--wine);
  color: white;
  font: 700 .92rem/1 var(--heading);
  letter-spacing: .015em;
}

.brand-name {
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.25;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 2.85rem);
  font-size: .9rem;
  font-weight: 600;
}

nav a { text-decoration: none; }
nav a:not(.button):hover { text-decoration: underline; text-underline-offset: .25em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.8rem;
  padding: .58rem 1.12rem;
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-outline { border-color: var(--wine); color: var(--wine); }
.button-outline:hover { background: var(--wine); color: white; }
.button-primary { background: var(--wine); color: white; }
.button-primary:hover { background: var(--wine-dark); }
.button-primary:focus-visible, .button-outline:focus-visible { outline-color: var(--wine); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  column-gap: clamp(1.55rem, 3.6vw, 3.75rem);
  padding-block: clamp(2.75rem, 5.3vw, 5rem) clamp(3.75rem, 6.3vw, 6rem);
}

.hero-copy { padding-bottom: 1.65rem; }

.eyebrow {
  margin-bottom: 1.05rem;
  color: var(--wine);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-affiliation {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.35rem;
  font-size: .78rem;
  letter-spacing: .095em;
}

.hero-affiliation::before {
  content: "";
  width: 1.6rem;
  flex-shrink: 0;
  border-top: 1px solid currentColor;
}

h1, h2 {
  font-family: var(--heading);
  font-weight: 700;
  text-wrap: pretty;
}

h1 {
  font-size: clamp(2.25rem, 4.45vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

h1 span { display: block; }

h2 {
  font-size: clamp(2.15rem, 4.05vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.hero-lead {
  max-width: 27rem;
  margin-block: 1.65rem 1.8rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.4vw, 1.23rem);
  line-height: 1.56;
  text-wrap: pretty;
}

.hero-figure img, .contact-figure img { width: 100%; height: auto; }

figcaption {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.45;
  margin-top: .65rem;
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: .4rem 1.25rem;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: 1.5rem clamp(1.55rem, 3.6vw, 3.75rem);
}

.about {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5.75rem);
}

.section-copy {
  align-self: end;
  max-width: 39rem;
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
}

.section-copy > * + * { margin-top: .95rem; }

.section-copy .lead {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.48;
}

.meetings {
  padding-block: clamp(3.5rem, 6vw, 5.75rem);
  background: var(--panel);
}

.meetings-intro { margin-bottom: 2rem; }

.text-link {
  width: fit-content;
  color: var(--wine);
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: #a96673;
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
}

.text-link:hover { text-decoration-thickness: 2px; }

.section-copy > .text-link { display: inline-block; font-size: .95rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.8rem, 1.65vw, 1.5rem);
}

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

.photo-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background-color: var(--line);
}

.gallery-wide .photo-link { aspect-ratio: 16 / 10; }

.photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease-in-out;
}

.photo-link:hover img { transform: scale(1.025); }
.photo-talk img { object-position: 58% 53%; }
.photo-table img { object-position: 50% 43%; }
.photo-bowling img { object-position: 50% 38%; }
.photo-social img { object-position: center top; }

.join {
  background: var(--charcoal);
  color: var(--paper);
  padding-block: clamp(3.5rem, 6vw, 5.75rem);
}

.join .eyebrow { color: #e5c5cd; }
.join .section-copy, .join .lead { color: inherit; }
.join h3 { font-weight: 600; }

.join ul {
  margin-bottom: 0;
  padding-left: 1.2em;
}

.join li + li { margin-top: .45rem; }

.button-light {
  margin-top: 1.7rem;
  background: var(--paper);
  color: var(--wine-dark);
}

.button-light:hover { background: #eee2e6; }
.button-light:focus-visible { outline-color: white; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: 2rem clamp(1.55rem, 3.6vw, 3.75rem);
  padding-block: clamp(3.5rem, 6vw, 5.75rem);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 28rem;
  color: var(--text);
  margin-block: 1.15rem 1.55rem;
  font-size: 1.06rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-status, .form-field-message, .contact-form button { grid-column: 1 / -1; }

.form-status {
  padding: .65rem .85rem;
  border-left: 3px solid #34604c;
  background: #eef4f1;
  color: #234f3b;
  font-size: .93rem;
  overflow-wrap: anywhere;
}

.form-status-error {
  border-color: var(--wine);
  background: #f6e9ec;
  color: var(--wine-dark);
}

.form-field label {
  display: block;
  margin-bottom: .3rem;
  font-size: .92rem;
  font-weight: 650;
}

.form-optional { color: var(--muted); font-weight: 400; }

.form-field :is(input, textarea) {
  display: block;
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #828b97;
  border-radius: 0;
  padding: .55rem .65rem;
  background: white;
  color: var(--ink);
  font: inherit;
}

.form-field textarea { resize: vertical; }
.form-field :is(input, textarea):focus-visible { outline-color: var(--wine); outline-offset: 2px; }
.form-field [aria-invalid="true"] { border-color: var(--wine); }
.form-field [id$="-blad"] { margin-top: .35rem; color: var(--wine-dark); font-size: .88rem; }
.form-field [id$="-blad"]:empty { display: none; }
.contact-form button { font-family: inherit; cursor: pointer; }

.contact address {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .45rem;
  margin-top: 1.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.contact address > p { color: var(--text); margin-top: .5rem; }
.contact-email { font-weight: 650; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  padding-block: 1.35rem;
  color: var(--muted);
  font-size: .87rem;
}

.footer-inner p { color: var(--ink); font-weight: 650; }
.footer-inner p span { color: var(--muted); font-weight: 400; }
.footer-inner a { text-underline-offset: .2em; }

.lightbox {
  max-width: min(94vw, 67rem);
  max-height: 94vh;
  padding: .8rem 1rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.lightbox::backdrop { background: rgb(25 28 32 / .86); }

.lightbox-head, .lightbox-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.lightbox-head {
  justify-content: space-between;
  margin-bottom: .65rem;
}

.lightbox-actions { justify-content: center; margin-top: .65rem; }

.lightbox button {
  min-height: 2.75rem;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font: 600 .9rem var(--sans);
  padding: .4rem .65rem;
  cursor: pointer;
}

.lightbox button:hover { background: var(--wine); color: white; }
.lightbox button:focus-visible { outline-color: var(--wine); }
.lightbox-caption { font-size: .9rem; font-weight: 650; }

.lightbox-image {
  width: min(86vw, 56rem);
  height: min(58dvh, 41rem);
  object-fit: contain;
  background: var(--panel);
}

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 4.5rem); }
  .hero-affiliation { max-width: 24rem; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 3rem); }
  .hero, .split, .contact { grid-template-columns: 1fr; }
  .hero { row-gap: 2rem; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(1.95rem, 9.4vw, 4.3rem); }
  .hero-affiliation { max-width: none; }
  .desktop-break { display: none; }
  .contact-form, .contact-figure { width: min(100%, 39rem); }
  .hero-figure { width: min(100%, 42rem); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure, .gallery .gallery-wide { grid-column: auto; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .gallery .photo-link { aspect-ratio: 5 / 4; }
  .gallery figure:first-child .photo-link { aspect-ratio: 16 / 9; }
  .contact-figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 680px) {
  .nav-club-name { display: none; }
}

@media (max-width: 580px) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner {
    align-items: start;
    flex-direction: column;
    gap: 0;
    padding-top: .75rem;
  }
  .brand-mark { width: 2.6rem; height: 2.45rem; }
  .brand-name { font-size: .82rem; }
  nav {
    width: 100%;
    min-height: 3.65rem;
    justify-content: space-between;
    gap: .65rem;
    font-size: .875rem;
  }
  nav a:not(.button) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  nav .button { min-height: 2.4rem; padding-inline: .65rem; font-size: .875rem; }
  .hero { padding-top: 2.4rem; }
  .hero-affiliation { align-items: start; font-size: .74rem; }
  .hero-affiliation::before { margin-top: .58em; width: 1.1rem; }
  .hero-lead { margin-block: 1.25rem 1.4rem; }
  h2 { font-size: clamp(2.05rem, 8.3vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
