/* ============ Bandon 2026 — The Boys ============ */

:root {
  --ink: #0d1b16;
  --pine: #122620;
  --moss: #18332a;
  --cream: #f4eddc;
  --cream-dim: #cfc6ac;
  --cream-faint: #9d967f;
  --gold: #c9a45c;
  --gold-bright: #e3c37f;
  --rust: #c05c35;
  --line: rgba(244, 237, 220, 0.14);
  --line-strong: rgba(244, 237, 220, 0.28);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", -apple-system, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(13, 27, 22, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(.75rem, 2vw, 1.75rem); flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}
.hero-art { position: absolute; inset: 0; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(13,27,22,.32) 0%, rgba(13,27,22,.18) 55%, rgba(13,27,22,.66) 100%),
    linear-gradient(to bottom, rgba(13,27,22,.5), rgba(13,27,22,0) 32%, rgba(13,27,22,0) 62%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 7rem 1.5rem 4rem; max-width: 60rem; }
.hero-kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.75rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(3rem, 9.5vw, 7.25rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.hero-title span, .hero-title em { display: block; }
.hero-title em { font-style: italic; color: var(--gold-bright); font-weight: 420; }
.hero-sub {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.hero-count { margin: 2.5rem auto 0; display: block; }
.count-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: .8rem;
}
.count-grid { display: flex; gap: .6rem; justify-content: center; }
.count-cell {
  min-width: 4.6rem;
  padding: .8rem .6rem .65rem;
  border: 1px solid var(--line-strong);
  background: rgba(13, 27, 22, 0.35);
  backdrop-filter: blur(4px);
}
.count-cell span {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.count-cell small {
  display: block;
  margin-top: .4rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.hero-cta {
  display: inline-block;
  margin-top: 2.75rem;
  padding: .9rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  transition: background .3s, color .3s;
}
.hero-cta:hover { background: var(--gold); color: var(--ink); }

/* ---------- Stat band ---------- */
.statband {
  display: flex;
  gap: 2.5rem;
  overflow: hidden;
  white-space: nowrap;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold);
  background: var(--pine);
}
.statband span { flex-shrink: 0; }
.statband i { flex-shrink: 0; font-style: normal; font-size: .6rem; align-self: center; color: var(--cream-faint); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem); max-width: 78rem; margin: 0 auto; scroll-margin-top: 4.5rem; }
.section-alt { position: relative; max-width: none; background: var(--pine); }
.section-alt > * { max-width: 78rem; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
.section-sub { margin-top: 1rem; color: var(--cream-dim); }

/* ---------- Flights ---------- */
.flights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); gap: 1.5rem; }
.flight {
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(244,237,220,.05), rgba(244,237,220,.01));
  padding: 1.75rem 1.75rem 1.4rem;
  position: relative;
}
.flight::before, .flight::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  top: 50%;
}
.flight::before { left: -10px; transform: translateY(-50%); }
.flight::after { right: -10px; transform: translateY(-50%); }
.flight-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.flight-route { display: flex; align-items: center; gap: 1rem; }
.flight-node { flex: 1; text-align: center; }
.flight-code { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.flight-city { display: block; font-size: .78rem; color: var(--cream-faint); margin-top: .3rem; }
.flight-time { display: block; font-size: 1.05rem; font-weight: 600; margin-top: .55rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.flight-date { display: block; font-size: .74rem; color: var(--cream-faint); margin-top: .15rem; }
.flight-path { flex: 1.2; position: relative; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.flight-path .plane { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); background: transparent; color: var(--cream-dim); font-size: 1.1rem; }
.flight-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--cream-faint); font-style: italic; }
.itinerary-note { text-align: center; margin-top: 2.5rem; color: var(--cream-dim); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* ---------- Tee sheet ---------- */
.sched { display: grid; gap: .75rem; max-width: 60rem !important; }
.sched-day {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  border: 1px solid var(--line);
  background: rgba(13,27,22,.5);
  transition: border-color .3s;
}
.sched-day:hover { border-color: var(--line-strong); }
.sched-day.is-today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.sched-date {
  padding: 1.25rem 1.25rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: .1rem;
}
.sched-dow { font-family: var(--serif); font-size: 1.25rem; }
.sched-md { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-faint); }
.today-chip {
  margin-top: .45rem; align-self: flex-start;
  font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: .2rem .5rem;
}
.sched-rounds { display: flex; flex-direction: column; justify-content: center; }
.sched-round {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1.4rem;
}
.sched-round + .sched-round { border-top: 1px dashed var(--line); }
.sched-ampm { width: 2.2rem; font-size: .68rem; font-weight: 700; letter-spacing: .18em; color: var(--cream-faint); }
.sched-course { flex: 1; display: flex; align-items: center; gap: .65rem; font-family: var(--serif); font-size: 1.15rem; }
.course-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sched-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold-bright); }
.sched-travel { padding: 1.05rem 1.4rem; color: var(--cream-faint); font-style: italic; display: flex; align-items: center; }

