/* ============================================================
   BookLoop — "Candlelight Library" marketing site
   Pure static CSS. Tokens mirror docs/DESIGN.md exactly.
   ============================================================ */

:root {
  --paper: #FAF4E8;
  --card: #FFFDF7;
  --ink: #33261A;
  --ink-soft: #7A6A55;
  --amber: #C6803A;
  --amber-soft: #F3E2C8;
  --sage: #7C9070;
  --wine: #9C4A3C;
  --dusk: #5A6B8C;
  --gold: #D9A441;
  --line: #E8DCC8;

  --shadow-soft: 0 4px 12px rgba(92, 68, 38, 0.10);
  --shadow-lift: 0 10px 28px rgba(92, 68, 38, 0.14);
  --glow-amber: 0 0 22px rgba(198, 128, 58, 0.35);

  --radius-card: 16px;
  --radius-input: 12px;
  --radius-sheet: 24px;
  --radius-book: 4px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --wood-a: #A8794A;
  --wood-b: #8B5F36;
  --badge-bg: #33261A;
  --badge-ink: #FAF4E8;
  --badge-ink-soft: #CBB89E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1712;
    --card: #262019;
    --ink: #F0E6D6;
    --ink-soft: #A99880;
    --amber: #E0A159;
    --amber-soft: #3A2E1E;
    --sage: #93A98A;
    --wine: #C4705F;
    --dusk: #8B9DBF;
    --gold: #E8BC5E;
    --line: #3A3127;

    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.35);
    --glow-amber: 0 0 22px rgba(224, 161, 89, 0.30);

    --wood-a: #4E3B26;
    --wood-b: #3B2C1B;
    --badge-bg: #262019;
    --badge-ink: #F0E6D6;
    --badge-ink-soft: #A99880;
  }
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--dusk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

img, svg { max-width: 100%; }

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.muted { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber-soft); color: var(--ink); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 30px; height: 30px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber); }

.nav-cta {
  background: var(--amber);
  color: #FFFDF7 !important;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 90% 65% at 50% -12%, var(--amber-soft), transparent 70%),
    var(--paper);
}

.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero h1 em { font-style: italic; color: var(--amber); }

.hero .lede {
  max-width: 46ch;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.coming-soon {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.coming-soon::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.5rem;
  vertical-align: 1px;
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- Store badges (pure CSS) ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem 1.35rem 0.6rem 1.1rem;
  min-width: 190px;
  text-decoration: none;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: var(--badge-ink);
}
.badge .badge-copy { display: flex; flex-direction: column; line-height: 1.25; }
.badge .badge-pre {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--badge-ink-soft);
}
.badge .badge-store {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Apple glyph: circle + bite + leaf, in CSS */
.glyph-apple {
  position: relative;
  width: 26px; height: 30px;
  flex: none;
}
.glyph-apple::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 22px;
  background: var(--badge-ink);
  border-radius: 46% 46% 48% 48% / 52% 52% 60% 60%;
  -webkit-mask: radial-gradient(circle 6px at 27px 9px, transparent 6px, #000 6.5px);
  mask: radial-gradient(circle 6px at 27px 9px, transparent 6px, #000 6.5px);
}
.glyph-apple::after {
  content: "";
  position: absolute;
  top: 0; left: 12px;
  width: 9px; height: 8px;
  background: var(--badge-ink);
  border-radius: 80% 0 80% 0;
  transform: rotate(8deg);
}

/* Play glyph: layered triangle in brand colors, in CSS */
.glyph-play {
  position: relative;
  width: 24px; height: 28px;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
}
.glyph-play::before {
  content: "";
  position: absolute;
  top: 2px; left: 3px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--badge-ink);
}
.glyph-play::after {
  content: "";
  position: absolute;
  top: 8px; left: 9px;
  width: 16px; height: 12px;
  background: linear-gradient(90deg, transparent 45%, var(--badge-bg) 46%);
  transform: rotate(-45deg);
  opacity: 0.55;
}

/* ---------- Phone frame + scenes ---------- */

.phone {
  position: relative;
  width: min(280px, 78vw);
  margin-inline: auto;
  background: var(--card);
  border: 10px solid var(--ink);
  border-radius: 42px;
  box-shadow: var(--shadow-lift);
  padding: 2.4rem 1rem 1.6rem;
  aspect-ratio: 9 / 17;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .phone { border-color: #0f0c09; }
}
.phone::before { /* notch pill */
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 16px;
  background: var(--ink);
  border-radius: 999px;
  opacity: 0.9;
}
@media (prefers-color-scheme: dark) {
  .phone::before { background: #0f0c09; }
}

.phone .screen-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.mini-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.8rem 0.9rem;
}

/* --- Bookshelf scene --- */

.shelf { display: flex; flex-direction: column; gap: 0.35rem; }

.shelf-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 6px 0;
  min-height: 74px;
}

.shelf-rail {
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--wood-a), var(--wood-b));
  box-shadow: 0 3px 5px rgba(92, 68, 38, 0.25);
  margin-bottom: 0.55rem;
}

