/* clubsapp.org — editorial site (homepage + Journal).
   Tokens and values follow the design handoff (design_handoff_clubs_site). */

:root {
  --ink: #121212;
  --paper: #f4f2ed;
  --card: #ffffff;
  --dark-card: #151515;
  --photo-base: #0d0d0d;
  --products: #e6e4df;
  --hover-light: #ebe8e1;
  --hover-dark: #1d1d1d;
  --muted-body: #46433e;
  --muted-label: #55524c;
  --dark-steps: #d8d5ce;
  --dark-body: #c9c5bd;
  --dark-label: #a9a59d;
  --rule-light-subtle: rgba(18, 18, 18, 0.15);
  --rule-dark-subtle: rgba(244, 242, 237, 0.3);
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 144px);
  --display: "Playfair Display", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --label: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--paper); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 96px); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }

/* ── Type ─────────────────────────────────────────────────────────── */
.label {
  font-family: var(--label);
  font-stretch: 125%;
  font-weight: 600;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--label); font-stretch: 125%; font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid currentColor; max-width: 300px;
}
.h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(52px, 7.2vw, 108px); line-height: 0.94; letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(46px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.04em;
  text-wrap: balance;
}
.h1 em, .h2 em { font-weight: 500; }
.lead { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.4; text-wrap: pretty; }
.small-label {
  font-family: var(--label); font-stretch: 125%; font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--label); font-stretch: 125%; font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 18px 26px; border-radius: 999px; text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--paper) !important; }
