/* Club Ralley — clubralley.com
   Colors match the app (tailwind.config.js brand.*). Headings keep the
   Libre Baskerville the Squarespace site used; body is the app's DM Sans. */
:root {
  --green: #2e4d45;
  --green-deep: #223a33;
  --sage: #e2e4d6;
  --sage-soft: #eef0e6;
  --ink: #1a1a1a;
  --muted: #5f6460;
  --white: #ffffff;
  --line: rgba(26, 26, 26, 0.12);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  opacity: 0.75;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--green);
  color: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  opacity: 0.85; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--sage); }
.nav .nav-cta {
  background: var(--sage); color: var(--green); opacity: 1;
  padding: 8px 16px; border-radius: 999px; border: 0; font-weight: 700;
}
.nav .nav-cta:hover { background: var(--white); }
.menu-btn {
  display: none; background: none; border: 0; color: inherit;
  font: inherit; font-weight: 700; cursor: pointer; padding: 8px;
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green); padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--sage); color: var(--green); }
.btn-light:hover { background: var(--white); }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--green-deep); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
.band { padding: clamp(64px, 10vw, 128px) 0; }
.band-green { background: var(--green); color: var(--white); }
.band-sage { background: var(--sage); color: var(--green); }
.band-soft { background: var(--sage-soft); }

/* marquee */
.marquee {
  background: var(--green); color: var(--sage);
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.marquee-track {
  display: inline-flex; gap: 0.6em;
  animation: marquee 90s linear infinite;
  padding: 0.25em 0;
}
.marquee span {
  font-family: var(--serif); font-size: clamp(2.6rem, 9vw, 7.5rem);
  letter-spacing: -0.03em; line-height: 1.1;
}
.marquee span::after { content: "·"; margin-left: 0.6em; opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* hero */
.hero { background: var(--green); color: var(--white); padding: clamp(56px, 9vw, 112px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { opacity: 0.9; margin-bottom: 1.8em; }
.hero-photo { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); margin-top: 2.5rem; }
.faq-item { padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.35rem; color: var(--green); }
.faq-item p { color: #2c2f2d; margin: 0; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* features (app page) */
.features { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: 3rem; }
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) > :first-child { order: 2; }
.feature img { border-radius: var(--radius); }
.feature h3 { color: var(--sage); }
.feature p { opacity: 0.88; max-width: 34em; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) > :first-child { order: 0; }
}

/* timeline */
.timeline { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--green); opacity: 0.25;
}
.timeline li { position: relative; padding: 0 0 2.6rem 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 5px var(--white);
}
.timeline .when {
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 0.4rem;
}
.timeline p { max-width: 42em; margin: 0; }

.statement {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.45; letter-spacing: -0.01em; max-width: 34em;
}

/* cards */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 2.5rem; }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-img { display: block; aspect-ratio: 4 / 5; background: var(--sage-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { margin: 0; }
.price { font-weight: 700; color: var(--green); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product .btn { margin-top: auto; }

/* contact */
.contact-card { background: var(--sage-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact-card dt { font-weight: 700; color: var(--green); margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.2rem 0 0; }

/* legal */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; color: var(--green); }
.legal .dates { color: var(--muted); font-size: 0.95rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

/* footer */
.site-footer { background: var(--green-deep); color: var(--sage); padding: 56px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-tag { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin: 0.8rem 0 0; }
.footer-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(226,228,214,0.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; opacity: 0.75; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* clubs strip */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 2rem; }
.club { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.club h3 { color: var(--green); margin-bottom: 0.3rem; }
.club p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* numbered steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); }
.steps li { counter-increment: s; border-top: 2px solid var(--green); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--green); line-height: 1; margin-bottom: 0.6rem; }
.steps p { margin: 0; color: #2c2f2d; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* spotlights */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 2rem; }
.spot-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.spot-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.spot-card[hidden] { display: none; }
.spot-img { aspect-ratio: 4 / 5; background: var(--sage-soft); }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.spot-body { padding: 20px 22px 24px; }
.spot-body h3 { margin: 0.4rem 0 0.2rem; color: var(--green); }
.spot-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.spot-body .spot-quote { margin-top: 0.8rem; color: var(--ink); font-family: var(--serif); font-style: italic; }
.spot-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.spot-more { margin-top: 2.5rem; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--green); background: transparent; color: var(--green); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--white); }
.spot-facts { display: flex; gap: 32px; margin: 1.5rem 0 0; }
.spot-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.spot-facts dd { margin: 0.2rem 0 0; }
.post { max-width: 720px; }
.post-lede { font-size: 1.15rem; }
.post h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green); margin-top: 2.6rem; }
.post .answer { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; }
.post figure { margin: 2.6rem 0; }
.post figure img { border-radius: var(--radius); }
.pull-quotes { display: grid; gap: 14px; margin: 2.4rem 0; }
.pull-quotes blockquote { margin: 0; padding: 18px 24px; background: var(--sage); color: var(--green); border-radius: 18px; font-weight: 500; font-size: 1.08rem; }
.pull-quotes blockquote:nth-child(even) { margin-left: auto; max-width: 85%; }
.pull-quotes blockquote:nth-child(odd) { max-width: 85%; }
.post-sign { font-family: var(--serif); font-size: 1.3rem; color: var(--green); margin-top: 2.4rem; }

/* ralleys happening now */
.ralley-list { display: grid; gap: 14px; margin-top: 2rem; }
.ralley-row { display: grid; grid-template-columns: 170px 1fr auto auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.ralley-when { font-weight: 700; color: var(--green); }
.ralley-main h3 { margin: 0.2rem 0; }
.ralley-main p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ralley-meta { display: flex; flex-direction: column; text-align: right; font-size: 0.92rem; color: var(--muted); }
.ralley-meta .price { font-size: 1.1rem; }
@media (max-width: 760px) {
  .ralley-row { grid-template-columns: 1fr; gap: 10px; }
  .ralley-meta { flex-direction: row; gap: 14px; text-align: left; }
}

/* gallery */
.gallery { columns: 3 280px; column-gap: 16px; margin-top: 2rem; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius); }
