/* Edger's Golf Club: a console golf title screen. Five flat inks, no tints, no gradients.
   Red is reserved for booking. Every other color is navy, fairway, sky, gold or white. */

@font-face { font-family: "Bungee"; src: url(fonts/bungee-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(fonts/silkscreen-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #101c4a;
  --green: #1f7a34;
  --sky: #5ec8f2;
  --gold: #ffd23f;
  --red: #d92b21;
  --white: #ffffff;
  --px: 4px;                 /* one art pixel */
  --display: "Bungee", "Arial Black", sans-serif;
  --hud: "Silkscreen", ui-monospace, monospace;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
  color-scheme: dark;
  scrollbar-color: var(--gold) var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; font-synthesis: none; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 1.125rem/1.55 var(--text);
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--gold); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--gold); color: var(--navy); padding: .75rem 1rem; font-weight: 800; }
.skip:focus { top: 1rem; }

/* ---------- Pixel frames (9-slice) ---------- */
.hud, .dialog, .framed {
  border: calc(3 * var(--px)) solid transparent;
  border-image: url(img/frame.svg) 3 fill / calc(3 * var(--px)) stretch;
  image-rendering: pixelated;
}
.framed.white { border-image-source: url(img/frame-white.svg); }

/* ---------- Banner and header ---------- */
.banner {
  margin: 0;
  background: var(--gold);
  color: var(--navy);
  font: 700 1rem/1.3 var(--hud);
  text-align: center;
  padding: .55rem var(--gutter);
}
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }

/* The logo: Bungee lettering, a pixel flag for the apostrophe, and a fairway ribbon. */
.logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--display); text-transform: uppercase; text-decoration: none;
  line-height: .9; color: var(--gold);
}
.logo-word {
  --o: .035em; --ink: var(--navy);
  letter-spacing: .01em;
  text-shadow:
    var(--o) 0 0 var(--ink), calc(-1 * var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1 * var(--o)) 0 var(--ink),
    var(--o) var(--o) 0 var(--ink), calc(-1 * var(--o)) var(--o) 0 var(--ink), var(--o) calc(-1 * var(--o)) 0 var(--ink), calc(-1 * var(--o)) calc(-1 * var(--o)) 0 var(--ink),
    0 .07em 0 var(--ink), 0 .1em 0 var(--ink), 0 .13em 0 var(--ink);
}
.apos { position: relative; display: inline-block; width: .36em; color: transparent; text-shadow: none; }
.apos svg { position: absolute; left: .07em; top: -.06em; width: .33em; height: .42em; }
.logo-club {
  margin-top: .32em; padding: .2em .5em .15em;
  background: var(--green); color: var(--white);
  font-size: .36em; letter-spacing: .16em;
}
.logo.small { font-size: 1.75rem; padding-block: .35rem; min-height: 44px; }
.logo.small .logo-word { --o: .03em; text-shadow: 0 .08em 0 var(--green); }
.logo.small .apos svg { top: -.04em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 400 1rem/1 var(--hud); text-decoration: none; color: var(--white);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -.95rem; width: .5rem; height: .9rem;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-nav { margin-left: auto; }
.menu-toggle {
  display: none; margin-left: auto; min-height: 44px; padding: 0 1rem;
  background: transparent; color: var(--white); border: 3px solid var(--white);
  font: 700 1rem/1 var(--hud); cursor: pointer;
}

/* ---------- Book buttons: the only red on the site ---------- */
.book {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px;
  padding: .8em 1.2em .75em;
  border: calc(2 * var(--px)) solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23d92b21' d='M1 0h4v1h1v4h-1v1H1v-1H0V1h1z'/%3E%3C/svg%3E") 2 fill / calc(2 * var(--px)) stretch;
  color: var(--white); text-decoration: none;
  font: 400 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.book:hover, .book:focus-visible {
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffd23f' d='M1 0h4v1h1v4h-1v1H1v-1H0V1h1z'/%3E%3C/svg%3E");
  color: var(--navy);
}
.book.small { font-size: .9rem; padding: .7em 1em .65em; }
.book.big { font-size: clamp(1.1rem, 1.6vw, 1.45rem); padding: 1em 1.4em .95em; }
.book .cursor { width: .55em; height: 1em; flex: none; }
.cursor { fill: currentColor; color: inherit; }
.title-screen .book .cursor, .book:hover .cursor, .book:focus-visible .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Scroll meter: the swing meter as the page's one unbroken line ---------- */
.scroll-meter { height: calc(2 * var(--px)); background: var(--navy); border-block: var(--px) solid var(--white); display: none; }
.scroll-meter span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .scroll-meter { display: block; }
  .scroll-meter span { animation: power linear both; animation-timeline: scroll(root); }
}
@keyframes power { to { transform: scaleX(1); } }

/* ---------- Title screen ---------- */
.title-screen {
  position: relative; overflow: hidden;
  background: var(--sky) url(img/horizon.webp) center bottom / cover no-repeat;
  image-rendering: pixelated;
  min-height: clamp(34rem, calc(100svh - 7.5rem), 52rem);
  display: grid; align-items: end;
}
.title-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-height: inherit; }
.title-copy { align-self: start; padding-block: clamp(1.5rem, 4vh, 3rem) 3rem; position: relative; z-index: 2; }
.logo.big { font-size: clamp(3rem, 7.4vw, 6rem); }
.logo.big .logo-word { --o: .03em; }
.formerly {
  margin: 1.4rem 0 1.8rem; display: block; width: fit-content;
  background: var(--navy); color: var(--white);
  font: 700 clamp(.9rem, 1.2vw, 1.05rem)/1.3 var(--hud);
  padding: .5rem .75rem;
}
.start { margin: 0 0 1.25rem; }
/* Anchored to the window edge, not the column, so on wide screens the group moves into the margin and clears the title stack. */
.players { position: absolute; right: min(0px, calc(var(--gutter) - (100vw - var(--wrap)) / 2)); bottom: 0; margin: 0; width: min(56vw, 54rem); }
.players img { width: 100%; margin-bottom: -1px; }

