/* Winter Golf League at Chuck's Academy — design system adapted from the
   academy marketing reference (refrence.html): dark, gold, editorial serif.
   Mobile-first, server-rendered, HTMX for partial updates (PRD §14). */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --black: #0a0a08;
  --dark: #111109;
  --deep: #1a1a14;
  --gold: #c8a96e;
  --gold-light: #e2c98a;
  --gold-dim: #7a6340;
  --cream: #f0ead8;
  --warm-white: #faf7f0;
  --green: #2d4a2d;
  --green-light: #3d6b3d;
  --text-muted: #7a7060;
  --line: rgba(200, 169, 110, 0.15);
  --line-strong: rgba(200, 169, 110, 0.3);
  --cream-65: rgba(240, 234, 216, 0.65);
  --cream-45: rgba(240, 234, 216, 0.45);
  --danger: #c07a7a;
  --danger-bg: rgba(139, 74, 74, 0.18);
  --ok-bg: rgba(61, 107, 61, 0.22);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Film grain over everything, like the reference */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  color: var(--cream);
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.5rem; }
h2 em, h1 em { font-style: italic; color: var(--gold); }

p { margin: 0 0 1rem; }
ul, ol { color: var(--cream-65); }
li { margin-bottom: 0.35rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

strong { color: var(--cream); }
.muted { color: var(--text-muted); }

.container {
  max-width: 64rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
}

main.container { padding-top: 2rem; padding-bottom: 3rem; position: relative; z-index: 1; }

/* ------------------------------------------------------------------ */
/* Header / nav                                                        */
/* ------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(10, 10, 8, 0.98), rgba(10, 10, 8, 0.85));
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding-block: 0.9rem;
}
.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--gold) !important;
  margin-right: auto;
}
.brand span { color: var(--cream); }
.site-header nav a:not(.brand):not(.cta) {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}
.site-header nav a:not(.brand):not(.cta):hover { opacity: 1; color: var(--gold); }

.cta,
main .cta,
a.cta {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}
.cta:hover, main .cta:hover, a.cta:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--black);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.25rem 2rem;
}
.footer-brand .brand { font-size: 1.8rem; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--cream-45);
  max-width: 22rem;
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li, .footer-col ul li a { font-size: 0.95rem; color: var(--cream-45); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(200, 169, 110, 0.08);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(240, 234, 216, 0.3); letter-spacing: 0.08em; margin: 0; }

/* ------------------------------------------------------------------ */
/* Buttons, chips, notices                                             */
/* ------------------------------------------------------------------ */

button,
input[type="submit"] {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}
button:hover, input[type="submit"]:hover { background: var(--gold-light); transform: translateY(-1px); }
button:disabled { opacity: 0.55; transform: none; cursor: not-allowed; }

button.secondary,
.secondary.button,
a.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 1rem;
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
button.secondary:hover, .secondary.button:hover, a.secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: transparent;
}

.chip {
  display: inline-block;
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}
.chip.ready { background: var(--ok-bg); border-color: rgba(61, 107, 61, 0.6); color: #a9d6b4; }
.chip.bad { background: var(--danger-bg); border-color: rgba(192, 122, 122, 0.5); color: var(--danger); }

.notice {
  padding: 0.85rem 1.1rem;
  margin: 0.75rem 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--cream-65);
}
.notice.error { background: var(--danger-bg); border-color: rgba(192, 122, 122, 0.5); border-left-color: var(--danger); color: #e8bcbc; }
.notice.success { background: var(--ok-bg); border-color: rgba(61, 107, 61, 0.6); border-left-color: var(--green-light); color: #c4e2cc; }
.muted-notice { border-left-color: var(--gold-dim); }

/* Django messages framework */
.messages { list-style: none; margin: 0 0 1rem; padding: 0; }
.messages li {
  padding: 0.85rem 1.1rem;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--cream-65);
}
.messages li.success { background: var(--ok-bg); border-left-color: var(--green-light); color: #c4e2cc; }
.messages li.error, .messages li.warning { background: var(--danger-bg); border-left-color: var(--danger); color: #e8bcbc; }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark);
  border: 1px solid var(--line);
  font-size: 1rem;
  margin: 1rem 0 1.5rem;
}
th, td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  vertical-align: top;
}
th {
  background: var(--deep);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}
td { color: var(--cream-65); }
tbody tr:hover td { background: rgba(200, 169, 110, 0.03); }
tr.row-overdue td { background: var(--danger-bg); }

/* Tables with inline forms (dashboard) shouldn't overflow phones */
@media (max-width: 700px) {
  table.dashboard { display: block; overflow-x: auto; }
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

main label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.35rem;
}

main input[type="text"],
main input[type="email"],
main input[type="tel"],
main input[type="number"],
main input[type="date"],
main input[type="url"],
main input[type="password"],
main select,
main textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 169, 110, 0.2);
  color: var(--cream);
  padding: 0.7rem 0.9rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s, background 0.3s;
}
main select { -webkit-appearance: none; appearance: none; }
main select option { background: var(--dark); color: var(--cream); }
main input:focus, main select:focus, main textarea:focus {
  border-color: var(--gold);
  background: rgba(200, 169, 110, 0.05);
}
main input::placeholder, main textarea::placeholder { color: rgba(240, 234, 216, 0.22); }
main textarea { resize: vertical; }

