/* Shared theme for directory, journal and supporting pages.
   Page-specific layout and content remain in their existing templates. */
:root {
  --primary: #392b31;
  --accent: #a85439;
  --text: #392b31;
  --text-secondary: #6b6162;
  --text-tertiary: #756b69;
  --bg: #faf7f2;
  --bg-soft: #f0e9e0;
  --bg-warm: #f0e9e0;
  --bg-dark: #392b31;
  --cream: #fffaf4;
  --border: #e0d7ce;
  --border-strong: #bfb1a7;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
body main { overflow-wrap: anywhere; }
body main table { table-layout: fixed; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body :is(h1, h2) {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
body :is(h3, .featured-name, .club-name, .event-name) {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}
body :is(.eyebrow, .about-tag, .category-title, .stat-label, .featured-eyebrow, .club-events-label, .share-label) {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
body .about-tag { border: 0; border-radius: 0; padding: 0; background: none; }
body .lift { font-weight: inherit; font-style: italic; color: var(--accent); }

body > nav:not(.crumbs) {
  position: sticky;
  inset: 0 0 auto;
  height: auto;
  background: var(--bg);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
}
body .nav-inner { width: 100%; max-width: 1120px; height: 76px; min-height: 76px; margin-inline: auto; }
body .logo { font: 700 25px Georgia, serif; letter-spacing: -1px; color: var(--primary); }
body :is(.logo-icon, .logo-icon img) { width: 27px; height: 27px; }
body .nav-links { gap: 28px; }
body .nav-links a { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
body .nav-links a:hover { color: var(--accent); }

body :is(.btn-primary, .btn-ghost, .btn-chat, .official-button, .app-btn) {
  min-height: 44px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 600 13px/1.3 Arial, sans-serif;
  box-shadow: none;
  transform: none;
}
body :is(.btn-primary, .btn-chat, .official-button, .app-btn),
body .nav-links a.btn-primary { color: var(--cream); background: var(--accent); }
body .btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--primary); }
body :is(.btn-primary, .btn-chat, .official-button, .app-btn):hover { background: #90442e; transform: none; box-shadow: none; }
body .mobile-menu { background: rgba(57,43,49,.3); }
body .mobile-menu-inner { background: var(--bg); border-left: 1px solid var(--border); }
body .mobile-menu a { color: var(--primary); font-size: 16px; font-weight: 500; }

body :is(.hero, .cat-hero, .club-detail-hero, .blog-hero) {
  background: var(--bg);
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}
body .hero { padding: 64px 24px 56px; }
body :is(.hero-inner, .section-inner, .section-header, .cta-inner, .footer-inner, .browse-grid, .reading-grid, .related-club-grid, .more-articles-inner) {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}
body :is(.hero h1, .cat-hero h1, .club-detail-hero h1, .blog-hero h1, .about h1, .article-header h1) {
  color: var(--primary);
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
body :is(.hero-sub, .cat-intro, .club-detail-hero .lede, .blog-hero > p) {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}
body .hero-inner:has(.hero-stats) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  column-gap: 100px;
  align-items: start;
}
body .hero-inner:has(.hero-stats) > .eyebrow { grid-column: 1 / -1; margin-bottom: 24px; }
body .hero-inner:has(.hero-stats) > h1 { grid-column: 1; grid-row: 2; margin: 0 0 22px; }
body .hero-inner:has(.hero-stats) > .hero-sub { grid-column: 1; grid-row: 3 / span 2; margin-bottom: 0; }
body .hero-stats { grid-column: 2; grid-row: 2; display: flex; gap: 40px; margin: 8px 0 24px; padding-bottom: 25px; border: 0; border-bottom: 1px solid var(--border); }
body .stat-number { font: 400 36px/1.1 Georgia, serif; color: var(--primary); }
body .stat-label { color: var(--text-secondary); font-size: 10px; margin-top: 8px; }
body .hero-inner:has(.hero-stats) > .waitlist-form { grid-column: 2; grid-row: 3; }
body .hero-inner:has(.hero-stats) > .waitlist-note { grid-column: 2; grid-row: 4; margin-top: 12px; }
body :is(.waitlist-form, .post-signup form, .about-signup form) { display: flex; gap: 8px; }
body :is(.waitlist-form, .post-signup form, .about-signup form) input {
  min-width: 0; min-height: 44px; flex: 1; width: 100%;
  padding: 12px; border: 1px solid var(--border-strong); border-radius: 4px;
  background: var(--cream); color: var(--primary); font: 14px Arial, sans-serif;
}
body :is(.waitlist-form, .post-signup form, .about-signup form) button {
  min-height: 44px; padding: 12px 15px; border: 0; border-radius: 4px;
  background: var(--accent); color: var(--cream); font: 600 13px Arial, sans-serif;
}
body :is(.waitlist-note, .signup-note) { font-size: 12px; color: var(--text-secondary); }

body :is(.section, .featured-section, .clubs-section, .browse-section, .faq-section, .reading-section, .related-clubs, .club-detail-section) {
  padding: 48px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
body .browse-section { background: var(--bg-soft); }
body .section-header { margin-bottom: 24px; }
body :is(.section-header h2, .browse-section h2, .faq-section h2, .reading-section h2, .related-clubs h2) {
  color: var(--primary); font: 400 clamp(28px, 3vw, 38px)/1.15 Georgia, serif; letter-spacing: -0.03em;
}
body :is(.section-header p, .browse-section p) { color: var(--text-secondary); font-size: 15px; }
body :is(.featured-grid, .browse-grid, .reading-grid, .related-club-grid, .more-articles-grid) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  background: transparent; border: 0;
}
body :is(.featured-card, .browse-link, .reading-card, .related-club, .more-card, .article-card) {
  border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0;
  background: transparent; box-shadow: none; padding: 20px 0;
}
body :is(.featured-card, .browse-link, .reading-card, .related-club, .more-card, .article-card):hover {
  background: transparent; color: var(--accent); transform: none; box-shadow: none;
}
body .browse-link { color: var(--primary); padding: 16px 0; font-size: 15px; }
body .directory-notice { padding: 14px 18px; margin-bottom: 30px; background: var(--bg-soft); border: 0; border-radius: 4px; font-size: 13px; }
body :is(.correction-box, .source-note) { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 4px; box-shadow: none; }
body .category-title { padding-bottom: 16px; border-bottom: 1px solid var(--border-strong); }
body .club-grid { border: 0; }
body .club-card { padding: 28px 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
body .club-card:hover { margin-inline: 0; padding-inline: 0; background: none; transform: none; }
body .club-card h3 { font: 400 26px/1.2 Georgia, serif; letter-spacing: -0.025em; margin-block: 12px; }
body .club-card .club-desc { max-width: 760px; font-size: 15px; line-height: 1.65; }
body :is(.club-badge, .audience-chip) { padding: 2px 6px; border: 0; border-radius: 3px; font: 11px/1.5 Arial, sans-serif; letter-spacing: 0; text-transform: none; background: var(--bg-soft); color: var(--text-secondary); }
body .badge-verified { color: var(--cream); background: var(--primary); }
body .club-neighborhood { font: 12px Arial, sans-serif; color: var(--text-tertiary); letter-spacing: 0; text-transform: none; }
body .club-events { padding-top: 16px; margin-top: 16px; border-top: 0; }
body .event-card { background: #f3eee7; border: 0; border-left: 2px solid #c3a994; border-radius: 0; padding: 16px 20px; box-shadow: none; }
body .event-name { font: 600 14px Arial, sans-serif; }
body :is(.club-source, .claim-link) { color: var(--text-secondary); }
body .claim-link:hover { color: var(--accent); }

body .cat-hero { max-width: none; padding: 52px max(24px, calc((100% - 1120px)/2)); }
body .crumbs { position: static; width: 100%; max-width: 1168px; margin: 0 auto; padding: 20px 24px; border: 0; background: var(--bg); font-size: 12px; }
body .club-detail-hero { padding: 52px 0; }
body .club-detail-main { background: var(--bg); }
body .club-facts { border-color: var(--border); }
body .blog-hero { padding: 64px max(24px, calc((100% - 1120px)/2)); text-align: left; }
body .blog-hero > :is(h1, p) { margin-left: 0; }
body .blog-hero .blog-hero-links { max-width: 760px; font-size: 14px; margin: 24px 0 0; }
body .blog-hero a { color: var(--accent); }
body .blog-listing { padding: 32px 24px 64px; }
body .blog-listing-inner { max-width: 1120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 60px; margin-inline: auto; border: 0; }
body .article-card { margin: 0; padding: 28px 0; }
body .article-card h2 { font: 400 29px/1.2 Georgia, serif; letter-spacing: -0.02em; }
body :is(.article-meta, .article-header-meta, .more-card-meta) { font: 12px Arial, sans-serif; color: var(--text-tertiary); letter-spacing: 0; }
body :is(.reveal, .reveal.visible) { opacity: 1; transform: none; animation: none; }
body .article-header { max-width: 880px; padding: 64px 24px 32px; margin-inline: auto; }
body .article-body { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 24px; font: 18px/1.8 Georgia, serif; }
body :is(.author-bio, .more-articles, .post-signup) { background: var(--bg-soft); border-top: 1px solid var(--border); }
body .post-signup { margin: 0; padding: 56px 24px; max-width: none; color: var(--primary); }
body .post-signup-inner { max-width: 760px; padding: 0; margin-inline: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body .post-signup :is(p, a) { color: var(--text-secondary); }
body .about { padding: 0 24px; background: var(--bg); }
body .about-inner { max-width: 760px; margin-inline: auto; padding: 64px 0; }
body .about-body { font: 18px/1.8 Georgia, serif; }
body .about-subtitle { color: var(--text-secondary); font-size: 17px; }
body .cta-section { background: var(--bg-soft); padding: 56px 24px; color: var(--primary); }
body .cta-section :is(h2, .lift-cream) { color: var(--primary); font-size: clamp(32px, 4vw, 48px); font-weight: 400; }
body .cta-section :is(p, .eyebrow) { color: var(--text-secondary); }
body .card { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 40px #392b3108; }

body footer { padding: 48px 24px 28px; background: var(--bg-dark); color: #e1d5d3; }
body .footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; border-color: #665157; }
body .footer-brand .logo { color: var(--cream); }
body .footer-col h4 { color: #e1d5d3; font: 600 11px Arial, sans-serif; letter-spacing: .08em; }
body .footer-col a { color: #e1d5d3; font-size: 13px; }
body .footer-bottom { font: 12px Arial, sans-serif; color: #c6b4b5; letter-spacing: 0; border-color: #665157; }

@media (max-width: 900px) {
  body .hero-inner:has(.hero-stats) { column-gap: 40px; grid-template-columns: minmax(0, 1fr) 280px; }
  body .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body .nav-inner { height: 64px; min-height: 64px; }
  body .nav-links { display: none; }
  body .hamburger { display: block; }
  body .hero { padding-block: 40px; }
  body .hero-inner:has(.hero-stats) { display: block; }
  body .hero h1 { font-size: 42px; }
  body .hero-stats { margin-top: 28px; gap: 36px; padding-bottom: 20px; }
  body :is(.featured-grid, .browse-grid, .reading-grid, .related-club-grid, .more-articles-grid, .blog-listing-inner) { grid-template-columns: 1fr; }
  body :is(.section, .clubs-section, .browse-section, .reading-section, .faq-section) { padding-block: 36px; }
  body .section-header h2 { font-size: 30px; }
  body .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