.meter { display: flex; align-items: center; gap: .75rem; font: 400 .95rem/1 var(--hud); color: var(--navy); }
.meter-label { background: var(--navy); color: var(--white); padding: .4rem .5rem; }
.meter-track {
  position: relative; display: block; width: min(22rem, 30vw); height: calc(5 * var(--px));
  background: var(--navy); border: var(--px) solid var(--white);
  outline: var(--px) solid var(--navy);
}
.meter-fill {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: repeating-linear-gradient(90deg, var(--gold) 0 calc(3 * var(--px)), var(--navy) calc(3 * var(--px)) calc(4 * var(--px)));
  transform-origin: left; animation: swing 2.4s steps(24) infinite alternate;
}
.meter-snap { position: absolute; top: 0; bottom: 0; left: 8%; width: calc(2 * var(--px)); background: var(--white); }
@keyframes swing { from { transform: scaleX(.02); } to { transform: scaleX(1); } }

/* ---------- Welcome dialog ---------- */
.dialog-band { background: var(--green); padding-block: var(--band); }
.dialog { position: relative; max-width: 54rem; margin-inline: auto; padding: 1.75rem 2rem 2.25rem; font-size: 1.2rem; }
.dialog p:last-child { margin-bottom: 0; }
.dialog-lead { font: 600 clamp(1.3rem, 2.2vw, 1.6rem)/1.4 var(--text); }
.dialog::after {
  content: ""; position: absolute; right: 1.25rem; bottom: .9rem; width: .9rem; height: .55rem; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5'%3E%3Cpath d='M0 0h9v1H8v1H7v1H6v1H5v1H4V4H3V3H2V2H1V1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5'%3E%3Cpath d='M0 0h9v1H8v1H7v1H6v1H5v1H4V4H3V3H2V2H1V1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: blink 1s steps(1) infinite;
}