.form-fields p, main form > p { margin: 0 0 1rem; }
.errorlist { color: var(--danger); margin: 0.25rem 0 0; font-size: 0.9rem; list-style: none; padding: 0; }

/* Compact inline controls used on the dashboard and league screens */
.inline-filter { display: inline-block; }
.inline-filter label { display: inline; margin-right: 0.4rem; }
.inline-filter select { width: auto; display: inline-block; padding: 0.35rem 0.6rem; font-size: 0.95rem; }

.inline-action { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.25rem 0.25rem 0.25rem 0; }
.inline-action label { display: inline; margin: 0; }
.inline-action input, .inline-action select { width: auto; padding: 0.35rem 0.6rem; font-size: 0.95rem; }
.inline-action button { padding: 0.35rem 0.8rem; font-size: 0.72rem; }

td form, td .inline-action { margin: 0.25rem 0; }
td form button { padding: 0.35rem 0.8rem; font-size: 0.72rem; }
td input, td select { padding: 0.4rem 0.6rem; font-size: 0.95rem; }

.fees, .rounds { list-style: none; margin: 0 0 0.35rem; padding: 0; }
.fees li, .rounds li { margin-bottom: 0.3rem; }

.shot-entry { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.shot-entry input[type="number"] { width: 4.2rem; padding: 0.4rem 0.5rem; }

details { margin: 0.4rem 0; }
summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
summary:hover { color: var(--gold-light); }
pre {
  background: var(--black);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  color: var(--cream-65);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------------ */
/* Booking week page                                                   */
/* ------------------------------------------------------------------ */

.event-info { margin-bottom: 1.25rem; }
.event-type { font-size: 1.1rem; color: var(--cream); }

.day-card {
  background: var(--dark);
  border: 1px solid var(--line);
  padding: 1.1rem 1.25rem;
  margin: 0.9rem 0;
  position: relative;
  transition: border-color 0.3s;
}
.day-card:hover { border-color: var(--line-strong); }
.day-card.full { opacity: 0.6; }
.day-card h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.day-card h3 .chip { margin-left: 0.4rem; }
.day-card p { color: var(--cream-65); margin-bottom: 0.5rem; }
.day-card form { margin-top: 0.5rem; }
.day-card ul { margin: 0.25rem 0 0.5rem; }
.tee-off-order { font-size: 0.95rem; }

.my-booking {
  background: var(--dark);
  border: 1px solid var(--gold);
  padding: 0.9rem 1.1rem;
  margin: 0.6rem 0;
}
.my-booking p { margin: 0; display: inline-block; }
.my-booking form { display: inline-block; margin-left: 0.75rem; }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact-info { margin-bottom: 1.5rem; }
.contact-success {
  background: var(--dark);
  border: 1px solid var(--gold);
  padding: 1.5rem;
}
.contact-success h2 { margin-top: 0; color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Dashboard / league admin screens                                    */
/* ------------------------------------------------------------------ */

.phase-block { margin-bottom: 2.5rem; }
.phase-block > h2 { margin-bottom: 0.25rem; }
.phase-actions { margin: 0.75rem 0 1rem; }
.tee-options { font-size: 0.9rem; }

/* ------------------------------------------------------------------ */
/* User manual (single page + sticky TOC, staff-only)                  */
/* ------------------------------------------------------------------ */

.manual-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.manual-toc {
  background: var(--dark);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
}
.manual-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.manual-toc ol { margin: 0; padding-left: 1.4rem; font-size: 1rem; }
.manual-toc li { margin-bottom: 0.3rem; }
.manual-toc a { color: var(--cream-65); }
.manual-toc a:hover { color: var(--gold-light); }

@media (min-width: 64rem) {
  .manual-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; }
  .manual-toc {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.manual-body section { scroll-margin-top: 1.5rem; }
.manual-body section + section { border-top: 1px solid var(--line); }
.manual-body h3 { margin-top: 1.75rem; }
.manual-body section:target > h2 { color: var(--gold); }
.manual-body .notice p:last-child { margin-bottom: 0; }

/* Weekly rhythm — numbered step cards */
ol.rhythm {
  list-style: none;
  counter-reset: manual-step;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
ol.rhythm > li {
  counter-increment: manual-step;
  position: relative;
  margin: 0;
  padding: 0.9rem 1.25rem 0.9rem 3.6rem;
  background: var(--dark);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-dim);
}
ol.rhythm > li::before {
  content: counter(manual-step);
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1;
}

/* Glossary */
.manual-glossary dt {
  margin-top: 1.1rem;
  color: var(--gold);
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-weight: 600;
}
.manual-glossary dd { margin: 0.1rem 0 0; color: var(--cream-65); }

/* ================================================================== */
/* MARKETING HOME — adapted from the academy reference page            */
/* ================================================================== */

/* Custom cursor, home page only, real pointers only */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  body.marketing-home { cursor: auto; }
  body.marketing-home .cursor {
    display: block;
    width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, opacity 0.2s;
    mix-blend-mode: screen;
  }
  body.marketing-home .cursor-ring {
    display: block;
    width: 36px; height: 36px;
    border: 1px solid rgba(200, 169, 110, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease-out, top 0.12s ease-out;
  }
}

.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 1.25rem 6rem;
  margin: -2rem -1.25rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(45, 74, 45, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(200, 169, 110, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #0a0a08 0%, #111209 40%, #0d160d 70%, #0a0a08 100%);
}
.turf-lines { position: absolute; inset: 0; overflow: hidden; }
.turf-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 74, 45, 0.4), transparent);
  animation: scanLine 8s linear infinite;
  opacity: 0;
}
@keyframes scanLine {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh); }
}
.ball-path { position: absolute; top: 0; right: 0; width: 70%; height: 70%; opacity: 0.15; }