.book {
  width: 17px;
  height: 58px;
  border-radius: var(--radius-book);
  margin-bottom: -2px; /* books sit ON the rail */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(0,0,0,0.14));
  box-shadow: inset 3px 0 0 rgba(0,0,0,0.22), 0 2px 3px rgba(92,68,38,0.28);
  transition: transform 200ms ease;
}
.book:hover { transform: translateY(-4px); }

.book--amber { background-color: var(--amber); }
.book--sage  { background-color: var(--sage); }
.book--wine  { background-color: var(--wine); }
.book--dusk  { background-color: var(--dusk); }
.book--gold  { background-color: var(--gold); }

.book--tall  { height: 66px; }
.book--short { height: 50px; }
.book--wide  { width: 22px; }
.book--lean  { transform: rotate(7deg); transform-origin: bottom right; margin-left: 3px; }
.book--lean:hover { transform: rotate(7deg) translateY(-2px); }

.book--reading {
  height: 70px;
  width: 20px;
  box-shadow: inset 3px 0 0 rgba(0,0,0,0.22), var(--glow-amber);
}

.book-trophy {
  position: relative;
}
.book-trophy::after {
  content: "🏆";
  position: absolute;
  top: -10px; right: -7px;
  font-size: 11px;
}

/* --- Spoiler-lock scene --- */

.locked-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1rem 0.9rem 0.9rem;
  overflow: hidden;
  text-align: center;
}
.locked-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  filter: blur(3px);
  opacity: 0.7;
  margin-bottom: 0.8rem;
}
.locked-lines span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line), var(--amber-soft), var(--line));
}
.locked-lines span:nth-child(2) { width: 86%; }
.locked-lines span:nth-child(3) { width: 64%; }

.lock-emoji { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; }
.lock-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.lock-sub { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

.locked-card:hover .lock-emoji { animation: wiggle 320ms ease; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

/* --- Streak scene --- */

.streak {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0 0.4rem;
}
.streak-ember {
  position: relative;
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 72%);
}
.streak-ember::before { /* glow ring at 7/30 days */
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.65;
  box-shadow: 0 0 14px var(--gold), inset 0 0 10px rgba(217, 164, 65, 0.35);
}
.streak-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
}
.streak-label { font-size: 0.8rem; color: var(--ink-soft); }

.streak-days {
  display: flex;
  gap: 6px;
  margin-top: 0.2rem;
}
.streak-days i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.streak-days i.off { background: var(--line); }

/* --- Club discussion scene --- */

.club-thread { display: flex; flex-direction: column; gap: 0.55rem; }

.club-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.club-msg .avatar {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #FFFDF7;
}
.avatar--amber { background: var(--amber); }
.avatar--sage  { background: var(--sage); }
.avatar--wine  { background: var(--wine); }
.avatar--dusk  { background: var(--dusk); }
.avatar--ring  { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold); }

.club-bubble {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
  line-height: 1.4;
}
.club-bubble .who {
  display: block;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--amber);
}
.club-chip {
  align-self: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* --- Progress (candle/bookmark) scene --- */

.progress-scene { padding: 0.4rem 0 0; }
.progress-book-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  margin: 0.9rem 0 0.5rem;
}
.progress-fill {
  position: relative;
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--gold));
}
.progress-fill::after { /* bookmark tab at the fill edge */
  content: "";
  position: absolute;
  right: -3px; top: -7px;
  width: 10px; height: 26px;
  background: var(--wine);
  border-radius: 2px 2px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  box-shadow: var(--shadow-soft);
}
.progress-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--amber);
}

