:root {
  --paper: #f4ecdc;
  --paper-2: #ebe0c9;
  --ink: #14241f;
  --deep: #0f2e2b;
  --pine: #1d4a40;
  --slough: #2f6f62;
  --sun: #f2a33a;
  --coral: #e2583e;
  --foam: #fdf8ee;
  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 em, h1 em { font-style: italic; font-weight: 400; }
a { color: inherit; }
.hidden { position: absolute; left: -9999px; }

.kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--coral);
  margin: 0 0 1rem;
}
.kicker-light { color: var(--sun); }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem var(--pad);
  color: var(--foam);
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(244, 236, 220, .92); color: var(--ink); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(20,36,31,.12); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.35rem; }
.brand svg { width: 34px; height: 34px; }
.nav nav { display: flex; gap: 1.6rem; align-items: center; font-weight: 500; font-size: .95rem; }
.nav nav a { text-decoration: none; opacity: .9; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { background: var(--sun); color: var(--ink) !important; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #f6c27a 0%, #f3a65a 30%, #e2794e 58%, var(--pine) 58.2%);
  color: var(--foam);
}
.hero-sky { position: absolute; inset: 0; }
.sun {
  position: absolute;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 58%;
  top: 14%;
  background: radial-gradient(circle at 50% 50%, #fff0c8 0%, #ffd27a 55%, #f7a94b 100%);
  box-shadow: 0 0 120px 30px rgba(255, 214, 140, .45);
  animation: rise 2.4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { transform: translateY(30%); opacity: 0; } }
.hills { position: absolute; left: 0; right: 0; top: calc(58% - 160px); width: 100%; height: 220px; }
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(7rem, 14vh, 10rem);
  max-width: 1100px;
}
.eyebrow { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--sun); margin: 0 0 1.2rem; }
.hero h1 { font-size: clamp(3rem, 9.5vw, 8.5rem); text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero h1 em { color: var(--sun); }
.lede { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 1.6rem 0 2rem; opacity: .92; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-water { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; }
.hero-water svg { width: 200%; height: 100%; animation: drift 14s linear infinite; }
.wake { fill: none; stroke: rgba(253, 248, 238, .22); stroke-width: 2; }
.w2 { stroke: rgba(253, 248, 238, .14); }
.w3 { stroke: rgba(242, 163, 58, .35); }
@keyframes drift { to { transform: translateX(-50%); } }

.btn {
  display: inline-block;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-family: var(--body);
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 #b8701d; }
.btn-sun:hover { box-shadow: 0 8px 0 #b8701d; }
.btn-sun:active { transform: translateY(3px); box-shadow: 0 2px 0 #b8701d; }
.btn-ghost { border-color: var(--foam); color: var(--foam); }
.btn-ghost:hover { background: var(--foam); color: var(--ink); }

/* MARQUEE */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 1rem 0; border-block: 3px solid var(--sun); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-style: italic; font-size: 1.6rem; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--sun); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CLUB */
.club, .ski, .faq, .day { padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.club-head { max-width: 900px; margin-bottom: 3rem; }
.club-head h2 em { color: var(--slough); }
.club-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.club-intro { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; margin: 0; }
.card { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.card-num { font-family: var(--display); font-style: italic; color: var(--coral); font-size: 1.4rem; }
.card h3 { font-size: 1.55rem; margin: .4rem 0 .6rem; }
.card p { margin: 0; color: #3a4a44; }

/* COURSE */
.course {
  background: var(--deep);
  color: var(--foam);
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.course h2 em { color: var(--sun); }
.course-copy p { opacity: .85; }
.course-stats { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: 2rem; }
.course-stats li { display: flex; flex-direction: column; }
.course-stats strong { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--sun); }
.course-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.course-diagram { margin: 0; background: var(--slough); border-radius: 22px; padding: 1.2rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.course-diagram svg { width: 100%; height: auto; display: block; }
.boat-path { stroke: rgba(255,255,255,.25); stroke-width: 2; stroke-dasharray: 6 10; }
.skier-path { fill: none; stroke: var(--foam); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.course.in-view .skier-path { animation: draw 3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.turn circle { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.gate circle { fill: var(--coral); stroke: var(--ink); stroke-width: 2; }
.guide circle { fill: #ffe9b8; }
.turn-labels text { fill: var(--foam); font-family: var(--display); font-weight: 700; font-size: 18px; text-anchor: middle; dominant-baseline: middle; }
.skier-dot { fill: var(--coral); stroke: var(--foam); stroke-width: 3; }
.boat rect { fill: var(--foam); }
.course-diagram figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; font-size: .82rem; padding: .8rem .4rem 0; opacity: .9; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -.8rem; }
.dot-sun { background: var(--sun); }
.dot-gate { background: var(--coral); }
.dot-guide { background: #ffe9b8; }
.dot-skier { background: var(--coral); box-shadow: 0 0 0 2px var(--foam); }

/* SKI */
.ski { background: var(--paper-2); }
.ski-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ski-card {
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.ski-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.ski-card-feature { background: var(--slough); color: var(--foam); }
.ski-card-feature .ski-tag { background: var(--sun); color: var(--ink); }
.ski-tag { align-self: flex-start; background: var(--ink); color: var(--paper); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1.4rem; }
.ski-card h3 { font-size: 2.2rem; margin-bottom: .8rem; }
.ski-card p { margin: 0 0 1rem; }
.ski-card ul { padding: 0; margin: 0 0 1.8rem; list-style: none; }
.ski-card li { padding: .45rem 0; border-bottom: 1px dashed currentColor; opacity: .85; }
.ski-card li::before { content: "◦ "; color: var(--coral); font-weight: 800; }
.ski-card-feature li::before { color: var(--sun); }
.ski-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.ski-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* DAY */
.day { border-bottom: 2px solid var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 2.6rem; left: 0; right: 0; height: 2px; background: var(--ink); }
.timeline li { padding-right: 1.5rem; }
.timeline time { font-family: var(--display); font-style: italic; font-size: 2rem; display: block; margin-bottom: 1.4rem; position: relative; }
.timeline time::after { content: ""; position: absolute; left: 0; top: calc(100% + .1rem); width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.timeline li:nth-child(2) time::after { background: var(--coral); }
.timeline li:nth-child(3) time::after { background: var(--slough); }
.timeline li:nth-child(4) time::after { background: var(--deep); }
.timeline p { margin: 1.2rem 0 0; color: #3a4a44; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.faq-list details { border-top: 2px solid var(--ink); padding: 1.2rem 0; }
.faq-list details:last-child { border-bottom: 2px solid var(--ink); }
.faq-list summary { font-family: var(--display); font-weight: 700; font-size: 1.35rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--coral); font-size: 1.8rem; line-height: 1; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: .8rem 0 0; max-width: 40rem; color: #3a4a44; }

/* CONTACT */
.contact {
  background: var(--pine);
  color: var(--foam);
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact h2 em { color: var(--sun); }
.contact-copy p { opacity: .88; max-width: 30rem; }
.contact-where { display: flex; gap: .9rem; margin-top: 2rem; align-items: flex-start; }
.pin { color: var(--sun); font-size: 1.5rem; line-height: 1.2; }
.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  box-shadow: 10px 10px 0 var(--sun);
}
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .88rem; }
.contact-form .full, .contact-form fieldset { grid-column: 1 / -1; }
.opt { font-weight: 400; opacity: .6; }
.contact-form input:not([type="radio"]), .contact-form select, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: .8rem .9rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--foam);
  color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.levels { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.levels legend { font-weight: 700; font-size: .88rem; margin-bottom: .5rem; padding: 0; }
.levels label { flex-direction: row; align-items: center; gap: .45rem; border: 2px solid var(--ink); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 500; }
.levels label:has(input:checked) { background: var(--ink); color: var(--paper); }
.levels input { accent-color: var(--sun); }
.contact-form button { margin-top: .4rem; }

/* FOOTER */
.footer { background: var(--ink); color: var(--paper); padding: 3rem var(--pad) 2rem; overflow: hidden; }
.footer-big { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(4rem, 17vw, 16rem); line-height: .85; color: var(--sun); letter-spacing: -.04em; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: .88rem; opacity: .75; }

/* THANK YOU */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--pine); color: var(--foam); }
.thanks h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 1rem; }
.thanks h1 em { color: var(--sun); }
.thanks p { max-width: 32rem; margin: 0 auto 2rem; opacity: .9; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .club-grid { grid-template-columns: 1fr 1fr; }
  .club-intro { grid-column: 1 / -1; }
  .course, .contact, .faq { grid-template-columns: 1fr; }
  .ski-grid { grid-template-columns: 1fr; max-width: 560px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .timeline::before { display: none; }
}
@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .club-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .sun { left: 40%; top: 10%; width: 70vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .skier-path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
