/* TheClubShelf — base styles */

:root {
  --cream:        #FBF5E9;
  --cream-dim:    #F3EADA;
  --ink:          #2C2620;
  --ink-soft:     #5B5245;
  --forest:       #2F5138;
  --forest-dark:  #24402C;
  --forest-tint:  #E4EEE3;
  --rust:         #B5522F;
  --rust-dark:    #9A4426;
  --gold:         #C99A3E;
  --line:         #E4D9C4;
  --card:         #FFFFFF;
  --shadow: 0 1px 2px rgba(44,38,32,.04), 0 8px 24px rgba(44,38,32,.06);
  --shadow-lg: 0 12px 32px rgba(44,38,32,.10), 0 2px 8px rgba(44,38,32,.06);
  --shadow-hover: 0 20px 44px rgba(44,38,32,.14), 0 4px 12px rgba(44,38,32,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --footer-bg:    #241F18;
  --footer-line:  rgba(251,245,233,.12);
  --footer-ink:   #F3EADA;
  --footer-ink-soft: rgba(243,234,218,.64);
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Pushes the footer to the bottom of the viewport on short pages instead
   of leaving it floating right under sparse content. */
main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

h1, h2, h3, .display {
  color: var(--ink);
  margin: 0;
}

/* Oversized condensed treatment for real headlines only — h3 covers small
   component titles (card/section labels) where a condensed display face
   would hurt legibility, so it keeps the warmer serif instead. */
h1, h2, .display {
  font-family: "Barlow Condensed", "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons — two minimal pills, repeated consistently: a quiet outline
   action paired with one filled action, always in that order. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--forest);
  color: #fff;
}
.btn-primary:hover { background: var(--forest-dark); box-shadow: var(--shadow-hover); }

.btn-rust {
  background: var(--rust);
  color: #fff;
}
.btn-rust:hover { background: var(--rust-dark); box-shadow: var(--shadow-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--cream-dim); box-shadow: var(--shadow); }

.btn-lg { padding: 15px 28px; font-size: 15.5px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
  .btn:hover { transform: none; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 1.5px solid transparent;
}
.link-arrow:hover { border-color: var(--forest); }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 233, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
}
.brand svg { flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-nav .nav-links a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn-ghost { border-color: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* No base `display` here on purpose — [hidden] must stay in control until
   the 900px breakpoint explicitly turns this into a flex column, otherwise
   an unconditional `display: flex` would override the browser's default
   `[hidden] { display: none }` UA rule and show the menu on desktop too. */
.mobile-menu {
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
/* :not(.btn) so the pill-styled "Sign up free" link keeps its own button
   colors/shape — this selector's specificity would otherwise beat .btn-primary's
   and repaint it with plain-link styling (dark text, an underline border). */
.mobile-menu a:not(.btn) {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu form { margin-top: 10px; }
.mobile-menu .btn-block { margin-top: 4px; }
.mobile-menu-divider { height: 10px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* Organic gradient blobs, layered behind the hero content */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  filter: blur(60px);
  opacity: .55;
  animation: blob-float 16s ease-in-out infinite;
}
.blob-a {
  width: 560px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(201,154,62,.45), rgba(201,154,62,0) 70%);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}
.blob-b {
  width: 420px;
  height: 420px;
  top: 140px;
  right: 120px;
  background: radial-gradient(circle at 60% 40%, rgba(181,82,47,.35), rgba(181,82,47,0) 70%);
  border-radius: 60% 40% 30% 70% / 55% 65% 35% 45%;
  animation-delay: -6s;
}
.blob-c {
  width: 380px;
  height: 380px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle at 40% 60%, rgba(47,81,56,.30), rgba(47,81,56,0) 70%);
  border-radius: 35% 65% 55% 45% / 60% 45% 55% 40%;
  animation-delay: -11s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest-tint);
  color: var(--forest-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
}

.hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.2rem);
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--forest);
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-search {
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 8px;
  max-width: 460px;
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: #A79E8E; }

.hero-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Hero visual: overlapping "book" cards + shelf */
.hero-visual {
  position: relative;
  height: 440px;
}
.shelf-glow {
  position: absolute;
  inset: -60px -40px auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(201,154,62,.20) 0%, rgba(201,154,62,0) 70%);
}

.book-stack {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding-bottom: 34px;
}
.spine {
  width: 46px;
  border-radius: 5px 5px 3px 3px;
  box-shadow: inset -6px 0 10px rgba(0,0,0,.12), var(--shadow);
  position: relative;
}
.spine::after {
  content: "";
  position: absolute;
  top: 14px; bottom: 14px; left: 10px;
  width: 2px;
  background: rgba(255,255,255,.35);
}
.spine.h1 { height: 210px; background: var(--forest); }
.spine.h2 { height: 260px; background: var(--rust); }
.spine.h3 { height: 235px; background: var(--gold); }
.spine.h4 { height: 195px; background: #6E5A46; }
.spine.h5 { height: 245px; background: #3E6B8C; }
.spine.h6 { height: 175px; background: var(--forest-dark); }

/* A board game box on the shelf — wider and shorter than a book spine, with
   a horizontal "lid seam" instead of the books' vertical binding highlight. */
.spine.is-box {
  width: 92px;
  border-radius: 6px;
}
.spine.is-box::after {
  top: 22px; bottom: auto; left: 12px; right: 12px;
  width: auto; height: 2px;
}
.spine.h2.is-box { height: 150px; }
.spine.h5.is-box { height: 140px; }

.spine { transition: filter .3s var(--ease), transform .3s var(--ease); }
.book-stack:hover .spine { filter: saturate(1.35) brightness(1.04); }
.spine:hover { transform: translateY(-6px); }

.floating-card {
  position: absolute;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  width: 210px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.floating-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-hover);
}
.floating-card.fc-1 { top: 6px; left: -6px; }
.floating-card.fc-2 { bottom: 40px; right: -18px; }
.floating-card .fc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}
.floating-card .fc-title {
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.floating-card .fc-meta { font-size: 13px; color: var(--ink-soft); }
.avatar-row { display: flex; margin-top: 10px; }
.avatar-row span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -6px;
}
.avatar-row span:first-child { margin-left: 0; }

/* Value strip */
.value-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-dim);
}
.value-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 34px 28px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.value-item .vi-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.value-item strong { display: block; font-size: 15px; }
.value-item span { font-size: 13.5px; color: var(--ink-soft); }

