:root {
  --ink: #1a1916;
  --ink-soft: #3f463f;
  --paper: #f3f1eb;
  --card: #fffcf6;
  --line: #d5d0c4;
  --fairway: #17382a;
  --fairway-mid: #24543d;
  --tee-blue: #1a4e86;
  --tee-red: #8d2c2c;
  --focus: #1a4e86;
  --header: 4.5rem;
  --measure: 68ch;
  color-scheme: light;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--tee-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--fairway); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
::selection { background: var(--tee-blue); color: #fff; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.concept-bar {
  background: var(--fairway);
  color: #f3f1eb;
  font-size: 0.92rem;
  padding: 0.55rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.concept-bar a { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 241, 235, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand img { width: 4.6rem; height: 2.4rem; object-fit: contain; }
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.15rem;
}
.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0;
}
.nav a:not(.btn):hover { color: var(--fairway); }
.nav a[aria-current="page"]:not(.btn),
html:has(#play:target) .nav a[href="#play"]:not(.btn),
html:has(#course:target) .nav a[href="#course"]:not(.btn),
html:has(#membership:target) .nav a[href="#membership"]:not(.btn),
html:has(#club:target) .nav a[href="#club"]:not(.btn),
html:has(#history:target) .nav a[href="#club"]:not(.btn),
html:has(#fixtures:target) .nav a[href="#club"]:not(.btn),
html:has(#juniors:target) .nav a[href="#club"]:not(.btn),
html:has(#sponsors:target) .nav a[href="#sponsors"]:not(.btn),
html:has(#contact:target) .nav a[href="#contact"]:not(.btn),
html:has([id^="hole-"]:target) .nav a[href="#course"]:not(.btn) {
  color: var(--fairway);
  box-shadow: inset 0 -2px 0 var(--fairway);
}
.nav a.btn,
.nav a.btn:hover,
.nav a.btn:focus-visible {
  color: #f4f1e8;
  background: var(--fairway);
  border-color: var(--fairway);
  text-decoration: none;
  margin-left: 0.45rem;
  min-height: 2.45rem;
  padding: 0.4rem 0.95rem;
}
.nav a.btn:hover { background: var(--fairway-mid); color: #fff; }
.view { display: none; }
.view:target { display: block; }
html:not(:has(.view:target)) #home { display: block; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 0.95rem;
  background: var(--fairway);
  color: #f6f3ea;
  text-decoration: none;
  border: 1px solid var(--fairway);
  font-weight: 600;
}
.btn:hover { background: var(--fairway-mid); color: #fff; }
.btn.light {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.light:hover { background: var(--ink); color: var(--paper); }
.menu-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  min-height: 2.6rem;
  padding: 0 0.8rem;
  font: inherit;
  color: var(--ink);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: calc(100vh - 8rem);
  background: var(--fairway);
  color: #f4f1e8;
  overflow: hidden;
}
.hero-curve {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc(54% - 2.2rem);
  width: 7.5rem;
  height: 100%;
  pointer-events: none;
}
.hero-wave { display: none; }
.hero-copy {
  padding: 2.5rem 1.5rem 2rem 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero-mark {
  width: min(32rem, 78%);
  height: auto;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  left: calc((1.5rem - 8vw) / 2);
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 10ch;
}
.hero p { max-width: 38ch; margin: 0; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero .btn { background: #f4f1e8; color: var(--fairway); border-color: #f4f1e8; }
.hero .btn:hover { background: #fff; color: var(--fairway); }
.hero .btn.ghost { background: transparent; color: #f4f1e8; border-color: #f4f1e8; }
.hero .btn.ghost:hover { background: #f4f1e8; color: var(--fairway); }
.hero-photo {
  position: relative;
  z-index: 1;
  min-height: 28rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--fairway);
}
.gallery-stage {
  position: relative;
  flex: 1;
  min-height: 18rem;
}
.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.7s ease;
}
.gallery-stage img.is-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .gallery-stage img { transition: none; }
}
.gallery-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}
.gallery-empty[hidden] { display: none; }
.gallery-empty small {
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  max-width: 16rem;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: rgba(23, 56, 42, 0.82);
  color: #f4f1e8;
  font: inherit;
  cursor: pointer;
}
.gallery-arrow.prev { left: 2.6rem; }
.gallery-arrow.next { right: 0.5rem; }
.gallery-holes {
  display: none;
}
.gallery-holes button {
  min-height: 2.4rem;
  border: 1px solid rgba(244, 241, 232, 0.35);
  background: transparent;
  color: #f4f1e8;
  font: inherit;
  cursor: pointer;
}
.gallery-holes button[aria-selected="true"] {
  background: #f4f1e8;
  color: var(--fairway);
  border-color: #f4f1e8;
}
.gallery-open {
  display: block;
  text-align: center;
  color: #f4f1e8;
  padding: 0.45rem 0.6rem 0.7rem;
}
.hero + .wrap { padding-top: 2.75rem; }
.hero + .wrap .scorecard { margin-top: 0; }
.hole h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  margin: 0 0 0.2rem;
  letter-spacing: 0;
}
.hero-photo figcaption {
  position: static;
  padding: 0.55rem 0.7rem 0;
  font-size: 0.92rem;
}

.scorecard {
  margin-top: 1.5rem;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(26, 25, 22, 0.08);
}
.scorecard table { width: 100%; border-collapse: collapse; }
.scorecard th, .scorecard td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.scorecard th {
  width: 6.5rem;
  white-space: nowrap;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.scorecard td { color: var(--ink-soft); font-size: 0.95rem; }
.scorecard tr:last-child th, .scorecard tr:last-child td { border-bottom: 0; }
.note { color: var(--ink-soft); font-size: 0.95rem; }

.section { padding: 4.5rem 0 1rem; }
.section h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.lede { max-width: var(--measure); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.facts strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; font-weight: 600; }

.holes { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
.hole {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.hole b {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  line-height: 0.8;
  font-weight: 600;
}
.metres { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.photo-stack img { width: 100%; height: 16rem; object-fit: cover; }
.photo-stack img + img { margin-top: 0.6rem; }

.page-hero { padding: 3.2rem 0 0.5rem; }
.page-hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  max-width: 14ch;
}
.rule-list { max-width: var(--measure); }
.rule-list li { margin: 0.4rem 0; }

.club-list { columns: 2; max-width: 40rem; padding-left: 1.1rem; }
.club-list li { break-inside: avoid; margin: 0.25rem 0; }

.form {
  display: grid;
  gap: 0.8rem;
  max-width: 34rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
label { font-weight: 600; display: grid; gap: 0.3rem; }
input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #b7b1a4;
  padding: 0.65rem 0.7rem;
  border-radius: 0;
}
textarea { min-height: 8rem; resize: vertical; }
button.btn { font: inherit; cursor: pointer; }

.course-map {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
  display: block;
  background: var(--paper);
}
.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.logo-grid li {
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 800 / 480;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-footer {
  margin-top: 4rem;
  background: var(--fairway);
  color: #f3f1eb;
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
.site-footer p { margin: 0.2rem 0; }
.fine { margin-top: 1.5rem; font-size: 0.9rem; color: #d9e2db; }

.yardage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  margin: 1.5rem 0 2rem;
}
.yardage a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.9rem 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 6.2rem;
}
.yardage a:hover { background: var(--card); }
.yardage b {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  font-weight: 600;
}
.yardage span { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; }

.hole-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: start; }
.hole-layout img { width: 100%; max-height: 32rem; object-fit: cover; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.pager a { min-width: 9rem; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }

.flyers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}
.flyer {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.flyer img {
  width: 100%;
  height: 18rem;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}
.flyer span { display: block; padding: 0.75rem 0.8rem 0.9rem; }
.flyer strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}
.flyer em { font-style: normal; color: var(--ink-soft); font-size: 0.92rem; }
.flyer-sheet {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) 1.3fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
}
.flyer-sheet img {
  width: 100%;
  height: 32rem;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  border: 1px solid var(--line);
}
.table-scroll { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); min-width: 36rem; }
.fee-table th, .fee-table td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table th { font-size: 0.92rem; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1rem;
    gap: 0.2rem;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { width: 100%; min-height: 2.75rem; display: flex; align-items: center; }
  .nav a.btn { margin-left: 0; }
  .header-inner { flex-wrap: nowrap; gap: 0.55rem; }
  .brand { min-width: 0; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1rem;
    gap: 0.2rem;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { width: 100%; min-height: 2.75rem; display: flex; align-items: center; }
  .header-inner { flex-wrap: nowrap; gap: 0.55rem; padding: 0.6rem 1rem; }
  .brand { min-width: 0; font-size: 1.05rem; }
  .hero { min-height: 0; }
  .hero, .split, .holes, .footer-grid, .hole-layout, .flyer-sheet { grid-template-columns: 1fr; }
  .flyers { grid-template-columns: 1fr; }
  .flyer img { height: 22rem; }
  .flyer-sheet img { height: 22rem; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .yardage { grid-template-columns: repeat(2, 1fr); }
  .pager { flex-direction: column; }
  .pager a { width: 100%; min-width: 0; }
  .hero-copy { position: relative; padding: 1.5rem 1.25rem 2.4rem; justify-content: flex-start; }
  .hero-mark { left: 0; width: min(18rem, 78%); margin: 0 auto 0.5rem; }
  .hero-curve { display: none; }
  .hero-wave {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2.2rem;
    width: 100%;
    height: 2.8rem;
    z-index: 2;
    pointer-events: none;
  }
  .hero-photo { min-height: 0; margin-top: 0.4rem; }
  .gallery-arrow.prev { left: 0.5rem; }
  .gallery-stage { flex: none; height: 16rem; min-height: 0; }
  .scorecard { margin-top: 0; overflow-x: auto; }
  .club-list { columns: 1; }
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
}