/* ---------- Feature sections ---------- */

.features { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }

.feature-copy h2 { max-width: 18ch; }
.feature-copy p { color: var(--ink-soft); max-width: 48ch; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.feature-list li { padding-left: 1.5rem; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--amber);
}

@media (min-width: 800px) {
  .feature { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  .feature--flip .feature-copy { order: 2; }
  .feature--flip .feature-visual { order: 1; }
}

/* ---------- How it works ---------- */

.how {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(ellipse 75% 90% at 50% 115%, var(--amber-soft), transparent 70%),
    var(--paper);
  text-align: center;
}
.how h2 { margin-bottom: 0.4rem; }
.how > .container > p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 2.6rem;
  text-align: left;
}
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }

.how-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.how-card .step {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.how-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Closing CTA ---------- */

.closing {
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}
.closing .card-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-soft);
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem);
}
.closing p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
  background: var(--card);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer .wordmark { font-size: 1.15rem; }
.site-footer p { color: var(--ink-soft); font-size: 0.92rem; max-width: 34ch; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Prose pages (privacy, terms, support) ---------- */

.page-head {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, var(--amber-soft), transparent 70%),
    var(--paper);
}
.page-head p { color: var(--ink-soft); max-width: 58ch; }

.prose {
  padding: 1rem 0 clamp(3rem, 7vw, 5rem);
  max-width: 72ch;
}
.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.4em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.3rem; color: var(--ink); }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--ink); }
.prose .effective {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- FAQ (support) ---------- */

.faq { max-width: 72ch; padding-bottom: 2rem; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 160ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--amber);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--amber); }
.faq .answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.faq .answer p:last-child { margin-bottom: 0; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
  max-width: 72ch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.contact-card h2 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */

.lost {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}
.lost .book-pile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.6rem;
}

/* ---------- Club landing page (share link) ---------- */

.club-landing {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--amber-soft), transparent 70%),
    var(--paper);
}
.club-landing > .container { text-align: center; }
.club-landing .eyebrow { margin-bottom: 1.6rem; }

.club-panel { display: block; }

.club-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  max-width: 640px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
}
@media (min-width: 640px) {
  .club-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}

/* Book cover — a real object with a spine edge, 2:3 aspect */
.club-cover {
  position: relative;
  width: 132px;
  aspect-ratio: 2 / 3;
  flex: none;
  border-radius: var(--radius-book);
  overflow: hidden;
  background: var(--amber-soft);
  box-shadow: inset 3px 0 0 rgba(0,0,0,0.22), var(--shadow-soft);
}
.club-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.club-cover--spine {
  display: grid;
  place-items: center;
  padding: 0.6rem;
  background: linear-gradient(180deg, var(--dusk), color-mix(in srgb, var(--dusk) 70%, #000));
}
.club-spine-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  color: #FFFDF7;
  text-align: center;
}

.club-body { width: 100%; }

.club-name {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin: 0 0 0.35rem;
}
.club-book {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--amber);
  margin: 0 0 0.7rem;
}
.club-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 1rem;
  max-width: 46ch;
}
.club-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.club-count-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 8px var(--sage);
}

.club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 640px) { .club-actions { justify-content: flex-start; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius-input);
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn-primary {
  background: var(--amber);
  color: #FFFDF7;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  color: #FFFDF7;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  color: var(--amber);
  border-color: var(--amber);
  transform: translateY(-1px);
}

.club-fineprint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 1.3rem 0 0;
  max-width: 44ch;
}

.club-status {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Loading skeleton */
.club-skel {
  position: relative;
  overflow: hidden;
  background: var(--amber-soft);
  border-radius: 8px;
}
.club-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 60%, transparent), transparent);
  animation: club-shimmer 1.3s infinite;
}
.club-skel-line {
  display: block;
  height: 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
}
.club-card--skeleton .club-body { display: block; }
@keyframes club-shimmer {
  100% { transform: translateX(100%); }
}

.club-missing { padding: clamp(1.5rem, 5vw, 3rem) 0; }
.club-missing .book-pile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.6rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .nav-links { gap: 0.9rem; font-size: 0.9rem; }
  .nav-links li.hide-sm { display: none; }
  .badge { min-width: 168px; padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