/* Section scaffolding */
.section { padding: 96px 0; }
.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* How it works — pinned heading, steps reveal alongside as you scroll */
.story-section .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.story-pin {
  position: sticky;
  top: 110px;
}
.story-pin .section-head { margin: 0; text-align: left; max-width: 40ch; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.step-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.step-num {
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 22px; margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 980px) {
  .story-section .container { grid-template-columns: 1fr; }
  .story-pin { position: static; }
  .story-pin .section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
}

/* Scroll-reveal: content fades/lifts into place as it enters the viewport,
   toggled by the IntersectionObserver in footer.php. The hiding rule only
   applies once `.reveal-ready` is set by that script, so content stays
   fully visible by default if JS or IntersectionObserver is unavailable. */
.section-head,
.step-card,
.club-card,
.lifestyle-card,
.cta-banner {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.reveal-ready .section-head:not(.is-visible),
html.reveal-ready .step-card:not(.is-visible),
html.reveal-ready .club-card:not(.is-visible),
html.reveal-ready .lifestyle-card:not(.is-visible),
html.reveal-ready .cta-banner:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .section-head:not(.is-visible),
  html.reveal-ready .step-card:not(.is-visible),
  html.reveal-ready .club-card:not(.is-visible),
  html.reveal-ready .lifestyle-card:not(.is-visible),
  html.reveal-ready .cta-banner:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Club showcase */
.showcase-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.club-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.club-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-hover);
}
.club-card-cover {
  height: 96px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
}
.club-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.club-card:hover .club-card-cover::after { opacity: 1; }
.club-card:hover .club-card-cover { filter: saturate(1.3) hue-rotate(6deg); }
.club-card-cover .tag {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.club-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.club-card-body h3 { font-size: 17px; }
.currently-reading {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--cream-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.currently-reading .book-thumb {
  width: 28px; height: 38px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: filter .3s ease, transform .3s ease;
}
.club-card:hover .currently-reading .book-thumb { filter: saturate(1.4) hue-rotate(8deg); transform: translateY(-2px); }
.currently-reading .cr-label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--forest); }
.currently-reading .cr-title { font-size: 13.5px; font-weight: 600; }
.club-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: auto;
}
.showcase-foot { text-align: center; margin-top: 44px; }