/* ---------- HUD panels and readouts ---------- */
.hud { padding: 1.5rem 1.75rem 1.75rem; }
.hud h2 { font: 400 clamp(1.35rem, 2.4vw, 1.9rem)/1.1 var(--display); color: var(--gold); text-transform: uppercase; margin-bottom: 1.25rem; }
.hud h3 { font: 400 1.2rem/1 var(--display); color: var(--sky); text-transform: uppercase; margin-bottom: .6rem; }
.readout { margin: 0 0 1rem; }
.readout > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: var(--px) dotted var(--white); }
.readout dt { font: 400 .95rem/1.2 var(--hud); white-space: nowrap; }
.readout dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.readout.tight > div { padding: .3rem 0; border-bottom-width: 2px; }
.note { font-size: 1rem; }
.hud .note { color: var(--white); }

/* ---------- Course select ---------- */
.course-select { padding-block: var(--band); }
.course-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.course-map { display: grid; place-items: center; }
.course-map img { width: min(100%, 30rem); image-rendering: pixelated; }
.rounds { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: .75rem; }
.select .book { margin-top: .5rem; }

/* ---------- Aces ---------- */
.aces-band { background: var(--sky); color: var(--navy); padding-block: var(--band); }
.shout { font: 400 clamp(1.9rem, 4.6vw, 3.6rem)/1 var(--display); text-transform: uppercase; max-width: 18ch; margin-bottom: 2.5rem; }
.aces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; }
.ace { display: grid; grid-template-columns: 1fr; align-content: start; background: var(--navy); color: var(--white); border: var(--px) solid var(--navy); outline: var(--px) solid var(--white); outline-offset: calc(-2 * var(--px)); }
.ace:first-child { grid-row: span 2; }
.ace img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ace:first-child img { aspect-ratio: 3 / 3.6; object-position: center top; }
.ace-ticket { padding: 1.25rem 1.4rem 1.4rem; }
.ace-result { margin: 0 0 .2rem; font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--display); color: var(--gold); text-transform: uppercase; }
.ace-player { margin: 0 0 .75rem; font: 800 1.35rem/1.15 var(--text); }
.ace-quote { margin: .75rem 0 0; font-style: italic; }
.more { margin: 2rem 0 0; }
.arrow-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font: 700 1rem/1.2 var(--hud); text-decoration: none; }
.arrow-link::after {
  content: ""; width: .45rem; height: .8rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arrow-link:hover { text-decoration: underline; }

/* ---------- Clubhouse: hours and where ---------- */
.clubhouse { background: var(--green); padding-block: var(--band); }
.clubhouse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hours { margin: 0 0 1rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .55rem .5rem; border-bottom: var(--px) dotted var(--white); }
.hours dt { font: 400 1rem/1.2 var(--hud); display: flex; align-items: center; gap: .6rem; }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hours .today { background: var(--gold); color: var(--navy); border-bottom-color: var(--navy); }
.today-tag { font: 700 .75rem/1 var(--hud); background: var(--navy); color: var(--gold); padding: .25rem .4rem; }
.visit { font-size: 1.15rem; }
.visit-name { font: 400 clamp(1.2rem, 2.2vw, 1.6rem)/1.15 var(--display); color: var(--gold); text-transform: uppercase; }
.visit .phone { font: 800 1.6rem/1.2 var(--text); }
.gear { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; font: 700 .95rem/1.2 var(--hud); }
.gear a { display: inline-flex; align-items: center; justify-content: center; background: var(--white); padding: .5rem .7rem; min-height: 64px; }
.gear img { height: 48px; width: auto; }

/* ---------- Page heads (inner pages) ---------- */
.page-head {
  background: var(--sky) url(img/horizon.webp) center 78% / cover no-repeat;
  image-rendering: pixelated;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(6rem, 12vw, 9rem);
}
.page-head h1 {
  font: 400 clamp(2.6rem, 7vw, 5.5rem)/.95 var(--display); text-transform: uppercase; color: var(--gold);
  --o: .03em; --ink: var(--navy);
  text-shadow:
    var(--o) 0 0 var(--ink), calc(-1 * var(--o)) 0 0 var(--ink), 0 var(--o) 0 var(--ink), 0 calc(-1 * var(--o)) 0 var(--ink),
    var(--o) var(--o) 0 var(--ink), calc(-1 * var(--o)) var(--o) 0 var(--ink), var(--o) calc(-1 * var(--o)) 0 var(--ink), calc(-1 * var(--o)) calc(-1 * var(--o)) 0 var(--ink),
    0 .07em 0 var(--ink), 0 .1em 0 var(--ink);
}
.page-head h1.long { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 11em; }
.page-head .sub { margin: 1.25rem 0 0; display: inline-block; background: var(--navy); color: var(--white); font: 700 1.05rem/1.3 var(--hud); padding: .5rem .75rem; }
.page-head .book { margin-top: 1.5rem; }

.band { padding-block: var(--band); }
.band.green { background: var(--green); }
.band.sky { background: var(--sky); color: var(--navy); }
.band.sky a { text-decoration-color: var(--navy); }
.section-title { font: 400 clamp(1.6rem, 3.6vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; margin-bottom: 1.75rem; color: var(--gold); }
.band.sky .section-title { color: var(--navy); }
.prose { max-width: 68ch; }
.billed { font: 400 clamp(1.5rem, 3.4vw, 2.6rem)/1.1 var(--display); text-transform: uppercase; margin-bottom: 1.75rem; }
.billed span { display: block; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.shots li { margin: 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: 100%; object-fit: cover; border: var(--px) solid var(--white); }
.shots figcaption { margin-top: .5rem; font-size: 1rem; }

/* ---------- Golf page ---------- */
.shots.play li:nth-child(1) { grid-column: span 12; }
.shots.play li:nth-child(n+2) { grid-column: span 4; }
.shots.play li:nth-child(1) img { aspect-ratio: 2 / 1; }
.shots.play li:nth-child(n+2) img { aspect-ratio: 4 / 3; }
.play { margin-top: var(--band); }
.shots.lessons li { grid-column: span 4; }
.shots.lessons li:nth-child(1), .shots.lessons li:nth-child(5) { grid-row: span 2; }
.shots.lessons img { aspect-ratio: 4 / 3; }
.shots.lessons li:nth-child(1) img, .shots.lessons li:nth-child(5) img { aspect-ratio: auto; height: 100%; }
.band.sky .shots img { border-color: var(--navy); }
.shots.extra { margin-top: 1.5rem; }
.shots.extra li { grid-column: 3 / span 8; }
.shots.extra img { aspect-ratio: 2 / 1; border-color: var(--navy); }
.ace-note { margin: 0 0 .6rem; font: 700 .95rem/1.2 var(--hud); color: var(--sky); }
.closer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.closer .billed { margin: 0; }
.closer p { margin: 0; }

/* ---------- About ---------- */
.family { margin: 0; }
.family img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: var(--px) solid var(--white); }
.family figcaption { margin-top: .9rem; font: 400 clamp(1.3rem, 2.6vw, 2rem)/1.1 var(--display); color: var(--gold); text-transform: uppercase; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.facts .hud:nth-child(2) { margin-top: 2.5rem; }
.facts .hud:nth-child(3) { margin-top: 5rem; }
.callout { background: var(--gold); color: var(--navy); font: 700 .95rem/1.45 var(--text); letter-spacing: .02em; padding: .7rem .85rem; }
.owners { margin: 0; max-width: 26rem; }
.players-select .profile:first-child { grid-row: span 2; }
.owners img { border: var(--px) solid var(--white); }
.players-select { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.profile h3 { font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.05 var(--display); color: var(--gold); margin-bottom: 1rem; }
.profile h3 span { display: block; margin-top: .45rem; font: 700 .95rem/1.2 var(--hud); color: var(--sky); text-transform: none; }
.profile p { max-width: 68ch; }
.review { margin: 0; }
.review blockquote { margin: 0; }
.big-review { border-left: 0; }
.stars { margin: 0 0 .5rem; font: 400 1.3rem/1 var(--display); text-transform: uppercase; }
.big-review blockquote p { font: 600 clamp(1.2rem, 2vw, 1.45rem)/1.5 var(--text); max-width: 62ch; }
.review figcaption { margin-top: .5rem; font: 700 1rem/1.2 var(--hud); }
.more-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: var(--px) dotted var(--navy); }
.more-reviews blockquote p { font-size: 1.15rem; font-style: italic; }
.partners, .connect { list-style: none; margin: 0; padding: 0; }
.partners li { padding: .7rem 0; border-bottom: var(--px) dotted var(--white); font-weight: 600; }
.partners a { display: inline-flex; min-height: 44px; align-items: center; margin-block: -.6rem; }
.connect { display: flex; flex-wrap: wrap; gap: .75rem; }
.connect a { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: 0 1.1rem; border: 3px solid var(--white); font: 700 1rem/1 var(--hud); text-decoration: none; }
.connect a:hover { border-color: var(--gold); color: var(--gold); }
.connect svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact and waiver ---------- */
.lead { font: 600 clamp(1.25rem, 2.1vw, 1.5rem)/1.45 var(--text); }
.reach { list-style: none; margin: 1.5rem 0; padding: 0; }
.reach li { border-bottom: var(--px) dotted var(--white); }
.reach a { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 0; min-height: 44px; text-decoration: none; font: 800 1.3rem/1.25 var(--text); }
.reach a span { font: 700 .9rem/1 var(--hud); color: var(--gold); }
.reach a:hover { color: var(--gold); }
.download h2 { margin-bottom: .5rem; }
.big-link { font-size: 1.25rem; color: var(--gold); }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: var(--px) dotted var(--white); }
.rules li::before { content: counter(rule); font: 400 1.6rem/1 var(--display); color: var(--gold); text-align: right; }
.warning { margin: 2.5rem 0 0; background: var(--gold); color: var(--navy); font: 700 1rem/1.5 var(--text); letter-spacing: .02em; padding: 1rem 1.2rem; max-width: 60rem; }

/* ---------- Photos ---------- */
.replays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; align-items: start; }
.replay.wide { grid-column: 1 / -1; }
.replay h2 { font: 400 clamp(1.1rem, 1.8vw, 1.45rem)/1.15 var(--display); text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.replay.wide .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery a { display: block; border: var(--px) solid var(--white); }
.band.sky .gallery a { border-color: var(--navy); }
.gallery a:hover, .gallery a:focus-visible { border-color: var(--gold); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.three { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.three img, .gallery.six img { aspect-ratio: 3 / 4; }
.gallery.six { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 1.5rem 2rem; align-items: start; }
.pair > .videos, .pair .videos { margin-top: 0; }
.pair > div > h3:first-child { margin-top: 0; }
.gallery.solo { grid-template-columns: 1fr; }
.pair .videos.tall { grid-template-columns: repeat(auto-fill, minmax(10rem, 13rem)); }
.cap { margin: .6rem 0 0; font-size: 1rem; }
.cap strong { display: block; font: 700 .95rem/1.25 var(--hud); margin-bottom: .2rem; }
.history .chapter + .chapter { margin-top: var(--band); padding-top: 2rem; border-top: var(--px) dotted var(--navy); }
.history h3 { font: 400 clamp(1.1rem, 2vw, 1.5rem)/1.15 var(--display); text-transform: uppercase; margin: 2rem 0 1rem; max-width: 40ch; }
.history .chapter > h3:first-child { margin-top: 0; }
.videos { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.videos.tall { grid-template-columns: repeat(auto-fill, minmax(10rem, 13rem)); }
.videos a { display: block; position: relative; background: var(--navy); color: var(--white); text-decoration: none; border: var(--px) solid var(--navy); }
.videos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.videos.tall img { aspect-ratio: 9 / 16; }
.videos span { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; min-height: 44px; font: 700 .9rem/1.2 var(--hud); }
.videos span::before {
  content: ""; width: .5rem; height: .9rem; flex: none; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.videos a:hover span, .videos a:focus-visible span { color: var(--gold); }

.lightbox { border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; background: transparent; color: var(--white); }
.lightbox::backdrop { background: var(--navy); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--gutter); font: 700 1rem/1 var(--hud); }
.lb-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 0 .5rem 1.5rem; min-height: 0; }
.lightbox figure { margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; border: var(--px) solid var(--white); }
.lb-btn { width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); color: var(--white); border: 3px solid var(--white); cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; }

/* ---------- 404 ---------- */
.lost { min-height: 60svh; }
.lost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.lost .arrow-link { background: var(--navy); color: var(--white); padding: .5rem .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: calc(2 * var(--px)) solid var(--gold); padding-block: 3rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.footer-name { margin: .9rem 0 0; font: 700 .95rem/1.3 var(--hud); color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid var(--white); color: var(--white); }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal { grid-column: 1 / -1; margin: 1rem 0 0; font: 400 .85rem/1.3 var(--hud); color: var(--sky); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-row { flex-wrap: wrap; gap: .75rem 1rem; }
  .js .site-nav { display: none; }
  .site-nav { order: 5; flex-basis: 100%; margin: 0; }
  .site-nav.open { display: block; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 2px dotted var(--white); }
  .site-nav a { width: 100%; padding-left: 1.4rem; min-height: 48px; }
  .site-nav a[aria-current="page"]::before { left: .3rem; }
  .book.small { order: 3; }
  .menu-toggle { order: 4; margin-left: 0; }
  .logo.small { margin-right: auto; }
}
@media (max-width: 860px) {
  .title-grid, .course-grid, .clubhouse-grid, .split { grid-template-columns: 1fr; }
  .title-screen { min-height: 0; }
  .title-grid { min-height: 0; }
  .title-copy { padding-block: 2.25rem 0; }
  .players { position: static; width: 100%; }
  .meter-track { width: min(22rem, 70vw); }
  .aces { grid-template-columns: 1fr; }
  .ace:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .course-map img { width: min(100%, 17rem); }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .banner { font-size: .9rem; }
  .logo.small { font-size: 1.35rem; }
  .book.small { font-size: .8rem; padding: .6em .8em; }
  .rounds { grid-template-columns: 1fr; }
  .ace img { aspect-ratio: 4 / 3; }
  .ace:first-child img { aspect-ratio: 3 / 3.4; }
  .hud { padding: 1.1rem 1.1rem 1.25rem; }
  .dialog { padding: 1.25rem 1.25rem 2rem; }
}

@media (max-width: 960px) {
  .facts, .players-select, .more-reviews, .rules { grid-template-columns: 1fr; }
  .facts .hud:nth-child(n) { margin-top: 0; }
  .replays { grid-template-columns: 1fr 1fr; }
  .gallery.three, .gallery.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shots.play li:nth-child(n), .shots.lessons li:nth-child(n), .shots.extra li { grid-column: span 12; grid-row: auto; }
  .shots.lessons li:nth-child(1) img, .shots.lessons li:nth-child(5) img { aspect-ratio: 3 / 4; height: auto; }
  .replays, .replay.wide .gallery, .pair { grid-template-columns: 1fr; }
  .rules li { grid-template-columns: 2.25rem 1fr; gap: .75rem; }
  .lb-stage { grid-template-columns: 1fr; }
  .lb-stage .lb-prev, .lb-stage .lb-next { position: fixed; bottom: 16px; }
  .lb-stage .lb-prev { left: 16px; }
  .lb-stage .lb-next { right: 16px; }
  .lightbox img { max-height: calc(100dvh - 170px); }
}

@media (prefers-reduced-motion: reduce) {
  .meter-fill { animation: none; transform: scaleX(.86); }
  .title-screen .book .cursor, .book:hover .cursor, .dialog::after { animation: none; }
}