.btn-ink:hover { background: #2a2a2a; }
.btn-paper { background: var(--paper); color: var(--ink) !important; }
.btn-paper:hover { background: #fff; }
.btn-outline { border: 1px solid var(--ink); padding: 17px 26px; }
.btn-outline:hover { background: var(--ink); color: var(--paper) !important; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 237, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 19px; width: auto; position: relative; top: 2px; }
.nav-right {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px;
  font-family: var(--label); font-stretch: 125%; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; justify-content: flex-end; column-gap: clamp(14px, 2vw, 28px); white-space: nowrap; }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 11px 18px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { text-decoration: none; background: #2a2a2a; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.menu-panel { display: none; flex-direction: column; padding: 8px 20px 28px; border-top: 1px solid rgba(18, 18, 18, 0.08); }
.menu-panel a {
  font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -0.03em;
  padding: 14px 0; border-bottom: 1px solid var(--rule-light-subtle);
}
.menu-panel a:last-child { border-bottom: 0; font-style: italic; }
.site-header.open .menu-panel { display: flex; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(48px, 6vw, 96px); align-items: center; min-height: calc(100vh - 77px);
}
.hero-copy { display: flex; flex-direction: column; gap: 32px; max-width: 600px; }
.hero-copy .kicker { max-width: 380px; }
.hero-copy .lead { max-width: 500px; }
.stats { display: flex; flex-direction: column; gap: 10px; color: var(--muted-label); }
.stats div { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── The three card styles ────────────────────────────────────────── */
.card-photo, .card-text, .card-dark { position: relative; display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; }
.deck .card-photo, .deck .card-text, .deck .card-dark { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
a.card-photo:hover, a.card-text:hover, a.card-dark:hover { text-decoration: none; }

.card-photo { background: var(--photo-base); color: #fff; }
.card-photo > img, .card-dark .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo .scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 58%, #000 78%); }
.card-photo .wordmark { position: absolute; top: 22px; right: 26px; font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.card-photo .card-body { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.card-cat { font-family: var(--label); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.card-photo .card-title { font-family: var(--display); font-size: clamp(30px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.deck .card-photo .card-title { font-size: 36px; }
.card-meta { font-family: var(--label); font-stretch: 125%; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.card-photo .card-meta { color: var(--dark-steps); padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.card-cta { font-family: var(--label); font-stretch: 125%; font-size: 10px; font-weight: 700; letter-spacing: 0.24em; }
.card-photo .card-cta { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.3); }

.card-text { background: var(--card); color: var(--ink); padding: 34px 32px 28px; display: flex; flex-direction: column; }
.card-text .card-cat { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.card-text .card-center { flex: 1; display: flex; align-items: center; }
.card-text .card-title { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.16; text-wrap: pretty; }
.deck .card-text .card-title { font-size: 29px; letter-spacing: -0.01em; }
.card-text .card-meta { color: var(--muted-label); padding-bottom: 18px; }
.card-text .card-foot { display: flex; justify-content: space-between; align-items: center; }
.mini-brand { display: flex; align-items: center; gap: 3px; font-family: var(--display); font-size: 19px; letter-spacing: 0.02em; }
.mini-brand img { height: 13px; width: auto; position: relative; top: 1px; }

.card-dark { background: var(--dark-card); color: #fff; display: flex; flex-direction: column; }
.card-dark .card-media { position: relative; height: 52%; background: var(--photo-base); }
.deck .card-dark .card-media { height: 50%; }
.card-dark .card-body { flex: 1; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.card-dark .card-title { font-size: clamp(24px, 2.1vw, 29px); line-height: 1.16; text-wrap: pretty; }
.deck .card-dark .card-title { font-size: 26px; }
.card-dark .card-meta, .card-dark .card-cta { margin-top: auto; }
.card-dark .card-meta { color: var(--dark-label); }

/* ── Steps ────────────────────────────────────────────────────────── */
.create-inner { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); min-height: 100vh; justify-content: center; }
.create-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }
.create-head > div { display: flex; flex-direction: column; gap: 28px; }
.create-head .lead { color: var(--dark-steps); max-width: 460px; justify-self: end; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3vw, 48px); }
.step { display: flex; flex-direction: column; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(244, 242, 237, 0.35); }
.step-n { font-family: var(--display); font-style: italic; font-size: 72px; line-height: 1; letter-spacing: -0.04em; }
.step-label { font-family: var(--label); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.step p { font-size: 21px; line-height: 1.4; color: var(--dark-steps); text-wrap: pretty; }

/* ── Features ─────────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.stack-head { display: flex; flex-direction: column; gap: 28px; }
.features-shot { position: relative; aspect-ratio: 4 / 5; background: var(--dark-card); border-radius: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.features-shot img { height: 88%; width: auto; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.numbered { display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); }
.numbered-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--ink); }
.numbered-row .n { font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.numbered-row div { display: flex; flex-direction: column; gap: 10px; }
.numbered-row .t { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.numbered-row .d { font-size: 20px; line-height: 1.4; color: var(--muted-body); text-wrap: pretty; }

/* ── Mission ──────────────────────────────────────────────────────── */
.mission-inner { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 128px); }
.mission-split { align-items: center; }
.mission-card .wordmark { top: 24px; right: 28px; font-size: 28px; }
.mission-card .scrim { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.65) 62%, #000 82%); }
.mission-card .card-body { left: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); bottom: clamp(24px, 3vw, 36px); gap: 16px; }
.mission-card .card-title { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.04em; text-wrap: balance; }
.mission-copy { display: flex; flex-direction: column; gap: 36px; }
.mission-copy .kicker { font-weight: 700; letter-spacing: 0.3em; max-width: none; }
.statement { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.18; letter-spacing: -0.01em; text-wrap: pretty; }
.mission-copy .body { font-size: 21px; line-height: 1.45; color: var(--dark-body); max-width: 520px; text-wrap: pretty; }
.trust {
  font-family: var(--label); font-stretch: 125%; font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  display: flex; gap: 14px 28px; flex-wrap: wrap; padding: 18px 0;
  border-top: 1px solid var(--rule-dark-subtle); border-bottom: 1px solid var(--rule-dark-subtle);
}
.signoff { color: var(--dark-label); letter-spacing: 0.24em; }
.involve-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.involve-head .h2 { font-size: clamp(44px, 5.4vw, 80px); }
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--paper); }
.involve-row {
  display: grid; grid-template-columns: minmax(48px, 80px) minmax(0, 1.2fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--paper);
}
.involve-row:hover { background: var(--hover-dark); text-decoration: none; }
.involve-row .n { font-family: var(--label); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; }
.involve-row .t { font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.involve-row .d { font-size: 20px; line-height: 1.4; color: var(--dark-body); text-wrap: pretty; }
.involve-row .arrow { font-size: 24px; justify-self: end; }

/* ── Journal ──────────────────────────────────────────────────────── */
.journal-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.journal-head > div { display: flex; flex-direction: column; gap: 28px; }
.article-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); }
.article-row {
  display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--ink);
}
.article-row:hover { background: var(--hover-light); text-decoration: none; }
.article-row .c { font-family: var(--label); font-stretch: 125%; font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; }
.article-row .t { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: pretty; }
.article-row .r { color: var(--muted-label); white-space: nowrap; }

/* ── Products + CTA + footer ──────────────────────────────────────── */
.products { background: var(--products); }
.products .section { padding-bottom: clamp(56px, 7vw, 96px); }
.cta {
  border-top: 1px solid var(--ink); padding: clamp(56px, 7vw, 96px) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center;
}
.cta .h2 { font-size: clamp(56px, 8vw, 128px); line-height: 0.92; letter-spacing: -0.045em; }
.cta-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-self: end; }
.cta-actions .col { display: flex; flex-direction: column; gap: 12px; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr img { width: 112px; height: 112px; background: #fff; padding: 8px; border-radius: 3px; }
.qr span { font-family: var(--label); font-stretch: 125%; font-size: 9px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.site-footer {
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--rule-light-subtle);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .copy { color: var(--muted-label); }

/* ── Article page ─────────────────────────────────────────────────── */
.article-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 28px; max-width: 980px; }
.article-hero .dek { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.4; color: var(--muted-body); max-width: 720px; }
.article-meta { color: var(--muted-label); display: flex; gap: 18px; flex-wrap: wrap; }
.article-cover { aspect-ratio: 16 / 9; background: var(--dark-card); border-radius: 3px; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 680px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 var(--section-y); font-size: 21px; line-height: 1.6; }
.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; margin: 1.6em 0 0.6em; }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 24px; border-left: 1px solid var(--ink); font-family: var(--display); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.02em; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--label); font-stretch: 125%; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-label); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 3px; }
.prose figcaption { margin-top: 10px; font-size: 16px; line-height: 1.45; font-style: italic; color: var(--muted-label); }
.prose figure.lead { margin-top: 0; }
.prose .source { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--rule-light-subtle); }

/* ── Phones / single-column hero: the deck comes first ─────────────────
   The hero's two columns collapse just above 1000px. From there down the
   deck leads (the swipe IS the pitch) and is sized to fit, with its
   controls, on the first screen under the header; the headline and CTAs
   follow. Desktop keeps the copy-left / deck-right layout untouched. */
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 20px; align-items: start; }
  .deck-col { order: -1; gap: 14px; }
  /* Height budget under the deck: sticky header ~77, top pad 20, label + gap
     ~26, controls gap 14 + buttons 58 + slack = ~222. The card takes the rest of the
     smallest viewport (svh, so Safari's collapsing bars never push the
     buttons off), up to its normal 420px width. */
  .deck { width: min(100%, 420px, calc((100svh - 222px) * 5 / 7)); min-width: 184px; }
  .deck-controls { padding-top: 14px; gap: 10px; }
}
@media (max-width: 760px) {
  .site-nav { padding-top: 10px; padding-bottom: 10px; }
  .hero { padding-top: 12px; }
  .round-btn { width: 48px; height: 48px; font-size: 16px; }
  .round-btn.primary { width: 58px; height: 58px; font-size: 20px; }
  .deck-label { font-size: 9px; }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .create-head .lead, .cta-actions { justify-self: start; }
  .involve-row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 12px; padding: 24px 0; }
  .involve-row .d { grid-column: 2; }
  .involve-row .arrow { display: none; }
  .article-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deck-card { transition: none !important; }
}