/* Lifestyle imagery — warm, aspirational placeholder "photography" cards
   (duotone gradient + grain) standing in for real lifestyle photos. */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 20px;
}
.lifestyle-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: var(--shadow);
}
.lifestyle-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-hover); }
.lifestyle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--lc-gradient);
}
.lifestyle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.lifestyle-card.lc-1 { grid-row: span 2; --lc-gradient: linear-gradient(155deg, #C97A3E 0%, #B5522F 55%, #6E3420 100%); }
.lifestyle-card.lc-2 { --lc-gradient: linear-gradient(155deg, #5B8C6E 0%, #2F5138 65%, #1C3220 100%); }
.lifestyle-card.lc-3 { --lc-gradient: linear-gradient(155deg, #E3B65C 0%, #C99A3E 55%, #8C6A22 100%); }
.lifestyle-card.lc-4 { grid-column: span 2; --lc-gradient: linear-gradient(120deg, #4C7C9C 0%, #3E6B8C 55%, #23425A 100%); }
.lc-caption { position: relative; }
.lc-caption .lc-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 6px;
}
.lc-caption .lc-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  max-width: 22ch;
}

@media (max-width: 900px) {
  .lifestyle-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }
  .lifestyle-card.lc-1 { grid-row: span 1; grid-column: span 2; }
  .lifestyle-card.lc-4 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .lifestyle-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .lifestyle-card.lc-1, .lifestyle-card.lc-4 { grid-column: auto; grid-row: auto; }
  .lifestyle-card { height: 200px; }
}

/* CTA banner */
.cta-banner {
  background: var(--forest);
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,154,62,.25), transparent 55%);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.1rem); max-width: 16ch; position: relative; }
.cta-banner p { color: rgba(255,255,255,.78); margin-top: 12px; font-size: 15.5px; position: relative; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; position: relative; }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Footer — a rich, dark, multi-column section in its own right, not an
   afterthought under the last block of content. */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  color: var(--footer-ink-soft);
  padding: 72px 0 28px;
  margin-top: 40px;
}
.footer-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 640px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,154,62,.18), rgba(201,154,62,0) 70%);
  pointer-events: none;
}
.site-footer .container { position: relative; }
.site-footer .brand { color: var(--footer-ink); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--footer-line);
}
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--footer-ink-soft); font-size: 14px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--footer-ink-soft);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--footer-ink);
  padding: 5px 0;
  transition: color .15s ease, transform .15s ease;
}
.footer-col a:hover { color: var(--gold); transform: translateX(2px); }

