/* Clubhouse Rivals marketing site: "modern clubhouse / yardage book".
   Scorecard paper, fairway green, clubhouse navy, one brass accent taken
   from the game's own gold. Fraunces for headings, Barlow for the rest,
   Barlow Condensed for badges and numbers. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f4f1e8;
  --paper-2: #eae5d6;
  --line: rgba(30, 42, 36, 0.14);
  --line-strong: rgba(30, 42, 36, 0.32);
  --fairway: #1f4d36;
  --fairway-2: #183d2b;
  --navy: #1b2a3a;
  --ink-soft: #4a5560;
  --brass: #b8862a;
  --brass-ink: #8a6316;
  --cream: #f4f1e8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;

  --pad: clamp(18px, 4vw, 40px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font: 600 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass-ink); }
figure { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--paper); padding: 8px 12px; border-radius: var(--r); z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display, .display-2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; font-optical-sizing: auto; }
.display {
  margin: 0; font-size: clamp(52px, 8.2vw, 112px); line-height: 0.92;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.display em { display: block; font-style: normal; color: var(--brass); }
.display-2 { margin: 0 0 16px; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.02; }
h3 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.12; }

.kicker, .badge, .cell-no, .bulletin-tag, .cta-note, .scorecard dt, .shot-cap, .hero-frame figcaption, .strip-top {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.16em;
}
.kicker { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }

/* Hole-marker badge: "01  THE SWING" */
.badge { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; color: var(--brass-ink); }
.hole {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 13px; letter-spacing: 0.04em;
}
.hole-to { font-size: 12px; letter-spacing: 0.1em; opacity: 0.8; margin: 0 -4px; }

/* ---------- Top strip and header ---------- */
.strip-top {
  background: var(--navy); color: #e9d9b4; text-align: center;
  font-size: 13px; padding: 7px var(--pad);
}
.strip-top span { color: var(--brass); margin: 0 6px; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--pad);
  background: rgba(244, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--navy); }
.mark { width: 32px; height: 32px; }
.wordmark { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.18em; font-size: 18px; white-space: nowrap; }
.wordmark b { color: var(--brass); font-weight: 600; }
.wordmark-light { color: var(--cream); font-size: 16px; }
.links { display: flex; gap: 26px; }
.links a { color: var(--navy); text-decoration: none; font-size: 15px; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--brass); transition: right .25s var(--ease); }
.links a:hover::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: var(--r);
  font: 700 17px/1 var(--sans); text-decoration: none; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn-brass { background: var(--brass); color: #fff; border-color: #a57722; box-shadow: 0 1px 0 rgba(27,42,58,.18); }
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px rgba(27,42,58,.18); background: #c08f30; }
.btn-line { color: var(--navy); border-color: var(--line-strong); background: transparent; }
.btn-line:hover { transform: translateY(-2px); border-color: var(--navy); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn:active { transform: translateY(0); }
.btn.is-soon { background: transparent; color: var(--brass-ink); border: 1px dashed var(--brass); box-shadow: none; cursor: default; }
.btn.is-soon:hover { transform: none; background: transparent; }
.text-link { color: var(--navy); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s; }
.text-link span { display: inline-block; transition: transform .2s var(--ease); }
.text-link:hover { border-color: var(--brass); }
.text-link:hover span { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px);
}
.pitch { margin: 26px 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: var(--fairway); }
.lede { margin: 0 0 30px; color: var(--ink-soft); max-width: 30em; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }

.hero-frame { position: relative; }
.hero-frame picture {
  display: block; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 1px 0 var(--line), 0 24px 40px -28px rgba(27, 42, 58, .45);
}
.hero-frame img { border-radius: 1px; }
.hero-frame figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-soft); text-align: right; }