.hero-content { position: relative; z-index: 2; max-width: 46rem; }
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--gold); display: block; }
.hero-title .line1 { opacity: 0; animation: fadeUp 0.8s 0.5s forwards; }
.hero-title .line2 { opacity: 0; animation: fadeUp 0.8s 0.65s forwards; }
.hero-desc {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-65);
  max-width: 30rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; opacity: 0; animation: fadeUp 0.8s 0.95s forwards; }

.btn-primary {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 1rem 2.5rem;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--black); transform: translateY(-2px); }
.btn-ghost {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  padding: 0.95rem 2.5rem;
  border: 1px solid rgba(240, 234, 216, 0.3);
  display: inline-block;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.divider { display: flex; align-items: center; gap: 1.5rem; margin: 0; }
.divider-line { flex: 1; height: 1px; background: rgba(200, 169, 110, 0.2); }
.divider-icon { color: var(--gold); font-size: 1.2rem; }

.home-section { padding: 5rem 0; position: relative; }

/* Full-width bands break out of the container's inline padding */
.bay-section, .stats-bar, .join-section { margin-inline: -1.25rem; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.section-title em { font-style: italic; color: var(--gold); }

/* The academy / bay feature */
.bay-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: var(--dark);
  border-block: 1px solid var(--line);
}
.bay-visual {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, #0d1a0d 0%, #1a2d1a 40%, #0d160d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bay-visual-inner { position: relative; z-index: 2; text-align: center; }
.sim-screen {
  width: 280px; height: 160px;
  background: linear-gradient(135deg, #1a3d2a, #0d2a1a, #0a1f0a);
  border: 2px solid rgba(200, 169, 110, 0.3);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(45, 74, 45, 0.5), 0 0 120px rgba(45, 74, 45, 0.2);
}
.sim-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(45, 130, 45, 0.3) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(45, 100, 45, 0.15) 18px, rgba(45, 100, 45, 0.15) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(45, 100, 45, 0.1) 28px, rgba(45, 100, 45, 0.1) 29px);
}
.sim-ball {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: ballBounce 3s ease-in-out infinite;
}
@keyframes ballBounce { 0%, 100% { bottom: 20px; left: 50%; } 50% { bottom: 80px; left: 60%; } }
.bay-heat-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(200, 169, 110, 0.15);
  border: 1px solid rgba(200, 169, 110, 0.3);
  padding: 0.5rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 3;
}
.bay-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(45, 74, 45, 0.15) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.bay-content { padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.bay-content > p { font-size: 1.05rem; line-height: 1.9; color: var(--cream-65); }
.bay-features { margin-top: 1.5rem; }
.bay-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}
.bay-feature:first-child { border-top: 1px solid rgba(200, 169, 110, 0.1); }
.feature-icon { font-size: 1.4rem; width: 40px; flex-shrink: 0; padding-top: 2px; }
.feature-text h4 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35rem; }
.feature-text p { font-size: 0.95rem; line-height: 1.7; color: rgba(240, 234, 216, 0.55); font-weight: 300; margin: 0; }