.footer-cta {
  background: rgba(251,245,233,.05);
  border: 1px solid var(--footer-line);
  border-radius: var(--radius);
  padding: 22px;
}
.footer-cta h4 {
  font-family: "Barlow Condensed", "Fraunces", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--footer-ink);
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: normal;
}
.footer-cta .btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-cta .btn-ghost { border-color: var(--footer-line); color: var(--footer-ink); }
.footer-cta .btn-ghost:hover { background: rgba(251,245,233,.08); border-color: var(--footer-ink-soft); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--footer-ink-soft);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: none; grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .value-strip .container { grid-template-columns: 1fr; gap: 20px; }
  .showcase-scroller { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; align-items: center; }
  .cta-banner h2 { max-width: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-menu:not([hidden]) { display: flex; }
  .showcase-scroller { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 44px 28px; border-radius: 18px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 56px; }
  .hero-visual { height: 220px; }
  .shelf-glow { width: 240px; height: 240px; }
  .book-stack { gap: 8px; padding-bottom: 0; align-items: center; }
  .spine { width: 30px; }
  .spine.h1 { height: 110px; }
  .spine.h2 { height: 140px; }
  .spine.h3 { height: 120px; }
  .spine.h6, .spine.h4 { display: none; }
  .spine.is-box { width: 62px; }
  .spine.h2.is-box { height: 95px; }
  .spine.h5.is-box { height: 90px; }
  .floating-card { width: 178px; padding: 12px 14px; }
  .floating-card.fc-1 { top: 4px; left: 0; }
  .floating-card.fc-2 { display: none; }
  .floating-card .fc-title { font-size: 13.5px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
}

/* Alerts */
.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
}
.alert + .alert { margin-top: 10px; }
.alert-error {
  background: #FBEAE6;
  border-color: #EFC5B8;
  color: #8C3B24;
}
.alert-success {
  background: var(--forest-tint);
  border-color: #BFDABE;
  color: var(--forest-dark);
}

/* Auth / simple form pages */
.auth-shell {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.auth-card .auth-sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-control {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--card);
}
.form-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.btn-block { width: 100%; }
.auth-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.auth-foot a { color: var(--forest); font-weight: 600; }

/* Simple content page (dashboard / account placeholders) */
.page-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}
.page-shell h1 { font-size: 30px; margin-bottom: 10px; }
.page-shell .page-sub { color: var(--ink-soft); margin-bottom: 36px; }

/* Title + persistent action buttons, top-right — used on the dashboard so
   "Find a club" / "Start a club" are always reachable, not just when the
   member list is empty. */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.page-head .page-sub { margin-bottom: 0; }
