:root {
  --felt: #153f33;
  --felt-dark: #101b16;
  --club: #182720;
  --paper: #f7ead8;
  --brass: #d9b86d;
  --oxblood: #9d2228;
  --charcoal: #f7ead8;
  --muted: rgba(247, 234, 216, 0.68);
  --line: rgba(247, 234, 216, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--felt-dark);
  color: var(--charcoal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(16, 27, 22, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--oxblood);
  box-shadow: inset 0 0 0 4px var(--felt), 0 0 0 2px var(--brass);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brass);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  min-height: calc(100vh - 80px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.club-search-hero {
  background:
    linear-gradient(90deg, rgba(16, 27, 22, 0.97), rgba(16, 27, 22, 0.78)),
    var(--home-hero-image, none) center / cover;
}

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

.club-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  max-width: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  margin: 8px 0 8px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.prose,
.archive-card p {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--brass);
  color: var(--felt-dark);
  border-color: var(--brass);
}

.club-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247, 234, 216, 0.2);
}

.club-panel article {
  min-height: 120px;
  padding: 18px;
  background: rgba(24, 39, 32, 0.94);
}

.club-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
  line-height: 1.12;
}

.home-search-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(16, 27, 22, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel-header {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.search-panel-header h2 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.home-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-search-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(247, 234, 216, 0.22);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(247, 234, 216, 0.08);
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
}

.home-search-form input::placeholder {
  color: rgba(247, 234, 216, 0.56);
}

.home-search-form button {
  min-height: 48px;
  border: 1px solid var(--brass);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--brass);
  color: var(--felt-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row a {
  border: 1px solid rgba(247, 234, 216, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(247, 234, 216, 0.78);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.filter-row a:first-child {
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(217, 184, 109, 0.1);
}

.search-results-preview {
  display: grid;
}

.search-preview-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(247, 234, 216, 0.12);
  text-decoration: none;
}

.search-preview-card:last-child {
  border-bottom: 0;
}

.search-preview-card img {
  aspect-ratio: 1;
  border-radius: 6px;
}

.search-preview-card div {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.search-preview-card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.12;
}

.search-preview-card p {
  margin: 0;
  color: rgba(247, 234, 216, 0.62);
  font-size: 0.88rem;
  line-height: 1.38;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: rgba(247, 234, 216, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  list-style: none;
}

.mini-meta li {
  border: 1px solid rgba(247, 234, 216, 0.18);
  border-radius: 999px;
  padding: 4px 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-grid a {
  min-height: 260px;
  overflow: hidden;
  background: var(--felt-dark);
}

.hero-grid a:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.hero-grid img,
.photo-tile img,
.archive-card img,
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.hero-grid a:hover img,
.photo-tile:hover img,
.archive-card:hover img,
.gallery-strip a:hover img {
  transform: scale(1.03);
}

.band,
.page-shell,
.browse-rail {
  padding: clamp(36px, 6vw, 80px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.card-grid,
.location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rules-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-top: 24px;
}

.rules-link {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 39, 32, 0.8);
  text-decoration: none;
}

.rules-link:hover {
  border-color: rgba(217, 184, 109, 0.55);
}

.rules-link span {
  color: var(--paper);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.15;
}

.rules-link small {
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
}

.archive-card {
  background: var(--club);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.archive-card a {
  display: block;
  text-decoration: none;
}

.archive-card img {
  aspect-ratio: 4 / 3;
}

.archive-card h3,
.archive-card p,
.archive-card .card-kicker,
.meta-row {
  padding-inline: 16px;
}

.card-kicker {
  display: block;
  margin-top: 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row span {
  padding: 5px 8px;
  background: rgba(247, 234, 216, 0.08);
  border-radius: 999px;
}

.browse-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--felt);
}

.browse-rail a {
  min-height: 180px;
  padding: 26px;
  background: var(--felt-dark);
  color: var(--paper);
  text-decoration: none;
}

.browse-rail span {
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.browse-rail strong {
  display: block;
  margin-top: 10px;
  max-width: 320px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.location-hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  background: var(--felt-dark);
  color: var(--paper);
}

.location-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.location-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 39, 30, 0.05), rgba(9, 39, 30, 0.78));
}

.location-title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: clamp(34px, 6vw, 80px) clamp(18px, 4vw, 56px);
}

.location-title p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 250, 240, 0.84);
  font-size: 1.1rem;
}

.location-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(36px, 6vw, 80px) clamp(18px, 4vw, 56px);
}

.fact-panel {
  align-self: start;
  background: var(--club);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.fact-panel dl {
  margin: 0;
}

.fact-panel div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-panel dt {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-panel dd {
  margin: 4px 0 0;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.map-links a {
  color: var(--brass);
  font-weight: 800;
}

.prose {
  max-width: 760px;
  font-size: 1.08rem;
}

.prose h1 {
  margin-bottom: 18px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 56px) clamp(36px, 6vw, 80px);
}

.gallery-strip a {
  min-height: 280px;
  overflow: hidden;
  background: var(--felt-dark);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.photo-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  background: var(--felt-dark);
}

.photo-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: rgba(9, 39, 30, 0.78);
  border-radius: 6px;
  font-weight: 800;
}

.map-page {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}

.map-heading {
  padding: clamp(28px, 5vw, 56px);
  background: var(--felt);
  color: var(--paper);
}

.map-heading p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.78);
}

.map-canvas {
  min-height: 620px;
}

.map-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
  color: #202321;
  text-decoration: none;
}

.map-popup img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.map-popup span,
.map-popup em,
.map-popup p {
  margin: 0;
  color: #6b6a61;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.term-card {
  display: grid;
  gap: 6px;
  min-height: 130px;
  padding: 18px;
  align-content: end;
  background: var(--club);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.term-card span {
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.term-card strong {
  font-size: 1.35rem;
}

.search-shell {
  min-height: 70vh;
}

.pagefind-ui,
.pagefind-ui__form,
.pagefind-ui__drawer,
.pagefind-ui__results {
  color: var(--paper);
}

.pagefind-ui__search-input {
  border: 1px solid rgba(247, 234, 216, 0.22) !important;
  border-radius: 8px !important;
  background: rgba(247, 234, 216, 0.08) !important;
  color: var(--paper) !important;
}

.pagefind-ui__search-input::placeholder {
  color: rgba(247, 234, 216, 0.56) !important;
}

.pagefind-ui__result {
  border-color: var(--line) !important;
}

.pagefind-ui__result-title,
.pagefind-ui__result-link {
  color: var(--paper) !important;
}

.pagefind-ui__result-excerpt,
.pagefind-ui__message {
  color: var(--muted) !important;
}

.pagefind-ui mark {
  background: rgba(217, 184, 109, 0.35);
  color: var(--paper);
}

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

.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header,
  .home-hero,
  .location-layout,
  .map-page,
  .browse-rail {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid a {
    min-height: 180px;
  }

  .map-canvas {
    min-height: 70vh;
  }
}

@media (max-width: 560px) {
  .hero-grid,
  .club-panel,
  .card-grid,
  .location-list,
  .gallery-strip,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .home-search-form {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1;
  }
}
