/* Colors come from App/Theme.swift so the site and the game feel like the same club. */
:root {
  --paper: #fcf8eb;
  --cream: #f5edd9;
  --ink: #17261c;
  --fairway: #123d26;
  --fairway-deep: #082114;
  --turf: #3b8045;
  --brass: #a8843f;
  --brass-light: #c9a35c;
  --brass-ink: #806020;
  --flag: #cc2b29;
  --muted: #5f6a61;
  --rule: #d9cfb6;
  --measure: 38rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

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

a { color: var(--fairway); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--flag); }
a:focus-visible { outline: 3px solid var(--brass); outline-offset: 5px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: 0.6rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark:hover { color: var(--ink); }

.masthead nav { display: flex; gap: 1.25rem; font-size: 1rem; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--ink); }

/* Small caps label, the same treatment the app uses above its headings */

.label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

/* Opening */

.opening { padding-top: 4.5rem; padding-bottom: 2.5rem; }

.opening h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.opening h1 em { font-style: italic; font-weight: 400; color: var(--fairway); }

.opening .lede {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: 1.3rem;
  color: #2c3a30;
}
.opening-detail { max-width: var(--measure); color: var(--muted); margin: 1rem 0 0; }
.opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; font-size: 1rem; }
.button { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 48px; padding: 0.65rem 1.1rem; background: var(--fairway); color: var(--paper); border-radius: 3px; text-decoration: none; }
.button:hover { background: var(--fairway-deep); color: var(--paper); }

.status {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}
.status strong { color: var(--ink); font-weight: 600; }

/* Plates are screenshots with a caption, like the photographs in a club history */

.plate { margin: 0; }
.plate img {
  width: 100%;
  border-radius: 3px;
  background: var(--fairway-deep);
  box-shadow: 0 0 0 1px rgba(8, 33, 20, 0.12);
}
.plate figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

/* Screenshots are portrait iPad captures, so they sit beside the text rather than across the page */

.opening { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
.opening .plate { max-width: 26rem; }

@media (min-width: 52rem) {
  .opening { grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: center; }
  .opening .plate { max-width: none; }
}

/* The loop, told hole by hole */

.holes { border-top: 1px solid var(--rule); }

.hole {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.hole-no {
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.95rem;
  color: var(--muted);
}
.hole-no b {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-ink);
  font-weight: 600;
}

.hole h2 {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  font-weight: 500;
}

.hole p { max-width: var(--measure); margin: 0 0 1rem; }
.hole p:last-child { margin-bottom: 0; }
.hole p.note { font-size: 0.95rem; color: var(--muted); }

.hole .plate { max-width: 24rem; }

.hole.cat-showcase { background: var(--fairway-deep); color: var(--cream); padding: 2rem; margin: 1rem 0; border: 1px solid var(--fairway); border-radius: 4px; }
.cat-showcase .label { color: var(--brass-light); }
.cat-showcase .plate { max-width: none; }
.cat-showcase .plate figcaption { color: var(--cream); }
.cat-picture { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; }
.cat-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.6); }

@media (min-width: 52rem) {
  .hole { grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: center; }
  .hole .plate { max-width: none; }
  .hole:nth-child(even) .hole-text { order: 2; }
  .hole:nth-child(even) { grid-template-columns: 5fr 7fr; }
}

/* What it costs, set like a scorecard */

.pricing { display: grid; gap: 2rem; padding-top: 4rem; padding-bottom: 4.5rem; border-bottom: 1px solid var(--rule); }
.pricing h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  font-weight: 500;
}
.pricing p { max-width: var(--measure); margin: 0; }

.card {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf6;
  border: 1.5px solid var(--fairway);
  font-size: 1.02rem;
  line-height: 1.35;
}
.card th {
  padding: 0.6rem 0.9rem;
  background: var(--fairway);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
}
.card th + th { color: var(--brass-light); }
.card td {
  width: 50%;
  padding: 0.85rem 0.9rem;
  vertical-align: top;
  border-top: 1px solid var(--rule);
}
.card td + td, .card th + th { border-left: 1px solid var(--rule); }
.card th + th { border-left-color: rgba(245, 237, 217, 0.25); }

@media (min-width: 52rem) {
  .pricing { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: center; }
}

/* Text pages: privacy and support */

.page { max-width: var(--measure); padding-top: 3.5rem; padding-bottom: 4rem; }
.page h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
}
.page .meta { margin: 0 0 2.5rem; font-size: 1rem; color: var(--muted); }
.page h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}
.page p, .page ul { margin: 0 0 1rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.4rem; }

.contact {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--cream);
  border-left: 3px solid var(--brass);
}
.contact p { margin: 0; }
.contact a { font-size: 1.25rem; font-weight: 600; }

dl.faq dt { margin-top: 1.6rem; font-weight: 600; }
dl.faq dd { margin: 0.35rem 0 0; }

/* Footer */

.foot {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 1.25rem; }

@media (max-width: 30rem) {
  body { font-size: 1.125rem; }
  .opening { padding-top: 3rem; }
  .masthead nav { gap: 1rem; }
}

/* A wide detail from the actual coastal flyover, linked to its complete frame. */
.beach-showcase { padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.beach-heading { display: grid; gap: 0.5rem 2rem; margin-bottom: 1.25rem; }
.beach-heading h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 500; margin: 0; }
.beach-heading p { margin: 0; max-width: var(--measure); }
.beach-picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.beach-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
@media (min-width: 52rem) { .beach-heading { grid-template-columns: 1fr 1fr; align-items: end; } }