.page-head-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 560px) {
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.info-card h3 { font-size: 16px; margin-bottom: 6px; }
.info-card p { color: var(--ink-soft); font-size: 14.5px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-verified { background: var(--forest-tint); color: var(--forest-dark); }
.badge-unverified { background: #FBEAE6; color: #8C3B24; }

/* Profile */
.avatar-circle {
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.profile-header h1 { margin-bottom: 4px; }
.star-rating { color: var(--gold); letter-spacing: 1px; font-size: 15px; }
.review-card {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.review-card:first-child { border-top: none; padding-top: 0; }
.review-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.review-card p { color: var(--ink); font-size: 14.5px; line-height: 1.6; margin-top: 8px; white-space: pre-wrap; }
.review-actions { display: flex; gap: 10px; margin-top: 10px; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review-meta img { width: 28px; height: 28px; }
.review-meta a { font-weight: 600; }
.review-book { display: flex; gap: 14px; }
.review-book-cover {
  width: 52px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* Book cover thumbnails — used wherever a book title/author is shown */
.book-cover-row { display: flex; align-items: center; gap: 14px; }
.book-cover-md {
  width: 52px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: filter .3s ease, transform .3s ease;
}
.book-cover-sm {
  width: 34px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: filter .3s ease, transform .3s ease;
}
a:hover > .book-cover-md,
a:hover > .book-cover-sm,
a:hover .book-cover-md,
a:hover .book-cover-sm {
  filter: saturate(1.4) hue-rotate(8deg);
  transform: translateY(-2px);
}

/* Book autocomplete */
.book-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
}
.book-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}
.book-autocomplete-item:hover { background: var(--cream-dim); }
.book-autocomplete-item img { width: 28px; height: 40px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.book-autocomplete-noimg { width: 28px; height: 40px; background: var(--cream-dim); border-radius: 2px; flex-shrink: 0; }

.book-search-input { padding-right: 38px; }
.book-search-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: book-search-spin 0.7s linear infinite;
  pointer-events: none;
}
@keyframes book-search-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Club section layout — left sidebar + content, used on the club overview,
   schedule, votes and manage pages. */
.club-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 28px 96px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 40px;
  align-items: start;
}
.club-shell h1 { font-size: 28px; margin-bottom: 8px; }
.club-shell .page-sub { color: var(--ink-soft); margin-bottom: 28px; }
.club-main { min-width: 0; }

.club-sidenav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.club-sidenav-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.club-sidenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.club-sidenav a svg { flex-shrink: 0; opacity: .8; }
.club-sidenav a:hover { background: var(--cream-dim); color: var(--ink); }
.club-sidenav a.active { background: var(--forest-tint); color: var(--forest-dark); }
.club-sidenav a.active svg { opacity: 1; }

@media (max-width: 760px) {
  .club-shell { grid-template-columns: 1fr; padding: 20px 20px 72px; gap: 20px; }
  .club-sidenav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; }
  .club-sidenav-title { display: none; }
  .club-sidenav a { flex-shrink: 0; }
}

/* Quick stats row on the club overview page */
.club-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.club-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 100px;
}
.club-stat strong { display: block; font-size: 22px; font-family: "Fraunces", Georgia, serif; }
.club-stat span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }

/* Member avatar rows */
.member-row { display: flex; align-items: center; gap: 10px; }
.member-row img { flex-shrink: 0; }

/* Month calendar (schedule page) */
.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.month-calendar-head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 6px;
}
.month-calendar-cell {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.month-calendar-cell.is-empty { border-color: transparent; }
.month-calendar-cell.is-today { border-color: var(--forest); background: var(--forest-tint); }
.month-calendar-daynum { font-weight: 700; color: var(--ink-soft); }
.month-calendar-cell.is-today .month-calendar-daynum { color: var(--forest-dark); }
.month-calendar-event {
  display: block;
  background: var(--forest);
  color: #fff;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-calendar-event:hover { background: var(--forest-dark); }
@media (max-width: 560px) {
  .month-calendar-cell { min-height: 44px; font-size: 11px; }
  .month-calendar-event { white-space: normal; }
}

/* Embedded venue map on the meeting page */
.map-embed {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* Comments (meetings, votes, ...) */
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment:first-child { padding-top: 0; border-top: none; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-meta strong { font-size: 14px; }
.comment-time { font-size: 12.5px; color: var(--ink-soft); }
.comment-body { font-size: 14.5px; line-height: 1.6; }
.comment-body p { margin: 0; }
.comment-body ul { margin: 6px 0; padding-left: 22px; }
.comment-body code {
  background: var(--cream-dim);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.comment-body blockquote {
  margin: 8px 0;
  padding: 2px 16px;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
}
.comment-body blockquote p { margin: 0; }
.comment-deleted-text { color: var(--ink-soft); font-style: italic; }
.comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.comment-delete-form { display: inline; margin: 0; }
.btn-link-danger { color: var(--rust); }
.comment-replies {
  margin: 10px 0 0 20px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}
.comment-reply { padding: 10px 0; }
.comment-reply:first-child { padding-top: 0; }
.btn-link-small {
  background: none;
  border: none;
  padding: 0;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-link-small:hover { text-decoration: underline; }

.comment-editor { margin-top: 12px; position: relative; }
.comment-reply-editor { margin-left: 20px; }
.comment-editor-toolbar { display: flex; gap: 4px; margin-bottom: 6px; }
.comment-editor-toolbar button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-editor-toolbar button:hover { background: var(--cream-dim); }
/* An author-stylesheet `display` always beats the UA default `[hidden]{display:none}`
   rule regardless of selector specificity, so the grid display below needs an
   explicit [hidden] override or the picker never actually hides. */
.comment-emoji-picker[hidden] { display: none; }
.comment-emoji-picker {
  position: absolute;
  z-index: 20;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  max-width: 280px;
}
.comment-emoji-option {
  background: none;
  border: none;
  font-size: 18px;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}
.comment-emoji-option:hover { background: var(--cream-dim); }