/* course colors */
.dot-bandon-dunes { background: #c9a45c; }
.dot-pacific-dunes { background: #6f9fb2; }
.dot-bandon-trails { background: #6a9a55; }
.dot-old-macdonald { background: #c05c35; }
.dot-sheep-ranch { background: #c88a9e; }

/* ---------- Courses ---------- */
.course {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.course + .course { border-top: 1px solid var(--line); }
.course-flip .course-art { order: 2; }
.course-flip .course-body { order: 1; }
.poster-frame {
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 6px;
  background: var(--pine);
  padding: 10px;
}
.poster-frame svg { width: 100%; height: auto; display: block; }
.poster-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; filter: saturate(1.04); }
.course-meta {
  font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.course-body h3 { font-family: var(--serif); font-weight: 420; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; margin-bottom: 1rem; }
.course-desc { color: var(--cream-dim); max-width: 34rem; }
.course-stats { display: flex; gap: 2.25rem; list-style: none; margin: 1.6rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.course-stats span { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-faint); }
.course-stats strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.course-plays { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.play-chip {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  border: 1px solid var(--line-strong);
  padding: .35rem .8rem;
  color: var(--cream-dim);
  display: inline-flex; align-items: center; gap: .5rem;
}
.play-chip .course-dot { width: 7px; height: 7px; }
.courses-extra {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
  text-align: center; color: var(--cream-faint); font-size: .95rem; max-width: 46rem; margin-left: auto; margin-right: auto;
}
.courses-extra strong { color: var(--cream-dim); font-weight: 600; }

/* ---------- Weather ---------- */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .75rem;
  max-width: 70rem !important;
}
.weather-loading, .weather-error { grid-column: 1 / -1; text-align: center; color: var(--cream-faint); font-style: italic; }
.wx-day {
  border: 1px solid var(--line);
  background: rgba(13,27,22,.5);
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
}
.wx-day.is-golf { border-color: var(--line-strong); }
.wx-dow { font-family: var(--serif); font-size: 1.1rem; }
.wx-date { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-faint); margin-top: .1rem; }
.wx-icon { font-size: 1.9rem; margin: .7rem 0 .5rem; line-height: 1; }
.wx-temps { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wx-temps .lo { color: var(--cream-faint); font-weight: 400; }
.wx-wind { margin-top: .45rem; font-size: .72rem; color: var(--cream-faint); }
.wx-rain { margin-top: .15rem; font-size: .72rem; color: #8fb0c0; }
.weather-note { text-align: center; margin-top: 1.75rem; font-size: .8rem; color: var(--cream-faint); }

/* ---------- Packing ---------- */
.pack-progress {
  text-align: center;
  margin: -1.5rem auto 2.25rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.05rem;
  min-height: 1.5em;
}
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1rem; }
.pack-cat { border: 1px solid var(--line); background: linear-gradient(160deg, rgba(244,237,220,.04), rgba(244,237,220,0)); padding: 1.4rem 1.4rem 1rem; }
.pack-cat h4 {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  padding-bottom: .7rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
}
.pack-cat h4 small { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-faint); }
.pack-item { display: flex; align-items: baseline; gap: .7rem; padding: .5rem 0; cursor: pointer; border-bottom: 1px dashed rgba(244,237,220,.07); }
.pack-item:last-child { border-bottom: none; }
.pack-item input {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer;
  position: relative; top: 2px;
  transition: background .2s, border-color .2s;
}
.pack-item input:checked { background: var(--gold); border-color: var(--gold); }
.pack-item input:checked::after {
  content: "✓"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--ink); line-height: 1;
}
.pack-item .pack-label { font-size: .95rem; }
.pack-item .pack-hint { display: block; font-size: .78rem; color: var(--cream-faint); }
.pack-item input:checked ~ .pack-text .pack-label { color: var(--cream-faint); text-decoration: line-through; text-decoration-color: rgba(201,164,92,.6); }
.pack-note { text-align: center; margin-top: 2rem; font-size: .8rem; color: var(--cream-faint); font-style: italic; }

/* ---------- Dining ---------- */
.dining-group {
  font-family: var(--serif); font-weight: 420; font-size: 1.5rem;
  margin: 3rem 0 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.dining-group:first-of-type { margin-top: 0; }
.dining-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1rem; }
.dine {
  border: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.3rem;
  background: linear-gradient(160deg, rgba(244,237,220,.04), rgba(244,237,220,0));
  transition: border-color .3s, transform .3s;
}
.dine:hover { border-color: var(--gold); transform: translateY(-3px); }
.dine header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.dine h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.dine-tag { font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.dine-loc { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint); margin: .3rem 0 .7rem; }
.dine p:last-child { font-size: .92rem; color: var(--cream-dim); }
.dine-bar { background: linear-gradient(160deg, rgba(201,164,92,.08), rgba(201,164,92,.01)); }

/* ---------- Roster ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 42%), 1fr)); gap: 1.5rem; max-width: 64rem !important; }
.player { text-align: center; }
.player-photo {
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  padding: 7px;
  background: var(--ink);
}
.player-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  filter: saturate(.9) contrast(1.04);
}
.player figcaption { margin-top: 1rem; font-family: var(--serif); font-size: 1.25rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: .9rem; }
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--line-strong);
  padding: 6px;
  background: var(--pine);
}
.gallery-empty { text-align: center; color: var(--cream-faint); font-style: italic; }
.gallery-empty code { font-style: normal; color: var(--cream-dim); background: var(--pine); padding: .1rem .4rem; border: 1px solid var(--line); font-size: .85em; }
.gallery-grid:not(:empty) + .gallery-empty { display: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
  background: var(--pine);
}
.footer-brand { font-family: var(--serif); letter-spacing: .18em; font-size: 1.05rem; }
.footer-names { margin-top: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.footer-quote { margin-top: 1.75rem; font-family: var(--serif); font-style: italic; color: var(--cream-faint); }
.footer-credit { margin-top: 1.5rem; font-size: .68rem; letter-spacing: .06em; color: rgba(244,237,220,.35); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .course, .course-flip { grid-template-columns: 1fr; }
  .course-flip .course-art { order: 0; }
  .course-flip .course-body { order: 1; }
}
@media (max-width: 720px) {
  .nav { flex-direction: column; gap: .35rem; padding-top: .8rem; padding-bottom: .6rem; background: rgba(13, 27, 22, 0.92); backdrop-filter: blur(10px); }
  .nav-brand { font-size: .88rem; }
  .nav-links { justify-content: center; gap: .7rem 1rem; }
  .nav-links a { font-size: .62rem; letter-spacing: .14em; }
  .section { scroll-margin-top: 7.5rem; }
  .sched-day { grid-template-columns: 1fr; }
  .sched-date { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; align-items: baseline; gap: .75rem; padding: .9rem 1.4rem; }
  .count-cell { min-width: 3.8rem; }
  .count-cell span { font-size: 1.5rem; }
  .hero-inner { padding-top: 9rem; }
}