/* Stats row */
.stats-bar {
  background: var(--green);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat { text-align: center; padding: 2.5rem 1rem; border-right: 1px solid rgba(200, 169, 110, 0.15); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.25rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(240, 234, 216, 0.6); }

/* Experience / how the season works */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid rgba(200, 169, 110, 0.1);
}
.exp-card { background: var(--dark); padding: 2.75rem 2.25rem; position: relative; overflow: hidden; transition: background 0.4s; }
.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.exp-card:hover { background: #161410; }
.exp-card:hover::before { transform: scaleX(1); }
.exp-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  color: rgba(200, 169, 110, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.4s;
}
.exp-card:hover .exp-card-num { color: rgba(200, 169, 110, 0.15); }
.exp-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.exp-card p { font-size: 0.98rem; line-height: 1.8; color: rgba(240, 234, 216, 0.5); font-weight: 300; margin: 0; }

/* Season at a glance */
.season-list { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: season; }
.season-list li {
  counter-increment: season;
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
  color: var(--cream-65);
  margin: 0;
}
.season-list li:first-child { border-top: 1px solid rgba(200, 169, 110, 0.1); }
.season-list li::before {
  content: counter(season, decimal-leading-zero);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--gold-dim);
  flex-shrink: 0;
  width: 3rem;
}
.season-list strong { color: var(--cream); margin-right: 0.35rem; }

/* Join / reserve panel */
.join-section {
  background: var(--deep);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.join-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45, 74, 45, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.join-info p { font-size: 1.02rem; line-height: 1.9; color: rgba(240, 234, 216, 0.55); }
.info-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.info-list li { display: flex; align-items: center; gap: 0.9rem; font-size: 0.95rem; color: rgba(240, 234, 216, 0.7); margin: 0; }
.info-list li::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

.join-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 2.75rem;
}
.join-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.join-card p { color: rgba(240, 234, 216, 0.55); line-height: 1.8; font-size: 0.98rem; }
.join-card .btn-primary { width: 100%; text-align: center; margin-top: 0.75rem; }
.join-card .card-link {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* CMS page body */
.page-body { color: var(--cream-65); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bay-section { grid-template-columns: 1fr; }
  .bay-visual { min-height: 320px; }
  .bay-content { padding: 3rem 1.5rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(200, 169, 110, 0.15); }
  .join-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .scroll-hint { display: none; }
  .hero { min-height: 80vh; padding-bottom: 4rem; }
  .join-card { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/* Print — the manual is meant to survive on paper in the bay          */
/* ------------------------------------------------------------------ */

@media print {
  body { background: #fff; color: #1a1a1a; font-size: 11pt; }
  .grain, .site-header, .site-footer, .manual-toc { display: none !important; }
  main.container { max-width: none; padding: 0; }
  .manual-layout { display: block; }
  h1, h2, h3, h4, strong { color: #111; }
  h2, h3 { break-after: avoid; }
  a { color: #7a6340; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .notice, ol.rhythm > li, table, .day-card { break-inside: avoid; border-color: #bbb; background: #fff; }
  ol.rhythm > li { border-left: 3px solid #7a6340; padding-left: 3rem; }
  ol.rhythm > li::before { border-color: #7a6340; color: #7a6340; }
  ul, ol, .muted, .manual-glossary dd { color: #333; }
  .manual-body section + section { border-top: 1px solid #ccc; }
  .chip { border-color: #999; background: #fff; color: #333; }
}
