/* 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);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(18, 18, 18, 0.06), 0 10px 24px -12px rgba(18, 18, 18, 0.22), 0 30px 60px -30px rgba(18, 18, 18, 0.28);
  --shadow-card-hover: 0 2px 4px rgba(18, 18, 18, 0.08), 0 18px 36px -14px rgba(18, 18, 18, 0.3), 0 48px 80px -36px rgba(18, 18, 18, 0.36);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --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;
  line-height: 1.7; padding-bottom: 14px; border-bottom: 1px solid currentColor; max-width: 300px;
}
.h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(50px, 6.4vw, 96px); line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 6vw, 88px); line-height: 1.04; letter-spacing: -0.035em;
  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; line-height: 1.7;
}

/* ── 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.94);
  -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-wrap: wrap; gap: 8px; color: var(--muted-label); }
.stats span {
  padding: 8px 13px; border-radius: 999px; line-height: 1;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04);
}

/* ── 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.08; 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); }
.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.12; }
.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.12; }
.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: 1; letter-spacing: -0.04em; }
.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;
  background: linear-gradient(var(--rule-light-subtle), var(--rule-light-subtle)) top center / calc(100% - 2 * var(--pad-x)) 1px no-repeat;
  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 .kicker { max-width: none; align-self: flex-start; }
.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.12; 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; }
}

/* ── Journal index ───────────────────────────────────────────────── */
.jx-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.jx-intro { max-width: 640px; color: var(--muted-body); }
.jx-section { padding-bottom: clamp(56px, 7vw, 96px); }
.jx-label { color: var(--muted-label); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.jx-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.jx-lead:hover { text-decoration: none; }
.jx-lead-media { aspect-ratio: 4 / 3; background: var(--dark-card); border-radius: 3px; overflow: hidden; }
.jx-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.jx-lead:hover .jx-lead-media img { transform: scale(1.03); }
.jx-lead-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.jx-meta { display: flex; gap: 12px; color: var(--muted-label); }
.jx-lead-title { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.jx-dek { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--muted-body); max-width: 560px; }
.jx-cta { margin-top: clamp(24px, 4vw, 48px); }
.jx-cta-inner { padding-top: var(--section-y); padding-bottom: var(--section-y); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }
.jx-cta .lead { color: var(--dark-steps); margin-bottom: 24px; }
.jx-outline { border-color: var(--paper); color: var(--paper) !important; }
.jx-outline:hover { background: var(--paper); color: var(--ink) !important; }

/* ── Depth ─────────────────────────────────────────────────────────────
   Soft layered shadows, rounded media and quiet gradients over the flat
   editorial base. Everything here only adds depth: no layout moves. */

/* Header: glass that picks up a hairline shadow once the page scrolls. */
.site-header { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.site-header.scrolled {
  background: rgba(244, 242, 237, 0.94);
  border-bottom-color: rgba(18, 18, 18, 0.06);
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.04), 0 10px 30px -18px rgba(18, 18, 18, 0.35);
}
.menu-btn { font-size: 20px; line-height: 1; display: none; align-items: center; justify-content: center; transition: background 0.15s ease, color 0.15s ease; }
.menu-btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 1100px) { .menu-btn { display: inline-flex; } }
.site-header.open { box-shadow: 0 24px 48px -24px rgba(18, 18, 18, 0.35); }