/* Scorecard strip */
.scorecard {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 clamp(56px, 8vw, 96px);
  border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: #fbf9f3;
}
.scorecard div { padding: 14px 18px; border-left: 1px solid var(--line); }
.scorecard div:first-child { border-left: 0; }
.scorecard dt { font-size: 12px; color: var(--ink-soft); }
.scorecard dd { margin: 2px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--fairway); line-height: 1.2; }
.scorecard small { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- 01 The swing ---------- */
.swing {
  background: var(--fairway); color: var(--cream);
  padding: clamp(56px, 8vw, 104px) 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 64px, transparent 64px 128px);
}
.swing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.swing .badge { color: #d9b46a; }
.swing .display-2 { color: #fff; }
.swing p { color: rgba(244, 241, 232, .86); }
.swing .ticks li { color: rgba(244, 241, 232, .74); border-color: rgba(244, 241, 232, .14); }
.swing .ticks li::before { background: var(--brass); }
.framed-dark picture { display: block; padding: 8px; border: 1px solid rgba(244,241,232,.22); border-radius: 3px; background: rgba(0,0,0,.12); }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

/* ---------- 02 The cart ---------- */
.cart { position: relative; padding-bottom: clamp(56px, 8vw, 100px); }
.cart-picture { max-height: 640px; overflow: hidden; border-bottom: 1px solid var(--line); }
.cart-picture img { width: 100%; height: min(56vw, 640px); object-fit: cover; object-position: 50% 58%; }
.cart-card-wrap { position: relative; margin-top: -150px; }
.cart-card {
  max-width: 470px; padding: 30px 32px 26px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: 0 20px 40px -30px rgba(27,42,58,.5);
}
.cart-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- 03-06 The round (bento) ---------- */
.round { padding-bottom: clamp(56px, 8vw, 96px); }
.section-head { margin-bottom: 26px; }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden;
}
.cell { background: var(--paper); display: flex; flex-direction: column; transition: background .2s var(--ease); }
.cell:hover { background: #f8f6ef; }
.cell picture { display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.cell img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.cell:hover img { transform: scale(1.025); }
.cell-copy { padding: 22px 24px 26px; position: relative; }
.cell-copy > p:not(.cell-no) { margin: 0; color: var(--ink-soft); }
.cell-no { position: absolute; top: 20px; right: 22px; margin: 0; font-size: 13px; color: var(--brass-ink); }
.cell h3 { padding-right: 40px; }

.cell-friends { grid-column: span 4; grid-row: span 2; }
.cell-shop { grid-column: span 2; }
.cell-stats { grid-column: span 2; }
.cell-replay { grid-column: span 6; flex-direction: row; }
.cell-replay picture { flex: 0 0 50%; border-bottom: 0; border-right: 1px solid var(--line); }
.cell-replay .cell-copy { align-self: center; }
.cell-shop .ticks li, .cell-stats .ticks li { font-size: 15px; }

/* Bulletin */
.bulletin {
  position: relative; margin-top: 28px; max-width: 640px;
  padding: 24px 26px 20px; background: #fbf9f3;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(27,42,58,.06) 27px 28px);
}
.bulletin::before { /* a pin */
  content: ""; position: absolute; top: -7px; left: 26px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 2px 0 rgba(27,42,58,.25);
}
.bulletin-tag { margin: 0 0 4px; font-size: 12px; color: var(--brass-ink); }
.bulletin h3 { font-size: 24px; margin-bottom: 4px; }
.bulletin p { margin: 0 0 8px; color: var(--ink-soft); font-size: 15px; }
.bulletin ul { margin: 0; padding-left: 18px; font-size: 15px; }
.bulletin li { margin: 6px 0; }
.bulletin b { color: var(--fairway); }

/* ---------- 07 Screens ---------- */
.screens { padding-bottom: clamp(56px, 8vw, 96px); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot {
  all: unset; box-sizing: border-box; cursor: zoom-in; display: block;
  background: #fff; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 2px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.shot:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 18px 30px -24px rgba(27,42,58,.5); }
.shot:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-cap { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.shot-wide { grid-column: 1 / -1; padding: 10px 10px 12px; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: 100%; height: 100%; display: grid; place-items: center;
  opacity: 0; transition: opacity .22s var(--ease);
}
.lightbox:not([open]) { display: none; }
.lightbox.is-shown { opacity: 1; }
.lightbox::backdrop { background: rgba(20, 28, 24, .82); }
.lightbox figure {
  max-width: min(1280px, 92vw); background: #fff; padding: 10px 10px 12px; border-radius: 2px;
  transform: scale(.98); transition: transform .22s var(--ease);
}
.lightbox.is-shown figure { transform: scale(1); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 8px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink-soft); }
.lb-btn {
  position: fixed; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(244,241,232,.4); background: rgba(20,28,24,.5); color: var(--cream);
  font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(20,28,24,.8); border-color: var(--cream); }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-close { right: 18px; top: 18px; }

/* ---------- 08 Get it ---------- */
.get { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -26px rgba(27,42,58,.5); }
.card-main { border-top: 3px solid var(--fairway); }
.card p { margin: 0 0 20px; color: var(--ink-soft); }
.card .btn { margin-top: auto; width: 100%; }
.card .note { margin: 10px 0 0; font-size: 14px; }

/* ---------- Footer ---------- */
.foot { background: var(--fairway-2); color: rgba(244,241,232,.75); padding: 34px 0 max(34px, env(safe-area-inset-bottom)); font-size: 14px; }
.foot p { margin: 6px 0 0; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.foot a { color: #e2c27e; }

/* ---------- Scroll reveal (site.js adds .is-in; without JS everything shows) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 959px) {
  .hero, .swing-grid { grid-template-columns: 1fr; }
  .hero-frame { order: -1; }
  .scorecard { grid-template-columns: repeat(2, 1fr); }
  .scorecard div:nth-child(3) { border-left: 0; }
  .scorecard div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-friends, .cell-replay { grid-column: span 2; grid-row: auto; }
  .cell-shop, .cell-stats { grid-column: span 1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cart-card-wrap { margin-top: -80px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links { display: none; }
  .wordmark { font-size: 15px; letter-spacing: 0.13em; }
  .mark { width: 28px; height: 28px; }
  .top { gap: 12px; }
  .hero { padding-top: 22px; }
  .hero-frame picture { padding: 6px; }
  .cta .btn { width: 100%; }
  .cta { gap: 16px; }
  .bento { grid-template-columns: 1fr; }
  .cell-friends, .cell-replay, .cell-shop, .cell-stats { grid-column: auto; }
  .cell-replay { flex-direction: column; }
  .cell-replay picture { border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery { gap: 10px; }
  .shot { padding: 5px 5px 7px; }
  .shot-wide { padding: 6px 6px 8px; }
  .cart-picture img { height: 62vw; }
  .cart-card-wrap { margin-top: -36px; }
  .cart-card { padding: 22px 20px 20px; }
  .cards { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Pages of words (privacy) and small helpers ---------- */
.muted { color: var(--ink-soft); }
.doc { max-width: 760px; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.doc-title { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; font-size: clamp(44px, 6vw, 68px); line-height: 1; }
.doc h2 { margin: 38px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; color: var(--fairway); }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.65; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--navy); }
.doc [data-placeholder="contact"] { color: var(--brass-ink); }

/* Very narrow phones (about 360 wide and under) */
.btn { white-space: nowrap; }
@media (max-width: 420px) {
  .top .btn-small { padding: 0 12px; font-size: 14px; }
  .wordmark { font-size: 14px; letter-spacing: 0.1em; }
  .scorecard dd { font-size: 21px; }
  .scorecard div { padding: 12px 14px; }
}