/* Buttons: a lit top edge, a soft drop, and a small lift on hover. */
.btn, .nav-cta { transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out); }
.btn-ink, .nav-cta { background: linear-gradient(180deg, #2c2c2c 0%, #121212 55%, #0a0a0a 100%); box-shadow: var(--shadow-btn); }
.btn-ink:hover, .nav-cta:hover { background: linear-gradient(180deg, #383838 0%, #1a1a1a 55%, #0e0e0e 100%); }
.btn-paper { background: linear-gradient(180deg, #ffffff 0%, #f4f2ed 100%); box-shadow: inset 0 1px 0 #fff, 0 8px 24px -10px rgba(0, 0, 0, 0.6); }
.btn-paper:hover { background: #fff; }
.btn-outline { background: rgba(255, 255, 255, 0.35); box-shadow: 0 1px 2px rgba(18, 18, 18, 0.05); }
.dark .btn-outline, .btn-outline.jx-outline { background: rgba(255, 255, 255, 0.04); }
.btn-outline:hover { background: var(--ink); }
.btn-outline.jx-outline:hover { background: var(--paper); }
.btn:hover, .nav-cta:hover { transform: translateY(-1px); }
.btn:active, .nav-cta:active { transform: translateY(0); }

/* Hero: a warm light behind the deck, and depth on its controls. */
#top { position: relative; isolation: isolate; }
#top::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -6% 0 -6% 30%;
  background:
    radial-gradient(closest-side at 62% 45%, rgba(255, 214, 170, 0.45), rgba(255, 214, 170, 0) 70%),
    radial-gradient(closest-side at 80% 70%, rgba(176, 196, 255, 0.28), rgba(176, 196, 255, 0) 70%);
  filter: blur(10px);
}
.hero .round-btn { background: rgba(255, 255, 255, 0.6); box-shadow: 0 1px 2px rgba(18, 18, 18, 0.06), 0 10px 22px -12px rgba(18, 18, 18, 0.4); transition: background 0.15s ease, color 0.15s ease, transform 0.2s var(--ease-out); }
.hero .round-btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.hero .round-btn.primary { background: linear-gradient(180deg, #2c2c2c, #0a0a0a); color: var(--paper); box-shadow: var(--shadow-btn), 0 16px 30px -14px rgba(0, 0, 0, 0.55); }
.hero .round-btn.primary:hover { background: linear-gradient(180deg, #3a3a3a, #121212); color: var(--paper); }
.deck-hint { text-wrap: balance; max-width: 340px; line-height: 1.7; }
@media (max-width: 1040px) {
  /* Single column: the deck leads, so the light sits behind it. */
  #top::before {
    inset: -40px 0 auto 0; height: min(100svh, 820px);
    background:
      radial-gradient(closest-side at 50% 45%, rgba(255, 214, 170, 0.4), rgba(255, 214, 170, 0) 75%),
      radial-gradient(closest-side at 70% 70%, rgba(176, 196, 255, 0.22), rgba(176, 196, 255, 0) 75%);
  }
}

/* Dark sections: a faint top light instead of a flat fill. */
.dark {
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(120, 140, 255, 0.035), rgba(120, 140, 255, 0) 60%),
    var(--ink);
}
.step-n {
  background: linear-gradient(180deg, #fbfaf7 20%, #8f8b83 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em; /* italic overhang stays inside the clip */
}

/* Cards: rounded, lifted, and they rise on hover. */
.card-photo, .card-text, .card-dark { border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.dark .card-photo { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
a.card-photo:hover, a.card-text:hover, a.card-dark:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card-photo > img, .card-dark .card-media img { transition: transform 0.6s var(--ease-out); }
a.card-photo:hover > img, a.card-dark:hover .card-media img { transform: scale(1.04); }
.card-dark .card-media { overflow: hidden; }
.card-dark { background: linear-gradient(180deg, #1c1c1c, #111); }
.card-text { background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%); }
.card-photo .card-cta, .card-text .card-cta, .card-dark .card-cta { transition: letter-spacing 0.3s var(--ease-out); }
a:hover .card-cta { letter-spacing: 0.3em; }

.features-shot {
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #222 0%, #0e0e0e 100%);
}
.features-shot img { box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08) inset, 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* Row lists: a rounded hover plate that reaches past the text edges. */
.involve-row, .article-row { position: relative; isolation: isolate; }
.involve-row::before, .article-row::before {
  content: ""; position: absolute; z-index: -1; inset: 6px -16px; border-radius: var(--radius-sm);
  opacity: 0; transition: opacity 0.2s ease;
}
.involve-row::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); }
.article-row::before { background: rgba(255, 255, 255, 0.7); box-shadow: 0 10px 24px -16px rgba(18, 18, 18, 0.35); }
.involve-row:hover, .article-row:hover { background: none; }
.involve-row:hover::before, .article-row:hover::before { opacity: 1; }
.involve-row .arrow { transition: transform 0.25s var(--ease-out); }
.involve-row:hover .arrow { transform: translateX(6px); }

/* Products band, CTA and QR. */
.products { background: linear-gradient(180deg, #ebe9e4 0%, var(--products) 100%); }
.qr img { border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.trust { gap: 8px; border: 0; padding: 0; }
.trust span { padding: 9px 14px; border-radius: 999px; line-height: 1; border: 1px solid var(--rule-dark-subtle); background: rgba(255, 255, 255, 0.04); }

/* Journal + articles: rounded media with depth. */
.jx-lead-media, .article-cover { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.prose figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

/* Phones: full-width actions, no QR code to a phone you're already on. */
@media (max-width: 560px) {
  .hero .btn-row .btn, .cta-actions, .cta-actions .col, .cta-actions .btn, .jx-cta .btn-row .btn, .prose .btn-row .btn { width: 100%; }
  .qr { display: none; }
  .journal-head .btn { width: auto; }
}
@media (hover: none) {
  a.card-photo:hover, a.card-text:hover, a.card-dark:hover, .btn:hover, .nav-cta:hover, .hero .round-btn:hover { transform: none; }
  a.card-photo:hover > img, a.card-dark:hover .card-media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .nav-cta, .card-photo, .card-text, .card-dark, .card-photo > img, .card-dark .card-media img, .involve-row .arrow { transition: none; }
}
@media (max-width: 560px) {
  /* Meta lines wrap on phones; drop the · separators so none dangle at a line end. */
  .article-meta, .jx-meta { gap: 6px 18px; }
  .article-meta > span:nth-child(even), .jx-meta > span:nth-child(even) { display: none; }
  .hero-copy .kicker { letter-spacing: 0.2em; }
}

/* ── Project page (/p/{code}, rendered by functions/p) ─────────────── */
.pp { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.pp-crumbs { color: var(--muted-label); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -24px; }
.pp-crumbs span { opacity: 0.5; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pp-grid:not(:has(.pp-media)) { grid-template-columns: minmax(0, 760px); }
.pp-media { position: sticky; top: 96px; aspect-ratio: 5 / 7; border-radius: var(--radius); overflow: hidden; background: var(--dark-card); box-shadow: var(--shadow-card); }
.pp-media img { width: 100%; height: 100%; object-fit: cover; }
.pp-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pp-copy .kicker { max-width: none; align-self: flex-start; }
.pp-title { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: anywhere; }
.pp-where { font-size: 22px; color: var(--muted-body); }
.pp-where a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pp-about { padding-top: 8px; }
.pp-about h2, .pp-faq h2 { color: var(--muted-label); margin-bottom: 14px; }
.pp-about p { font-size: 20px; line-height: 1.55; text-wrap: pretty; overflow-wrap: anywhere; }
.pp-about p + p { margin-top: 0.9em; }
.pp-about a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.pp-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--rule-light-subtle); border: 1px solid var(--rule-light-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.pp-facts > div { background: var(--paper); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.pp-facts dt { color: var(--muted-label); }
.pp-facts dd { margin: 0; font-size: 18px; line-height: 1.35; }
.pp-facts dd a { text-decoration: underline; text-underline-offset: 3px; }
.pp-faq { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.pp-faq details { border-bottom: 1px solid var(--rule-light-subtle); padding: 18px 0; }
.pp-faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 16px; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; font-family: var(--label); font-weight: 600; transition: transform 0.2s ease; }
.pp-faq details[open] summary::after { transform: rotate(45deg); }
.pp-faq details p { margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--muted-body); }
.pp-related { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.pp-related .jx-label { align-self: stretch; margin-bottom: 0; }
.pp-related-list { align-self: stretch; display: flex; flex-direction: column; margin-bottom: 28px; }
.pp-related-item { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule-light-subtle); }
.pp-related-item:hover { text-decoration: none; }
.pp-related-item::before { content: ""; position: absolute; z-index: -1; inset: 4px -16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.7); box-shadow: 0 10px 24px -16px rgba(18, 18, 18, 0.35); opacity: 0; transition: opacity 0.2s ease; }
.pp-related-item:hover::before { opacity: 1; }
.pp-related-item .t { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.pp-related-item .r { color: var(--muted-label); white-space: nowrap; }
.pp-closed { min-height: 60vh; justify-content: center; gap: 24px; }
@media (max-width: 860px) {
  /* One column: title and actions first, the cover after them. */
  .pp-grid { display: flex; flex-direction: column; gap: 24px; }
  .pp-copy { display: contents; }
  .pp-copy > * { order: 2; }
  .pp-copy > .kicker, .pp-title, .pp-where, .pp-copy > .btn-row { order: 0; }
  .pp-media { order: 1; position: relative; top: 0; width: 100%; aspect-ratio: 4 / 3; }
  .pp-about, .pp-facts, .pp-faq { width: 100%; }
}
@media (max-width: 560px) {
  .pp .btn-row .btn { width: 100%; }
  .pp-related-item { flex-direction: column; gap: 6px; }
  .pp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Browse (/find hub + topic pages, rendered by functions/find) ──── */
.fx { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.fx-head { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.fx-intro { max-width: 640px; color: var(--muted-body); }
.fx-group .jx-label, .fx-list .jx-label, .fx-faq .jx-label { margin-bottom: 20px; }
.fx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fx-chips a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-family: var(--display); font-size: 20px; letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(18, 18, 18, 0.1);
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.05); transition: background 0.15s ease, color 0.15s ease, transform 0.2s var(--ease-out);
}
.fx-chips a:hover { background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-1px); }
.fx-chips .n { font-family: var(--label); font-stretch: 125%; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted-label); }
.fx-chips li { display: contents; }
.fx-faq { border-top: 0; }
.fx-faq .jx-label { margin-bottom: 0; }
@media (max-width: 560px) { .fx .btn-row .btn { width: 100%; } }

/* ── Homepage questions ───────────────────────────────────────────── */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 110px; }
.faq-head .lead { color: var(--muted-body); max-width: 440px; }
.faq-head .lead a { text-decoration: underline; text-underline-offset: 3px; }
.faq-browse { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 8px; }
.faq-browse .small-label { color: var(--muted-label); }
.faq-browse .fx-chips a { font-size: 17px; padding: 9px 15px; }
.faq-list summary { font-size: clamp(20px, 1.9vw, 26px); padding-right: 4px; }
@media (max-width: 900px) {
  /* One column: the questions come before the topic chips. */
  .faq-split { display: flex; flex-direction: column; gap: 40px; }
  .faq-head { display: contents; }
  .faq-head > * { margin-bottom: -12px; }
  .faq-list { order: 1; }
  .faq-browse { order: 2; }
}
