/* ===== ROOT & GLOBAL STYLES ===== */
:root {
  --color-cream: #fbf5ed;
  --color-maroon: #7a003c;
  --color-dark-maroon: #5a002c;
  --color-burnt-orange: #d4602b;
  --color-beige: #d4b5a0;
  --color-dark-red: #a91d42;
  --color-text: #2b2b2b;
  --spacing-unit: 1rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Merriweather', serif;
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-maroon);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--color-cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 99;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-maroon);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.nav-logo a:hover {
  color: var(--color-burnt-orange);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--color-maroon);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-burnt-orange);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background-color: var(--color-maroon);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  transition: var(--transition);
}

.nav-link-cta:hover {
  background-color: var(--color-dark-maroon);
  transform: translateY(-2px);
}

.nav-link-cta::after {
  display: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-maroon);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-image-container {
  width: 100%;
  max-height: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  background: linear-gradient(135deg, var(--color-cream) 0%, #f5ead9 100%);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.bookshelf-divider {
  width: 100%;
  height: 160px;
  background: linear-gradient(to bottom, rgba(122, 0, 60, 0.05) 0%, transparent 100%);
}

.bookshelf-divider .bookshelf-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 1.5rem;
  margin: 0;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.section-icon {
  font-size: 2.8rem;
  display: inline-block;
}

/* About Section */
.about-section {
  background-color: #fdfaf5;
}

.section-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* Current Read Section */
.current-read-section {
  background-color: var(--color-cream);
}

.current-read-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.book-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(122, 0, 60, 0.1);
  align-items: center;
  max-width: 600px;
  padding: 1.5rem;
}

.book-cover {
  width: 200px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.book-cover svg {
  width: 100%;
  height: 100%;
}

.book-details h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--color-maroon);
  margin-bottom: 0.5rem;
}

.author {
  color: var(--color-burnt-orange);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.description {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.book-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  background-color: #f5ead9;
  color: var(--color-maroon);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* Meetings Section */
.meetings-section {
  background-color: #fdfaf5;
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.meeting-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(122, 0, 60, 0.1);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--color-burnt-orange);
}

.meeting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(122, 0, 60, 0.15);
}

.meeting-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.meeting-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--color-maroon);
  margin-bottom: 1rem;
}

.meeting-card p {
  color: var(--color-text);
  line-height: 1.7;
}

.inline-link {
  color: var(--color-maroon);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: var(--color-burnt-orange);
}

/* Join Section */
.join-section {
  background: linear-gradient(135deg, #fdfaf5 0%, #f5ead9 100%);
}

.join-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.join-content > p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--color-maroon);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-dark-maroon);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(122, 0, 60, 0.3);
}

.btn-secondary {
  background-color: var(--color-burnt-orange);
  color: white;
}

.btn-secondary:hover {
  background-color: #c9542b;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 96, 43, 0.3);
}

/* Social Icons Section */
.social-preview {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(122, 0, 60, 0.2);
  text-align: center;
}

.social-preview p {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Linktree Button */
.btn-linktree {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 2rem;
  background-color: var(--color-maroon);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(122, 0, 60, 0.25);
  transition: var(--transition);
}

.btn-linktree:hover {
  background-color: var(--color-dark-maroon);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(122, 0, 60, 0.35);
}

.btn-linktree svg {
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-maroon);
  color: var(--color-cream);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-cream);
}

.footer-section p {
  line-height: 1.6;
  color: rgba(251, 245, 237, 0.8);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: rgba(251, 245, 237, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--color-burnt-orange);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(251, 245, 237, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--color-cream);
}

.footer-social-link:hover {
  background-color: var(--color-burnt-orange);
  transform: scale(1.1);
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 245, 237, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(251, 245, 237, 0.7);
  font-size: 0.9rem;
}

.heart {
  display: inline-block;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-cream);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-item {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid rgba(122, 0, 60, 0.1);
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
  }

  .nav-link-cta {
    text-align: center;
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  .hamburger {
    display: flex;
  }

  /* Sections */
  .section {
    padding: 2.5rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  /* Book Card */
  .book-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .book-cover {
    width: 100%;
    max-width: 200px;
    height: 300px;
    margin: 0 auto;
  }

  /* Meetings Grid */
  .meetings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Join Actions */
  .join-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Hero */
  .hero-image-container {
    max-height: none;
    padding-top: 0;
  }

  .bookshelf-divider {
    height: 130px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Typography */
  body {
    font-size: 0.95rem;
  }

  .nav-logo a {
    font-size: 1.2rem;
  }

  .nav-logo-img {
    height: 28px;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  /* Sections */
  .section {
    padding: 1.5rem 1rem;
  }

  /* Book Card */
  .book-card {
    padding: 1rem;
  }

  .book-details h3 {
    font-size: 1.4rem;
  }

  .meta-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-image-container {
    max-height: none;
    padding-top: 0;
  }

  .bookshelf-divider {
    height: 110px;
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

/* ================================================================
   NEW STYLES — Current Read page, Newsletter, Nav active state
   ================================================================ */

/* Active nav link indicator */
.nav-link-active {
  color: var(--color-maroon) !important;
  font-weight: 700;
}

.nav-link-active::after {
  width: 100% !important;
}

/* Screen-reader-only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Current Read Widget Card (home page) ===== */
.hw-loading {
  text-align: center;
  font-style: italic;
  color: var(--color-burnt-orange);
  padding: 2rem 0;
}

.hw-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.hw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(122, 0, 60, 0.15);
}

.hw-cover {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hw-cover img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.hw-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hw-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hw-title {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  color: var(--color-maroon);
  margin: 0;
  line-height: 1.3;
}

.hw-rating {
  background: var(--color-burnt-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.hw-author {
  font-style: italic;
  color: var(--color-burnt-orange);
  font-size: 1rem;
  margin: 0;
}

.hw-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0.25rem 0 0;
}

.hw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.hw-tag {
  background: var(--color-cream);
  color: var(--color-maroon);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 0, 60, 0.15);
  font-family: 'Poppins', sans-serif;
}

.hw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.hw-cta {
  font-weight: 600;
  color: var(--color-maroon);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

.hw-card:hover .hw-cta {
  color: var(--color-burnt-orange);
}

.hw-goodreads {
  font-size: 0.85rem;
  color: var(--color-burnt-orange);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.hw-error {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hw-error p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* Widget responsive */
@media (max-width: 768px) {
  .hw-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.4rem;
    gap: 1.2rem;
  }

  .hw-cover {
    justify-content: center;
  }

  .hw-cover img {
    max-width: 140px;
  }

  .hw-header {
    justify-content: center;
  }

  .hw-tags {
    justify-content: center;
  }

  .hw-footer {
    justify-content: center;
  }

  .hw-title {
    font-size: 1.2rem;
  }
}

/* ===== Home Widget Grid (two-book layout) ===== */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hw-grid .hw-card {
  max-width: none;
}

@media (max-width: 768px) {
  .hw-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== Meetings & Events Section (home page) ===== */
.meetings-events-section {
  background: linear-gradient(135deg, #fdfaf5 0%, #f5ead9 100%);
}

.me-subsection {
  margin-bottom: 2.5rem;
}

.me-subsection:last-child {
  margin-bottom: 0;
}

.me-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--color-maroon);
  margin-bottom: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Monthly Picks grid */
.me-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.me-pick-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  background: white;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 4px 16px rgba(122, 0, 60, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.me-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(122, 0, 60, 0.14);
}

.me-pick-cover {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.me-pick-cover img {
  width: 100%;
  max-width: 100px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.me-pick-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.me-pick-title {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  color: var(--color-maroon);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.me-pick-author {
  font-style: italic;
  color: var(--color-burnt-orange);
  font-size: 0.9rem;
  margin: 0;
}

.me-pick-meeting {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--color-text);
  margin-top: 0.25rem;
}

.me-pick-notes {
  font-size: 0.85rem;
  color: #8a7d73;
  font-style: italic;
  margin-top: 0.15rem;
}

.me-pick-details-btn {
  margin-top: 0.6rem;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
}

/* Events grid */
.me-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.me-event-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(122, 0, 60, 0.08);
  border-left: 4px solid var(--color-burnt-orange);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.me-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(122, 0, 60, 0.14);
}

.me-event-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--color-maroon);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.me-event-datetime {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--color-burnt-orange);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.me-event-location {
  font-size: 0.88rem;
  color: #8a7d73;
  margin-bottom: 0.5rem;
}

.me-event-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.me-event-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.me-event-ig-btn,
.me-event-rsvp-btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.me-event-ig-btn {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
}

.me-event-ig-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.me-event-rsvp-btn {
  background: var(--color-maroon);
  color: white;
}

.me-event-rsvp-btn:hover {
  background: var(--color-dark-maroon);
  transform: translateY(-1px);
}

.me-no-events {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: #8a7d73;
  font-style: italic;
  padding: 2rem 0;
}

.me-loading {
  text-align: center;
  font-style: italic;
  color: var(--color-burnt-orange);
  padding: 1.5rem 0;
  font-family: 'Poppins', sans-serif;
}

.me-error {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--color-burnt-orange);
  padding: 1.5rem 0;
  font-style: italic;
}

/* Meetings & Events responsive */
@media (max-width: 768px) {
  .me-picks-grid,
  .me-events-grid {
    grid-template-columns: 1fr;
  }

  .me-pick-card {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1.1rem;
  }

  .me-pick-cover img {
    max-width: 80px;
  }

  .me-subheading {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .me-pick-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .me-pick-cover {
    justify-content: center;
  }

  .me-pick-cover img {
    max-width: 100px;
  }

  .me-event-actions {
    justify-content: center;
  }
}

/* ===== Newsletter Section (home page) ===== */
.newsletter-section {
  background: linear-gradient(135deg, #fdfaf5 0%, #f5ead9 100%);
}

.newsletter-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content > p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--color-text);
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  max-width: 340px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-beige);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: white;
  color: var(--color-text);
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-maroon);
  box-shadow: 0 0 0 3px rgba(122, 0, 60, 0.15);
}

.newsletter-btn {
  white-space: nowrap;
}

.newsletter-msg {
  margin-top: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.newsletter-success {
  color: #2e7d32;
  font-weight: 600;
}

.newsletter-error {
  color: #c62828;
  font-weight: 600;
}

/* ===== Page Hero (current-read.html) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-dark-maroon) 100%);
  color: var(--color-cream);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Our Team Page ===== */
.team-section {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, #fdfaf5 0%, var(--color-cream) 100%);
}

.team-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.team-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 2rem;
  width: 100%;
}

.team-card {
  position: relative;
  width: 210px;
  height: 280px;
  display: block;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.25s ease;
  outline: none;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card:focus-visible {
  outline: 3px solid rgba(122, 0, 60, 0.4);
  outline-offset: 4px;
  border-radius: 18px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.team-card.is-flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 0, 60, 0.12);
  box-shadow: 0 8px 24px rgba(122, 0, 60, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 0.75rem;
  overflow: hidden;
}

.team-card-front {
  z-index: 2;
}

.team-card-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  padding: 1rem 0.8rem;
  text-align: left;
  overflow: hidden;
}

.team-card-kaitlyn .team-photo-wrap {
  transform: translateY(12px);
}

.team-photo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.team-photo,
.team-photo-placeholder {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(122, 0, 60, 0.15);
  box-shadow: 0 8px 24px rgba(122, 0, 60, 0.12);
  background: linear-gradient(135deg, #f6eadd, #ead1c7);
  display: block;
}

.team-photo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(122, 0, 60, 0.18);
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: var(--color-maroon);
  border: 3px solid rgba(122, 0, 60, 0.2);
}

.team-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.team-role {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: 'Merriweather', serif;
  text-align: center;
}

.team-card-back-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin: 0 0 0.15rem;
  text-align: center;
}

.team-card-back-role {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--color-text);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.team-contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.team-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
}

.team-contact-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-maroon);
  font-weight: 700;
}

.team-contact-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.76rem;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.team-contact-link:hover,
.team-contact-link:focus-visible {
  color: var(--color-burnt-orange);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .team-section {
    padding: 3rem 1rem 4rem;
  }

  .team-container {
    gap: 2.5rem;
  }

  .team-row {
    gap: 1.75rem 1.5rem;
  }

  .team-card {
    width: 190px;
    height: 255px;
  }

  .team-photo,
  .team-photo-placeholder {
    width: 150px;
    height: 150px;
  }

  .team-name {
    font-size: 1.1rem;
  }

  .team-role {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .team-row {
    gap: 1.25rem;
  }

  .team-card {
    width: 150px;
    height: 220px;
  }

  .team-photo,
  .team-photo-placeholder {
    width: 120px;
    height: 120px;
  }

  .team-photo-placeholder {
    font-size: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card-inner,
  .team-photo {
    transition: none;
  }
}

/* ===== Current Book Feature Card ===== */
.cr-book-section {
  background-color: var(--color-cream);
}

.cr-book-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 28px rgba(122, 0, 60, 0.1);
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.cr-book-cover {
  width: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.cr-book-cover img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, var(--color-dark-red), var(--color-maroon));
  min-height: 320px;
  object-fit: cover;
}

.cr-book-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin-bottom: 0.3rem;
}

.cr-book-author {
  font-style: italic;
  color: var(--color-burnt-orange);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cr-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cr-tag {
  background-color: #f5ead9;
  color: var(--color-maroon);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.cr-book-summary {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.cr-meeting-info,
.cr-discussion {
  margin-bottom: 1.5rem;
}

.cr-meeting-info h3,
.cr-discussion h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--color-maroon);
  margin-bottom: 0.75rem;
}

.cr-meeting-info ul {
  list-style: none;
  padding: 0;
}

.cr-meeting-info li {
  padding: 0.3rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.cr-discussion ol {
  padding-left: 1.25rem;
}

.cr-discussion li {
  padding: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Vote Section ===== */
.cr-vote-section {
  background-color: #fdfaf5;
}

.cr-vote-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cr-vote-content > p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn:disabled,
.btn[disabled] {
  background-color: var(--color-beige);
  color: #8a7d73;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.cr-vote-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #8a7d73;
  font-style: italic;
}

/* ===== Past Reads Grid ===== */
.cr-past-section {
  background-color: var(--color-cream);
}

.cr-past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cr-past-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(122, 0, 60, 0.08);
  border-left: 4px solid var(--color-burnt-orange);
  transition: var(--transition);
}

.cr-past-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(122, 0, 60, 0.13);
}

.cr-past-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--color-maroon);
  margin-bottom: 0.25rem;
}

.cr-past-author {
  font-style: italic;
  color: var(--color-burnt-orange);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.cr-past-month {
  font-size: 0.85rem;
  color: var(--color-maroon);
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.cr-past-blurb {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* ===== Past Reads — Loading / Error States ===== */
.loading-state,
.error-state {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: #555;
  font-family: 'Poppins', sans-serif;
}

.error-state {
  color: var(--color-burnt-orange);
  font-style: italic;
}

/* ===== Skeleton Shimmer Cards ===== */
.skeleton-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(122, 0, 60, 0.08);
  border-left: 4px solid #e0d6ce;
}

.skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-title {
  height: 18px;
  width: 65%;
  margin-bottom: 0.65rem;
}

.skeleton-author {
  height: 14px;
  width: 45%;
  margin-bottom: 0.85rem;
}

.skeleton-blurb {
  height: 12px;
  width: 100%;
  margin-bottom: 0.45rem;
}

.skeleton-blurb.short {
  width: 70%;
}

@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0   50%; }
}

/* ===== NEW RESPONSIVE — 768px ===== */
@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 1rem 2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  #cr-books-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .cr-book-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .cr-book-cover {
    width: 180px;
    margin: 0 auto;
  }

  .cr-book-cover img {
    min-height: 260px;
  }

  .cr-past-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-input {
    max-width: none;
  }
}

/* ===== NEW RESPONSIVE — 480px ===== */
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.6rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .cr-book-title {
    font-size: 1.5rem;
  }

  .cr-book-cover {
    width: 150px;
  }

  .cr-book-cover img {
    min-height: 220px;
  }

  .btn-large {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

/* ===== Loading / API States ===== */
.cr-loading-msg {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #8a7d73;
  padding: 2rem 0 1rem;
}

.cr-past-month {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ===== Goodreads Button ===== */
.btn-goodreads {
  margin-top: 1rem;
  text-align: center;
}

/* ===== Error / Fallback Message ===== */
.cr-error-msg {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: var(--color-burnt-orange);
  padding: 2rem 0;
  font-style: italic;
}

/* ===== Trivia Page ===== */
.trivia-section {
  background-color: var(--color-cream);
}

.trivia-section.alt {
  background-color: #fdfaf5;
}

.trivia-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(122, 0, 60, 0.1);
  border-left: 4px solid var(--color-burnt-orange);
}

.trivia-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
}

.trivia-table thead th {
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-maroon);
  border-bottom: 2px solid #f0e1d6;
  padding: 0.75rem 0.5rem;
}

.trivia-table tbody td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #f3e7df;
  color: var(--color-text);
  font-size: 0.98rem;
}

.trivia-table tbody tr:last-child td {
  border-bottom: none;
}

.trivia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-maroon);
}

.trivia-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.trivia-meta-item {
  background: #f5ead9;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  color: var(--color-maroon);
  font-weight: 600;
}

.trivia-meta-item span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #7a675f;
  margin-top: 0.25rem;
}

.trivia-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.trivia-archive-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(122, 0, 60, 0.08);
  border-top: 3px solid var(--color-burnt-orange);
}

.trivia-archive-card h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-maroon);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.trivia-archive-card p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.trivia-empty {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #8a7d73;
  padding: 1.5rem 0;
}

/* ===== Admin Trivia ===== */
.admin-section {
  background: linear-gradient(135deg, #fdfaf5 0%, #f5ead9 100%);
}

.admin-card {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(122, 0, 60, 0.12);
}

.admin-card h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-maroon);
  margin-bottom: 1rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-maroon);
  margin-bottom: 0.35rem;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 2px solid #e8d9cd;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  transition: var(--transition);
}

.admin-field input:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--color-maroon);
  box-shadow: 0 0 0 3px rgba(122, 0, 60, 0.12);
}

.admin-field textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.admin-message {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.admin-message.success {
  color: #2e7d32;
  font-weight: 600;
}

.admin-message.error {
  color: #c62828;
  font-weight: 600;
}

@media (max-width: 768px) {
  .trivia-card {
    padding: 1.25rem;
  }

  .trivia-table thead {
    display: none;
  }

  .trivia-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #f3e7df;
    padding: 0.65rem 0;
  }

  .trivia-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-maroon);
  }

  .admin-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .trivia-meta {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== CHAPTERS PAGE ===== */
.chapters-section {
  background-color: var(--color-cream);
  padding: 3rem 0;
}

.chapters-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Chapter Block — Main Container */
.chapter-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.chapter-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate layouts */
.chapter-block.chapter--text-right {
  grid-template-columns: 1fr 1fr;
}

.chapter-block.chapter--text-right .chapter-text {
  order: 2;
}

.chapter-block.chapter--text-right .chapter-collage {
  order: 1;
}

/* Chapter Text Content */
.chapter-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-burnt-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.chapter-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-maroon);
  line-height: 1.2;
  margin: 0;
}

.chapter-year {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  opacity: 0.75;
}

.chapter-rule {
  width: 50px;
  height: 3px;
  background: var(--color-burnt-orange);
  border: none;
  margin: 0.5rem 0 0;
}

.chapter-view-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-maroon);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0;
  transition: var(--transition);
  position: relative;
}

.chapter-view-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-burnt-orange);
  transition: width 0.3s ease;
}

.chapter-view-btn:hover::after,
.chapter-view-btn:focus::after {
  width: 100%;
}

.chapter-view-btn:focus {
  outline: 2px solid var(--color-maroon);
  outline-offset: 2px;
}

.chapter-view-arrow {
  transition: transform 0.3s ease;
}

.chapter-view-btn:hover .chapter-view-arrow {
  transform: translateX(4px);
}

/* Chapter Collage Layout (3 preview images) */
.chapter-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 400px;
}

.chapter-photo {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.chapter-photo:focus {
  outline: 3px solid var(--color-maroon);
  outline-offset: -3px;
}

.chapter-photo:hover {
  transform: scale(1.03);
}

.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-photo--feature {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.chapter-photo--secondary {
  grid-column: 2 / 3;
}

.chapter-photo--secondary.chapter-photo--a {
  grid-row: 1 / 2;
}

.chapter-photo--secondary.chapter-photo--b {
  grid-row: 2 / 3;
}

/* Global hidden attribute fix to prevent display overrides */
[hidden] {
  display: none !important;
}

/* Gallery Modal (popup grid of thumbnails) */
.chapter-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.chapter-gallery-modal[hidden] {
  display: none !important;
}

body.chapter-gallery-open {
  overflow: hidden;
}

.chapter-gallery-content {
  background: white;
  border-radius: 16px;
  width: 95vw;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chapter-gallery-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e8d9cd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chapter-gallery-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin: 0;
}

.chapter-gallery-close {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color-maroon);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.chapter-gallery-close:hover,
.chapter-gallery-close:focus {
  background: rgba(122, 0, 60, 0.08);
  outline: none;
}

.chapter-gallery-close:focus {
  outline: 2px solid var(--color-maroon);
  outline-offset: -2px;
}

.chapter-gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.chapter-gallery-thumb {
  aspect-ratio: 1 / 1;
  background: none;
  border: 3px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.chapter-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-gallery-thumb:hover {
  transform: scale(1.05);
  border-color: var(--color-maroon);
}

.chapter-gallery-thumb:focus {
  outline: none;
  border-color: var(--color-maroon);
}

/* Fullscreen Modal (individual image viewer) */
.chapter-fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.chapter-fullscreen-modal[hidden] {
  display: none !important;
}

body.chapter-fullscreen-open {
  overflow: hidden;
}

.chapter-fullscreen-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  font-size: 2.8rem;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10;
  pointer-events: auto;
}

.chapter-fullscreen-close:hover,
.chapter-fullscreen-close:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.chapter-fullscreen-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.chapter-fullscreen-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
}

.chapter-fullscreen-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .chapter-block {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .chapter-photo:hover {
    transform: none;
  }

  .chapter-view-btn,
  .chapter-gallery-thumb {
    transition: none;
  }
}

/* Responsive — Tablet (768px) */
@media (max-width: 768px) {
  .chapter-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .chapter-block.chapter--text-right {
    grid-template-columns: 1fr;
  }

  .chapter-block.chapter--text-right .chapter-text,
  .chapter-block.chapter--text-right .chapter-collage {
    order: initial;
  }

  .chapter-title {
    font-size: 2rem;
  }

  .chapter-collage {
    aspect-ratio: auto;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
  }

  .chapter-photo--feature {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }

  .chapter-photo--secondary.chapter-photo--a {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .chapter-photo--secondary.chapter-photo--b {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .chapter-gallery-content {
    width: 98vw;
    max-height: 95vh;
  }

  .chapter-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .chapter-fullscreen-image {
    max-width: 95vw;
    max-height: 85vh;
  }
}

/* Responsive — Mobile (480px) */
@media (max-width: 480px) {
  .chapters-section {
    padding: 2rem 0;
  }

  .chapter-block {
    margin-bottom: 3rem;
    gap: 1.5rem;
  }

  .chapter-label {
    font-size: 0.85rem;
  }

  .chapter-title {
    font-size: 1.6rem;
  }

  .chapter-year {
    font-size: 1rem;
  }

  .chapter-collage {
    gap: 1rem;
    min-height: 280px;
    grid-template-columns: 1fr 1fr;
  }

  .chapter-gallery-content {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .chapter-gallery-header {
    padding: 1rem;
  }

  .chapter-gallery-title {
    font-size: 1.4rem;
  }

  .chapter-gallery-close {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .chapter-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
  }

  .chapter-fullscreen-close {
    width: 44px;
    height: 44px;
    font-size: 2rem;
    top: 1rem;
    right: 1rem;
  }

  .chapter-fullscreen-image {
    max-width: 100vw;
    max-height: 80vh;
  }

  .chapter-fullscreen-counter {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    bottom: 1rem;
  }
}

/* ===== Our Team Digital Book ===== */
.team-section { padding: 4rem 1.5rem 5rem; background: linear-gradient(180deg, #fdfaf5 0%, var(--color-cream) 100%); }
.team-container { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.team-book { width: min(100%, 1040px); height: 570px; perspective: 1800px; outline: none; }
.team-book:focus-visible { outline: 3px solid var(--color-burnt-orange); outline-offset: 8px; }
.team-book-page { position: relative; width: 100%; height: 100%; background: #fffdf9; border: 1px solid rgba(122, 0, 60, 0.16); box-shadow: 0 18px 42px rgba(90, 0, 44, 0.16); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; overflow: hidden; }
.team-cover-page { background: linear-gradient(135deg, var(--color-maroon), var(--color-dark-maroon)); color: var(--color-cream); text-align: center; border: 10px solid #650031; outline: 1px solid rgba(251, 245, 237, 0.3); outline-offset: -20px; }
.team-cover-logo { width: 120px; height: 120px; margin: 1.2rem 0 .5rem; object-fit: contain; }
.team-book-kicker, .team-chapter-label, .team-page-number { font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.team-cover-title { margin: 1rem 0 .35rem; font-family: 'Poppins', sans-serif; font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: .08em; line-height: 1; }
.team-cover-year { font-family: 'Merriweather', serif; font-size: 1.25rem; letter-spacing: .2em; }
.team-cover-rule { width: 120px; height: 1px; margin: 2rem 0; background: var(--color-burnt-orange); }
.team-cover-note { max-width: 330px; font-size: 1rem; }
.team-cover-open, .team-control, .team-play-control { border: 1px solid var(--color-maroon); background: transparent; color: var(--color-maroon); cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 700; transition: var(--transition); }
.team-cover-open { margin-top: 2rem; padding: .7rem 1.4rem; border-color: var(--color-cream); color: var(--color-cream); }
.team-cover-open:hover, .team-cover-open:focus-visible, .team-control:hover:not(:disabled), .team-control:focus-visible, .team-play-control:hover, .team-play-control:focus-visible { background: var(--color-maroon); color: white; }
.team-book-spread { display: grid; grid-template-columns: 1fr 1fr; height: 100%; transform-origin: left center; }
.team-book-spread.is-turning { animation: team-page-turn .75s ease both; }
.team-book-photo-page { border-right: 1px solid rgba(122, 0, 60, .12); background: linear-gradient(135deg, #fffdf9, #f8efe5); justify-content: space-between; }
.team-book-info-page { align-items: flex-start; justify-content: flex-start; padding: 4rem clamp(2rem, 6vw, 5.5rem); gap: 1rem; }
.team-book-info-page h2, .team-end-page h2 { max-width: 420px; margin: 4rem 0 0; color: var(--color-maroon); font-family: 'Poppins', sans-serif; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.15; }
.team-book-role { color: var(--color-burnt-orange); font-family: 'Merriweather', serif; font-size: 1.1rem; }
.team-photo-wrap { display: flex; justify-content: center; width: 100%; }
.team-photo, .team-photo-placeholder { width: min(300px, 34vw); height: min(300px, 34vw); border-radius: 50%; object-fit: cover; object-position: center; border: 5px solid rgba(122, 0, 60, .16); box-shadow: 0 12px 30px rgba(122, 0, 60, .16); background: linear-gradient(135deg, #f6eadd, #ead1c7); display: block; }
.team-photo-placeholder { display: flex; align-items: center; justify-content: center; color: var(--color-maroon); font-family: 'Poppins', sans-serif; font-size: 5rem; font-weight: 700; }
.team-mobile-photo { display: none; }
.team-contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; width: 100%; }
.team-contact-row { display: flex; flex-direction: column; gap: .2rem; }
.team-contact-label { color: var(--color-maroon); font-family: 'Poppins', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.team-contact-link { color: var(--color-text); overflow-wrap: anywhere; text-decoration: none; transition: color .2s ease; }
.team-contact-link:hover, .team-contact-link:focus-visible { color: var(--color-burnt-orange); text-decoration: underline; }
.team-book-controls { display: flex; align-items: center; justify-content: space-between; width: min(100%, 1040px); }
.team-control { padding: .55rem .9rem; }
.team-control:disabled { cursor: not-allowed; opacity: .35; }
.team-page-indicator { color: var(--color-maroon); font-family: 'Poppins', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .1em; }
.team-play-control { padding: .4rem .9rem; border: 0; border-bottom: 1px solid var(--color-maroon); font-size: .8rem; }
.team-end-page { text-align: center; }
.team-end-page h2 { margin-top: 1.5rem; }
.team-end-page p { font-size: 1.1rem; }
@keyframes team-page-turn { from { opacity: .4; transform: rotateY(-8deg); } to { opacity: 1; transform: rotateY(0); } }
@media (max-width: 700px) {
  .team-section { padding: 2.5rem 1rem 4rem; }
  .team-book { height: 610px; }
  .team-book-spread { display: block; }
  .team-book-photo-page { display: none; }
  .team-book-page { padding: 2rem 1.5rem; }
  .team-book-info-page { align-items: center; text-align: center; }
  .team-book-info-page h2 { margin-top: 1rem; }
  .team-mobile-photo { display: block; }
  .team-mobile-photo .team-photo, .team-mobile-photo .team-photo-placeholder { width: 210px; height: 210px; }
  .team-book-info-page .team-contact-list { text-align: left; }
  .team-book-controls { gap: .5rem; }
  .team-control { font-size: .8rem; padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .team-book-spread.is-turning { animation: none; } }

/* Refined book controls and page-turn layers */
.team-book-spread { position: relative; overflow: hidden; transform-style: preserve-3d; }
.team-book-arrow { position: absolute; top: 50%; z-index: 5; width: 58px; height: 96px; padding: 0; transform: translateY(-50%); border: 0; background: transparent; color: var(--color-maroon); cursor: pointer; font-family: 'Merriweather', serif; font-size: 3rem; line-height: 1; opacity: .48; transition: opacity .2s ease, transform .2s ease; }
.team-book-arrow-previous { left: 0; }
.team-book-arrow-next { right: 0; }
.team-book-arrow:hover, .team-book-arrow:focus-visible { opacity: 1; outline: 2px solid var(--color-burnt-orange); outline-offset: -8px; }
.team-book-arrow-previous:hover, .team-book-arrow-previous:focus-visible { transform: translate(-2px, -50%); }
.team-book-arrow-next:hover, .team-book-arrow-next:focus-visible { transform: translate(2px, -50%); }
.team-book-arrow:disabled { display: none; }
.team-turning-page { position: absolute; top: 0; bottom: 0; z-index: 4; display: flex; box-shadow: 0 0 0 rgba(90, 0, 44, 0); transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; animation-duration: var(--team-turn-duration, 820ms); animation-timing-function: cubic-bezier(.645, .045, .355, 1); animation-fill-mode: both; }
.team-turning-page::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 58%, rgba(90, 0, 44, .22)); opacity: 0; }
.team-turning-page-next { left: 50%; width: 50%; transform-origin: left center; animation-name: team-turn-next; }
.team-turning-page-previous { left: 0; width: 50%; transform-origin: right center; animation-name: team-turn-previous; }
.team-turning-page-cover-next { left: 0; width: 100%; transform-origin: left center; animation-name: team-turn-next; }
.team-turning-page-cover-previous { left: 0; width: 100%; transform-origin: right center; animation-name: team-turn-previous; }
.team-turning-page-next::after, .team-turning-page-previous::after { animation: team-turn-shadow var(--team-turn-duration, 820ms) ease both; }
@keyframes team-turn-next { 0% { transform: rotateY(0); box-shadow: 0 0 0 rgba(90, 0, 44, 0); } 48% { transform: rotateY(-92deg); box-shadow: -22px 0 28px rgba(90, 0, 44, .22); } 100% { transform: rotateY(-180deg); box-shadow: 0 0 0 rgba(90, 0, 44, 0); } }
@keyframes team-turn-previous { 0% { transform: rotateY(0); box-shadow: 0 0 0 rgba(90, 0, 44, 0); } 48% { transform: rotateY(92deg); box-shadow: 22px 0 28px rgba(90, 0, 44, .22); } 100% { transform: rotateY(180deg); box-shadow: 0 0 0 rgba(90, 0, 44, 0); } }
@keyframes team-turn-shadow { 0%, 100% { opacity: 0; } 48% { opacity: 1; } }
.team-book-controls { justify-content: center; }
.team-play-control { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--color-maroon); font-size: 1rem; line-height: 1; }
.team-play-control:hover, .team-play-control:focus-visible { background: transparent; color: var(--color-burnt-orange); outline: 2px solid var(--color-burnt-orange); outline-offset: 3px; }
@media (max-width: 700px) { .team-book-arrow { width: 48px; height: 82px; font-size: 2.6rem; } }
@media (prefers-reduced-motion: reduce) { .team-turning-page { animation: none; } .team-turning-page::after { display: none; } }


/* ==========================================================================
   Past Events — scrapbook spreads (chapters.html)
   ========================================================================== */
.chapters-section,
.book-stage {
  background-color: #3a2420;
  padding: 3.5rem 0 2rem;
}

.scrap-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 620px;
  padding: 2rem 2.5rem 3.5rem;
  background: #f6eddc;
  color: #2a1a1f;
}

.scrap-page--left {
  box-shadow: inset -26px 0 30px -18px rgba(42, 26, 31, 0.35);
}

.scrap-page--right {
  align-items: center;
  box-shadow: inset 26px 0 30px -18px rgba(42, 26, 31, 0.35);
}

.scrap-runhead {
  align-self: stretch;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: #7a6656;
}

.scrap-chapter {
  margin: 1rem 0 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #a8431a;
}

.scrap-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.04;
  color: var(--color-maroon);
}

.scrap-meta {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5a5f;
}

.scrap-small {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

/* Polaroids */
.scrap-polaroid {
  position: relative;
  margin: 0;
  padding: 10px 10px 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(42, 26, 31, 0.25);
  transition: transform 0.3s ease;
}

.scrap-polaroid .chapter-photo {
  display: block;
  width: 100%;
  border-radius: 0;
  cursor: zoom-in;
}

.scrap-polaroid .chapter-photo:hover {
  transform: none;
}

.scrap-polaroid .chapter-photo:focus-visible {
  outline: 3px solid var(--color-maroon);
  outline-offset: 2px;
}

.scrap-polaroid img {
  aspect-ratio: 4 / 3;
}

.scrap-polaroid figcaption {
  padding-top: 0.4rem;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: center;
  color: #26344f;
}

.scrap-polaroid--left {
  width: 46%;
  transform: rotate(-5deg);
}

.scrap-polaroid--right {
  width: 42%;
  margin-top: 2.25rem;
  transform: rotate(4deg);
}

.scrap-polaroid--big {
  width: 88%;
  margin-top: 1.5rem;
  padding: 12px 12px 14px;
  transform: rotate(2deg);
}

.scrap-polaroid--big figcaption {
  font-size: 1.6rem;
}

.scrap-polaroid:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Washi tape, colour varies per photo */
.scrap-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  background: rgba(201, 154, 46, 0.55);
  transform: rotate(-4deg);
  pointer-events: none;
}

.scrap-polaroid--left .scrap-tape { background: rgba(201, 154, 46, 0.55); transform: rotate(5deg); }
.scrap-polaroid--right .scrap-tape { background: rgba(95, 111, 82, 0.45); transform: rotate(-7deg); }
.scrap-polaroid--big .scrap-tape { background: rgba(122, 0, 60, 0.35); width: 100px; margin-left: -50px; }

.scrap-note {
  margin: 1.5rem 0 0;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #a8431a;
  text-align: center;
  transform: rotate(-1.5deg);
}

.scrap-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.chapter-view-btn.scrap-open {
  align-self: auto;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--color-maroon);
  color: #fbf5ed;
  font-size: 0.95rem;
}

.chapter-view-btn.scrap-open::after {
  display: none;
}

.chapter-view-btn.scrap-open:hover {
  background: var(--color-dark-maroon);
}

.scrap-next {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-maroon);
  text-decoration: none;
}

.scrap-next img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border-radius: 3px;
}

.scrap-next:hover span {
  text-decoration: underline;
}

.scrap-folio {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  text-align: center;
  color: #8a7565;
}

.chapters-empty {
  color: #f6eddc;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
}

/* Phones and small tablets: one page per spread */
@media (max-width: 768px) {
  .chapters-section,
  .book-stage {
    padding: 2rem 0 1rem;
  }

  .scrap-page {
    min-height: 0;
    padding: 1.5rem 1.25rem 3rem;
  }

  .scrap-page--left,
  .scrap-page--right {
    box-shadow: none;
  }

  .scrap-title {
    font-size: 2rem;
  }

  .scrap-polaroid--big {
    width: 94%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrap-polaroid,
  .scrap-polaroid:hover {
    transition: none;
  }
}

/* ==========================================================================
   Join page — member library card + newsletter return slip (join.html)
   ========================================================================== */
.join-page {
  background: var(--color-cream);
  color: #2a1a1f;
}

.join-hero {
  padding: 3.5rem 1.5rem 3rem;
}

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.join-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-kicker {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8431a;
}

.join-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--color-maroon);
}

.join-lede {
  margin: 0;
  max-width: 34rem;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a3a3f;
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.join-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.join-field input,
.join-field select,
.return-slip input[type="email"] {
  min-height: 48px;
  padding: 0 0.9rem;
  border: 2px solid #d9c6a6;
  border-radius: 10px;
  background: #fffaf2;
  font: 400 1rem 'Poppins', sans-serif;
  color: #2a1a1f;
}

.join-field input:focus,
.join-field select:focus,
.return-slip input[type="email"]:focus {
  outline: none;
  border-color: var(--color-maroon);
  box-shadow: 0 0 0 3px rgba(122, 0, 60, 0.15);
}

.join-btn {
  min-height: 50px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font: 600 1rem 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

a.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.join-btn--primary {
  border: none;
  background: var(--color-maroon);
  color: #fbf5ed;
}

.join-btn--primary:hover {
  background: var(--color-dark-maroon);
}

.join-btn--outline {
  border: 2px solid #2a1a1f;
  background: transparent;
  color: #2a1a1f;
  min-height: 48px;
  border-radius: 10px;
}

.join-btn--outline:hover {
  background: #2a1a1f;
  color: #fbf5ed;
}

.join-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.join-btn:focus-visible {
  outline: 3px solid var(--color-burnt-orange);
  outline-offset: 3px;
}

.join-hint {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #6b5a5f;
}

.join-cards {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-top: 1.5rem;
}

/* The member card */
.member-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1200 / 760;
  padding: 1.6rem 1.75rem;
  border-radius: 18px;
  background: var(--color-maroon);
  color: #fbf5ed;
  box-shadow: 0 22px 40px rgba(122, 0, 60, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.member-card:hover {
  transform: rotate(0deg);
}

.member-card-ring {
  position: absolute;
  right: -48px;
  top: -48px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 20px solid rgba(201, 154, 46, 0.25);
}

.member-card-top,
.member-card-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.member-card-top {
  align-items: flex-start;
}

.member-card-bottom {
  align-items: flex-end;
}

.member-card-club {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
}

.member-card-term,
.member-card-shelf,
.member-card-number,
.member-card-since {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-card-term {
  font-size: 0.68rem;
  color: #e7c27a;
  padding-top: 0.35rem;
}

.member-card-middle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.member-card-name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.member-card-shelf {
  font-size: 0.75rem;
  color: #f2d9c8;
}

.member-card-number {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.member-card-since {
  font-size: 0.68rem;
  color: #f2d9c8;
}

.member-card-barcode {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 46px;
  padding: 7px 9px;
  border-radius: 4px;
  background: #fbf5ed;
}

.member-card-barcode span {
  background: #2a1a1f;
}

.member-card-barcode span:nth-child(even) {
  background: transparent;
}

/* Newsletter return slip */
.return-slip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.4rem;
  background: #fffaf2;
  border: 1px solid #e0cfb2;
  border-top: 2px dashed #c4ad8a;
  transform: rotate(1deg);
}

.return-slip-label {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8431a;
}

.return-slip-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

.return-slip-row {
  display: flex;
  gap: 0.6rem;
}

.return-slip-row input[type="email"] {
  flex: 1;
  min-width: 0;
}

.return-slip-msg {
  margin: 0;
  min-height: 1.2em;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
}

.return-slip-msg.is-success { color: #3f6b35; }
.return-slip-msg.is-error { color: #a32020; }

/* Three ways to start */
.join-ways {
  padding: 3rem 1.5rem 4rem;
  background: #26344f;
}

.join-ways-title {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2rem;
  color: #f2e6d3;
}

.join-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.join-way {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fbf5ed;
  color: #2a1a1f;
  text-decoration: none;
  border-right: 6px dotted #26344f;
  transition: transform 0.25s ease;
}

.join-way:hover {
  transform: translateY(-4px);
}

.join-way:focus-visible {
  outline: 3px solid #c99a2e;
  outline-offset: 3px;
}

.join-way-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #a8431a;
}

.join-way-head {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-maroon);
}

.join-way-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a3a3f;
}

@media (max-width: 860px) {
  .join-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .join-title {
    font-size: 2.5rem;
  }

  .join-ways-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .join-hero {
    padding: 2.25rem 1rem 2rem;
  }

  .member-card {
    aspect-ratio: auto;
    min-height: 220px;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    transform: rotate(-2deg);
  }

  .member-card-club {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .member-card-term {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    padding-top: 0.2rem;
  }

  .member-card-name {
    font-size: 1.6rem;
  }

  .member-card-barcode {
    height: 36px;
  }

  .return-slip-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-card,
  .join-way {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Past Events — one flippable book
   -------------------------------------------------------------------------- */
.pe-book {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  perspective: 2600px;
  outline: none;
}

.pe-book:focus-visible {
  outline: 3px solid #c99a2e;
  outline-offset: 8px;
  border-radius: 8px;
}

.pe-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 660px;
  border-radius: 6px;
  overflow: hidden;
  /* stacked page edges under the book */
  box-shadow: 0 3px 0 #eadfc9, 0 6px 0 #d9c8a8, 0 9px 0 #eadfc9, 0 28px 50px rgba(0, 0, 0, 0.45);
}

.pe-slot {
  min-width: 0;
  height: 100%;
}

.pe-slot > .scrap-page,
.pe-face > .scrap-page {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* The turning leaf: front = the page you're turning, back = the page underneath it */
.pe-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  transform-style: preserve-3d;
  transition: transform 850ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.pe-leaf--right { left: 50%; width: 50%; transform-origin: left center; }
.pe-leaf--left { left: 0; width: 50%; transform-origin: right center; }
.pe-leaf--full { left: 0; width: 100%; transform-origin: left center; }

.pe-leaf--right.is-turning { transform: rotateY(-180deg); }
.pe-leaf--left.is-turning { transform: rotateY(180deg); }
.pe-leaf--full.is-turning { transform: rotateY(-180deg); }
.pe-leaf--from-left { transform: rotateY(-180deg); }
.pe-leaf--from-left.is-turning { transform: rotateY(0deg); }

.pe-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pe-face--back {
  transform: rotateY(180deg);
}

/* soft shadow that peaks halfway through the turn */
.pe-face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(58, 36, 32, 0) 55%, rgba(58, 36, 32, 0.28));
  opacity: 0;
  transition: opacity 425ms ease;
}

.pe-leaf.is-turning .pe-face::after {
  opacity: 1;
}

.pe-blank {
  background: #f6eddc;
}

/* Title page & "The End?" */
.pe-titlepage-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: auto 0;
  text-align: center;
}

.pe-titlepage-body .scrap-chapter {
  margin: 0;
}

.pe-titlepage-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--color-maroon);
}

.pe-titlepage-sub {
  max-width: 20rem;
  margin: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #4a3a3f;
}

.pe-hint {
  margin: 0;
  align-self: flex-end;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: #a8431a;
}

.pe-end--right {
  justify-content: center;
}

.pe-end--right .scrap-actions {
  flex-direction: column;
  margin-top: 0;
}

.pe-toc-back {
  min-height: 44px;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-maroon);
  text-decoration: underline;
  cursor: pointer;
}

a.chapter-view-btn.scrap-open {
  text-decoration: none;
}

/* Contents */
.pe-toc {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pe-toc-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.25rem;
  border: none;
  border-bottom: 1px dotted #c4ad8a;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #2a1a1f;
}

.pe-toc-item:hover .pe-toc-title,
.pe-toc-item:focus-visible .pe-toc-title {
  color: var(--color-maroon);
  text-decoration: underline;
}

.pe-toc-item:focus-visible {
  outline: 2px solid var(--color-maroon);
  outline-offset: 2px;
}

.pe-toc-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1rem;
  color: #a8431a;
}

.pe-toc-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.pe-toc-year {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b5a5f;
}

.pe-toc-page {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #7a6656;
}

/* Arrows + where you are */
.pe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1040px;
  margin: 2.25rem auto 1rem;
}

.pe-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border: 2px solid #f2e6d3;
  border-radius: 50%;
  background: transparent;
  color: #f2e6d3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pe-arrow:hover:not(:disabled) {
  background: #f2e6d3;
  color: #3a2420;
}

.pe-arrow:focus-visible {
  outline: 3px solid #c99a2e;
  outline-offset: 3px;
}

.pe-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.pe-label {
  min-width: 16rem;
  margin: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: #f2e6d3;
}

/* Phones: one page at a time */
@media (max-width: 768px) {
  .pe-spread {
    grid-template-columns: 1fr;
    height: 620px;
  }

  .pe-slot--right {
    display: none;
  }

  .pe-titlepage-title {
    font-size: 2.8rem;
  }

  .pe-label {
    min-width: 0;
    flex: 1;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-leaf,
  .pe-face::after {
    transition: none;
  }
}

/* Autoplay button next to the arrows (Our Team) */
.pe-play {
  width: 44px;
  height: 44px;
}

/* Compact contents list (longer cast lists) */
.pe-toc--compact {
  margin-top: 0.75rem;
}

.pe-toc--compact .pe-toc-item {
  min-height: 44px;
  padding: 0.35rem 0.25rem;
}

.pe-toc--compact .pe-toc-title {
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Our Team — character pages
   -------------------------------------------------------------------------- */
.team-book-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.team-portrait-page {
  align-items: center;
}

.scrap-polaroid--portrait {
  width: 72%;
  max-width: 330px;
  margin: auto;
  padding: 12px 12px 14px;
  transform: rotate(-2.5deg);
}

.scrap-polaroid--portrait .scrap-tape {
  background: rgba(122, 0, 60, 0.35);
}

.scrap-polaroid--portrait figcaption {
  font-size: 1.9rem;
}

.team-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #efe4d1;
}

.team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.team-portrait-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 6rem;
  color: var(--color-maroon);
}

.scrap-page--right.team-sheet-page {
  align-items: flex-start;
}

.team-sheet-page .scrap-chapter {
  margin-top: 2.25rem;
}

.team-character-role {
  margin: 0.2rem 0 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #a8431a;
}

.team-sheet-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem 0 0.5rem;
  background: var(--color-burnt-orange);
}

.team-sheet {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin: 0;
}

.team-sheet-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dotted #c4ad8a;
}

.team-sheet-row dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5a5f;
}

.team-sheet-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: #2a1a1f;
}

.team-sheet-row a {
  color: var(--color-maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-sheet-row a:hover {
  color: var(--color-dark-maroon);
}

.team-stamp {
  position: absolute;
  right: 2.25rem;
  bottom: 3.5rem;
  max-width: 60%;
  padding: 0.4rem 0.75rem;
  border: 3px double #b5332e;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b5332e;
  opacity: 0.75;
  transform: rotate(-8deg);
}

@media (max-width: 768px) {
  .scrap-polaroid--portrait {
    width: 80%;
  }

  .team-sheet-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .team-stamp {
    right: 1.25rem;
    bottom: 3.25rem;
  }
}

/* ==========================================================================
   Homepage — bookshelf nav, "Once upon a Mac" hero, news ticker, reading lamp
   (index.html + js/home.js). Lamp on = html.lamp-on → warm lamplight theme.
   ========================================================================== */
.home-page,
.site-page {
  --h-bg: #fbf5ed;
  --h-ink: #2a1a1f;
  --h-muted: #4a3a3f;
  --h-soft: #6b5a5f;
  --h-heading: #7a003c;
  --h-accent: #a8431a;
  --h-card: #fffaf2;
  --h-card-border: #e0cfb2;
  --h-shelf: #5a2a1c;
  --h-btn-bg: #7a003c;
  --h-btn-text: #fbf5ed;
  --h-foot-bg: #7a003c;
  --h-foot-text: #f2e6d3;
  --h-bulb: #e9dcc4;
  --h-section: #fdfaf5;
  --h-section-alt: #f5ead9;
  --h-panel: #ffffff;
  position: relative;
  background: var(--h-bg);
  color: var(--h-ink);
  transition: background-color 0.6s ease, color 0.6s ease;
}

html.lamp-on .home-page,
html.lamp-on .site-page {
  --h-bg: #1d1411;
  --h-ink: #f6e7cc;
  --h-muted: #e2cfae;
  --h-soft: #c9b48f;
  --h-heading: #ffd27a;
  --h-accent: #f0b85a;
  --h-card: #2a1d18;
  --h-card-border: #4a3527;
  --h-shelf: #3a2016;
  --h-btn-bg: #f0c674;
  --h-btn-text: #1d1411;
  --h-foot-bg: #2a1d18;
  --h-foot-text: #f6e7cc;
  --h-bulb: #ffe6a3;
  --h-section: #211714;
  --h-section-alt: #271b17;
  --h-panel: #2a1d18;
}

/* the warm pool of light falling from the lamp */
.home-page::before,
.site-page::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(1100px, 85vw);
  height: 900px;
  background: radial-gradient(ellipse 70% 75% at 92% 4%, rgba(255, 210, 120, 0.3) 0%, rgba(255, 190, 100, 0.12) 40%, rgba(29, 20, 17, 0) 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 0;
}

html.lamp-on .home-page::before,
html.lamp-on .site-page::before {
  opacity: 1;
}

.home-header,
.home-hero {
  position: relative;
  z-index: 1;
}

.home-page {
  padding-bottom: 64px;  /* room for the pinned ticker */
}

/* Header + bookshelf nav */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.4rem 2.5rem 0 3.5rem;
}

.home-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.1rem;
  text-decoration: none;
}

.home-brand-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--h-heading);
}

.home-brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-soft);
}

.home-header-right {
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
}

.shelf-nav {
  display: flex;
  flex-direction: column;
}

.shelf {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0 14px;
  list-style: none;
}

.spine {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  writing-mode: vertical-rl;
  border-radius: 3px 3px 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transform-origin: bottom center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spine:hover { transform: translateY(-8px); }
.spine.is-active { transform: translateY(-18px); box-shadow: 0 12px 16px rgba(0, 0, 0, 0.28); }
.spine.is-active:hover { transform: translateY(-21px); }
.spine:focus-visible { outline: 3px solid #c99a2e; outline-offset: 3px; }

.spine--home   { width: 46px; height: 150px; background: #7a003c; color: #fbf5ed; border-top: 6px solid #c99a2e; }
.spine--read   { width: 52px; height: 136px; background: #26344f; color: #f2e6d3; border-bottom: 10px solid #1b2538; }
.spine--events { width: 44px; height: 124px; background: #e7d6b8; color: #2a1a1f; border-top: 3px solid #7a003c; }
.spine--past   { width: 50px; height: 142px; background: #5f6f52; color: #fbf5ed; border-top: 8px solid #4a5740; }
.spine--team   { width: 42px; height: 118px; background: #a8431a; color: #fbf5ed; }
.spine--join   { width: 48px; height: 132px; background: #2a1a1f; color: #c99a2e; font-weight: 700; margin-left: 4px;
                 transform: rotate(9deg); transform-origin: bottom left; }
.spine--join:hover { transform: rotate(9deg) translateY(-8px); }
.spine--join.is-active { transform: rotate(9deg) translateY(-18px); }
html.lamp-on .spine--join { background: #3d2a20; box-shadow: inset 0 0 0 1px #c99a2e; }

.shelf-board {
  height: 12px;
  background: var(--h-shelf);
  border-radius: 2px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.6s ease;
}

/* Reading lamp */
.lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4px;
}

.lamp-cord {
  fill: none;
  stroke: var(--h-soft);
  stroke-width: 2;
}

.lamp-bulb {
  fill: var(--h-bulb);
  transition: fill 0.4s ease;
}

html.lamp-on .lamp-shade {
  filter: drop-shadow(0 6px 10px rgba(255, 214, 120, 0.55));
}

.lamp-chain {
  display: flex;
  justify-content: center;
  width: 44px;
  height: 74px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.lamp-pull { transition: transform 0.2s ease; }
.lamp-chain:hover .lamp-pull,
.lamp-chain:focus-visible .lamp-pull { transform: translateY(5px); }
.lamp-chain:focus-visible { outline: 3px solid #c99a2e; outline-offset: 3px; border-radius: 6px; }

.lamp-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--h-soft);
}

/* Hero */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 3.5rem 3.5rem;
}

.home-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 1.5rem;
}

.home-kicker {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-accent);
}

.home-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--h-heading);
}

.home-title span {
  display: block;
  font-weight: 400;
  font-style: italic;
  color: var(--h-ink);
}

.home-lede {
  max-width: 32rem;
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--h-muted);
}

.home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-top: 0.4rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

.home-btn:hover { transform: translateY(-2px); }
.home-btn:focus-visible { outline: 3px solid #c99a2e; outline-offset: 3px; }
.home-btn--primary { background: var(--h-btn-bg); color: var(--h-btn-text); }
.home-btn--outline { border: 2px solid var(--h-ink); color: var(--h-ink); }

/* This month's covers + the next-event ticket */
.home-books {
  position: relative;
  height: 560px;
}

.home-covers {
  position: relative;
  height: 440px;
}

.home-cover {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 3px 10px 10px 3px;
  transition: transform 0.3s ease;
}

.home-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cover--front {
  left: 34%;
  top: 0;
  width: 290px;
  height: 440px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.32), inset 10px 0 0 rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.home-cover--back {
  left: 8%;
  top: 52px;
  width: 238px;
  height: 367px;
  transform: rotate(-7deg);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.home-cover--front:hover { transform: translateY(-6px); }
.home-cover--back:hover { transform: rotate(-7deg) translateY(-6px); }
.home-cover:focus-visible { outline: 3px solid #c99a2e; outline-offset: 4px; }

.home-covers--single .home-cover--front { left: 50%; transform: translateX(-50%); }
.home-covers--single .home-cover--front:hover { transform: translateX(-50%) translateY(-6px); }
/* one book: tuck the ticket under the cover instead of over it */
.home-covers--single ~ .home-ticket { top: 396px; }

.home-cover-fallback {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2rem 1.6rem;
  box-sizing: border-box;
  background: #f2e6d3;
  border: 1px solid #e0cfb2;
}

.home-cover-fallback-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.05;
  color: #7a003c;
}

.home-cover-fallback-author {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #2a1a1f;
}

.home-stand {
  position: absolute;
  left: 18%;
  top: 440px;
  width: 72%;
  height: 14px;
  background: var(--h-shelf);
  border-radius: 2px;
  z-index: 3;
  transition: background-color 0.6s ease;
}

.home-ticket {
  position: absolute;
  left: 0;
  top: 340px;
  z-index: 4;
  display: flex;
  width: 310px;
  background: var(--h-card);
  border: 1px solid var(--h-card-border);
  border-radius: 10px;
  color: var(--h-ink);
  text-decoration: none;
  transform: rotate(-4deg);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background-color 0.6s ease, border-color 0.6s ease;
}

.home-ticket:hover { transform: rotate(-2deg) translateY(-3px); }
.home-ticket:focus-visible { outline: 3px solid #c99a2e; outline-offset: 4px; }

.home-ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 92px;
  padding: 1rem 0;
  border-right: 2px dashed var(--h-card-border);
}

.home-ticket-month,
.home-ticket-weekday {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-ticket-month { color: var(--h-accent); }
.home-ticket-weekday { color: var(--h-soft); }

.home-ticket-day {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--h-heading);
}

.home-ticket-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem 1.1rem;
}

.home-ticket-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--h-soft);
}

.home-ticket-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.home-ticket-meta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: var(--h-muted);
}

/* News ticker: pinned to the bottom of the screen while you scroll */
.home-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 64px;
  overflow: hidden;
  border-top: 2px solid #c99a2e;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
  background: var(--h-foot-bg);
  color: var(--h-foot-text);
  transition: background-color 0.6s ease, color 0.6s ease;
}

.home-ticker-track {
  display: flex;
  width: max-content;
  animation: home-ticker 40s linear infinite;
}

.home-ticker:hover .home-ticker-track,
.home-ticker:focus-within .home-ticker-track {
  animation-play-state: paused;
}

.home-ticker-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  white-space: nowrap;
}

.home-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-ticker-item:hover .home-ticker-text { text-decoration: underline; text-underline-offset: 4px; }
.home-ticker-item:focus-visible { outline: 2px solid #c99a2e; outline-offset: 2px; }

.home-ticker-label {
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: #c99a2e;
  color: #2a1a1f;
  font-weight: 600;
}

.home-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c99a2e;
}

@keyframes home-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Lamplight for the rest of the homepage */
html.lamp-on .home-page main > .section {
  background: var(--h-section);
  color: var(--h-ink);
}

html.lamp-on .home-page main > .section:nth-of-type(even) {
  background: var(--h-section-alt);
}

html.lamp-on .home-page main > .section h2,
html.lamp-on .home-page main > .section h3 {
  color: var(--h-heading);
}

html.lamp-on .home-page main > .section p,
html.lamp-on .home-page main > .section li {
  color: var(--h-muted);
}

html.lamp-on .home-page main > .section a:not(.btn):not(.btn-linktree):not(.hw-card) {
  color: var(--h-accent);
}

html.lamp-on .home-page main > .section .meeting-card,
html.lamp-on .home-page main > .section .hw-card,
html.lamp-on .home-page main > .section .about-content,
html.lamp-on .home-page main > .section .newsletter-input {
  background: var(--h-panel);
  border-color: var(--h-card-border);
  color: var(--h-ink);
}

/* Tablets and phones */
@media (max-width: 900px) {
  .home-header {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 1rem 1.25rem 0;
  }

  .home-header-right {
    display: contents;
  }

  .home-brand { order: 1; padding-bottom: 0; }
  .lamp { order: 2; margin-left: auto; }
  .shelf-nav { order: 3; flex-basis: 100%; margin-top: 0.5rem; }
  .lamp-shade { width: 58px; height: 48px; }
  .lamp-chain { height: 56px; }

  .shelf {
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
  }

  .shelf li { flex: 1; max-width: 56px; display: flex; align-items: flex-end; }
  .spine { width: 100%; font-size: 0.62rem; letter-spacing: 0.08em; }
  .spine--home { height: 118px; }
  .spine--read { height: 108px; }
  .spine--events { height: 98px; }
  .spine--past { height: 112px; }
  .spine--team { height: 94px; }
  .spine--join { height: 104px; margin-left: 0; }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem 2.5rem;
  }

  .home-hero-text { padding-top: 0.5rem; gap: 1.2rem; }
  .home-lede { font-size: 1.1rem; }

  .home-books { height: 460px; max-width: 420px; width: 100%; margin: 0 auto; }
  .home-covers { height: 360px; }
  .home-cover--front { left: 36%; width: 220px; height: 334px; }
  .home-cover--back { left: 4%; top: 40px; width: 180px; height: 278px; }
  .home-stand { top: 334px; left: 12%; width: 80%; }
  .home-ticket { top: 300px; width: 280px; }
  .home-covers--single ~ .home-ticket { top: 356px; }
  .home-books:has(.home-covers--single) { height: 490px; }
}

@media (max-width: 420px) {
  .home-brand-name { font-size: 1.55rem; }
  .home-cover--front { left: 30%; width: 200px; height: 304px; }
  .home-cover--back { width: 160px; height: 246px; }
  .home-stand { top: 304px; }
  .home-ticket { top: 280px; width: 270px; }
  .home-covers--single ~ .home-ticket { top: 326px; }
  .home-books:has(.home-covers--single) { height: 460px; }
  .home-books { height: 440px; }
  .home-covers { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-ticker { overflow-x: auto; }
  .home-ticker-track { animation: none; }
  .spine,
  .home-cover,
  .home-ticket,
  .home-btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Homepage = one screen. On laptops/desktops everything scales with the
   window height (--u) so the nav, hero and ticker fit without scrolling;
   the other pages are reached from the bookshelf nav.
   -------------------------------------------------------------------------- */
.home-page { --u: 1; }
.site-page { --u: 0.85; }   /* inner pages: the same shelf, a little shorter */

@media (min-width: 901px) {
  @media (max-height: 899px) { .home-page { --u: 0.85; } }
  @media (max-height: 779px) { .home-page { --u: 0.72; } }
  @media (max-height: 679px) { .home-page { --u: 0.62; } }

  .home-header { padding-top: calc(0.9rem * var(--u)); }

  .spine--home   { height: calc(150px * var(--u)); }
  .spine--read   { height: calc(136px * var(--u)); }
  .spine--events { height: calc(124px * var(--u)); }
  .spine--past   { height: calc(142px * var(--u)); }
  .spine--team   { height: calc(118px * var(--u)); }
  .spine--join   { height: calc(132px * var(--u)); }

  .home-hero { padding: calc(2.25rem * var(--u)) 3.5rem 0; }
  .home-hero-text { gap: calc(1.6rem * var(--u)); padding-top: calc(1.5rem * var(--u)); }
  .home-title { font-size: max(3rem, calc(5.6rem * var(--u))); }
  .home-lede { font-size: max(1.05rem, calc(1.25rem * var(--u))); }

  .home-books { height: calc(560px * var(--u)); }
  .home-covers { height: calc(440px * var(--u)); }
  .home-cover--front { width: calc(290px * var(--u)); height: calc(440px * var(--u)); }
  .home-cover--back { top: calc(52px * var(--u)); width: calc(238px * var(--u)); height: calc(367px * var(--u)); }
  .home-stand { top: calc(440px * var(--u)); }
  .home-ticket { top: calc(340px * var(--u)); }
  .home-covers--single ~ .home-ticket { top: calc(396px * var(--u)); }
}

/* No scrolling on screens tall enough to fit it all */
@media (min-width: 901px) and (min-height: 600px) {
  html:has(body.home-page),
  body.home-page {
    height: 100%;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   Clip-on book light over the shelf (lights up when someone tries to scroll)
   -------------------------------------------------------------------------- */
.shelf-nav {
  position: relative;
  padding-top: calc(42px * var(--u, 1));
}

.book-light {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(44px * var(--u, 1));
  pointer-events: none;
  z-index: 2;
}

.book-light-arm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.book-light-neck {
  fill: none;
  stroke: #2a1a1f;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

html.lamp-on .book-light-neck { stroke: #c9b48f; }

.book-light-clip { fill: #c99a2e; }

.book-light-head {
  position: absolute;
  left: 55%;
  top: 0;
  transform: translateX(-50%) rotate(-6deg);
  overflow: visible;
}

html.lamp-on .book-light-head path { fill: #c9b48f; }

.book-light-bulb {
  fill: #8a7a6a;
  transition: fill 0.2s ease;
}

.book-light-beam {
  position: absolute;
  left: 4%;
  right: 4%;
  top: calc(100% - 20px);
  height: calc(210px * var(--u, 1));
  background: radial-gradient(ellipse 55% 100% at 55% 0%, rgba(255, 224, 138, 0.8) 0%, rgba(255, 224, 138, 0.28) 45%, rgba(255, 224, 138, 0) 75%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book-light-hint {
  position: absolute;
  right: 100%;
  top: calc(60px * var(--u, 1));
  margin: 0 0.75rem 0 0;
  white-space: nowrap;
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--h-accent);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.shelf-nav.is-lit .book-light-bulb { fill: #ffe08a; }
.shelf-nav.is-lit .book-light-head { filter: drop-shadow(0 4px 8px rgba(255, 214, 120, 0.9)); }
.shelf-nav.is-lit .book-light-beam { opacity: 1; }
.shelf-nav.is-lit .book-light-hint { opacity: 1; transform: none; }

/* the spines hop in turn, like "pick me" */
@keyframes spine-nudge {
  0%, 100% { transform: none; }
  40% { transform: translateY(-7px); }
}

.shelf-nav.is-lit .shelf li { animation: spine-nudge 0.6s ease both; }
.shelf-nav.is-lit .shelf li:nth-child(2) { animation-delay: 0.06s; }
.shelf-nav.is-lit .shelf li:nth-child(3) { animation-delay: 0.12s; }
.shelf-nav.is-lit .shelf li:nth-child(4) { animation-delay: 0.18s; }
.shelf-nav.is-lit .shelf li:nth-child(5) { animation-delay: 0.24s; }
.shelf-nav.is-lit .shelf li:nth-child(6) { animation-delay: 0.30s; }

@media (max-width: 900px) {
  .shelf-nav { padding-top: 40px; }
  .book-light-hint {
    right: 0;
    left: 0;
    top: calc(100% + 0.35rem);
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shelf-nav.is-lit .shelf li { animation: none; }
}

/* Shortest laptop screens: lift the ticket a little so it clears the ticker */
@media (min-width: 901px) and (max-height: 679px) {
  .home-ticket { top: calc(318px * var(--u)); }
  .home-covers--single ~ .home-ticket { top: calc(366px * var(--u)); }
}

/* Spine labels never wrap; the longer titles keep enough height for their text */
.spine { white-space: nowrap; }

@media (min-width: 901px) {
  .spine { letter-spacing: 0.12em; }
  .spine--read { height: max(128px, calc(136px * var(--u))); }
  .spine--past { height: max(118px, calc(142px * var(--u))); }
  .spine--team { height: max(96px, calc(118px * var(--u))); }
  .spine--join { height: max(92px, calc(132px * var(--u))); }
  .spine--events { height: max(80px, calc(124px * var(--u))); }
}

/* ==========================================================================
   Site-wide parchment background (from The Secret History jacket concept)
   ========================================================================== */
:root {
  --color-page: #d6c49a;
  --color-page-alt: #ddcfab;   /* alternating sections, a touch lighter */
}

/* Paper texture: fine grain + soft mottling + darker, aged edges, like a book page */
:root {
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 1.3 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --paper-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .14 1.4 0 0 0 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --paper-edges: radial-gradient(ellipse 120% 95% at 50% 40%, rgba(255, 246, 220, 0.38) 0%, rgba(255, 246, 220, 0) 55%, rgba(120, 82, 34, 0.22) 100%);
  --paper-bg: var(--paper-grain), var(--paper-mottle), var(--paper-edges), var(--color-page);
}

body {
  background: var(--paper-bg);
  background-attachment: scroll, scroll, fixed, scroll;
}

.navbar,
.nav-menu {
  background: var(--paper-grain), var(--color-page);
}

/* Sections let the page show through instead of painting flat colour */
.current-read-section,
.cr-book-section,
.cr-past-section,
.trivia-section,
.join-section,
.meetings-events-section,
.newsletter-section,
.admin-section,
.team-section,
.join-page,
.chapters-section,
.book-stage {
  background: transparent;
}

.about-section,
.meetings-section,
.cr-vote-section,
.trivia-section.alt {
  background: rgba(255, 248, 228, 0.22);
}

/* Homepage + inner pages daytime theme (the lamp theme keeps its own colours) */
.home-page,
.site-page {
  --h-bg: var(--color-page);
  --h-bulb: #b8a47c;            /* lamp bulb reads as unlit glass on parchment */
  --h-soft: #4f4044;
  --h-accent: #8a3412;
  --h-card: #fbf5ea;
}

/* Book pages (Past Events, Our Team) now sit on light parchment: dark controls */
.pe-arrow {
  border-color: #2a1a1f;
  color: #2a1a1f;
}

.pe-arrow:hover:not(:disabled) {
  background: #2a1a1f;
  color: var(--color-page);
}

.pe-arrow:focus-visible {
  outline-color: #7a003c;
}

.pe-label,
.chapters-empty {
  color: #2a1a1f;
}

/* Readable small text on parchment */
.join-kicker { color: #8a3412; }
.join-hint { color: #4f4044; }

html:not(.lamp-on) .home-page,
html:not(.lamp-on) .site-page {
  background: var(--paper-bg);
  background-attachment: scroll, scroll, fixed, scroll;
}

/* Book light: on parchment a pale-yellow glow vanished, so the pool is a
   bright, near-white lamplight with a warm rim that washes over the spines */
.book-light-beam {
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 34% 80% at 55% 0%, rgba(255, 250, 225, 0.85) 0%, rgba(255, 236, 180, 0.5) 45%, rgba(255, 230, 170, 0) 85%),
    radial-gradient(ellipse 62% 100% at 55% 0%, rgba(255, 200, 90, 0.6) 0%, rgba(255, 190, 80, 0.28) 50%, rgba(255, 190, 80, 0) 80%);
}

.shelf-nav.is-lit .book-light-bulb { fill: #fffbe8; }
.shelf-nav.is-lit .book-light-head {
  filter: drop-shadow(0 0 6px rgba(255, 250, 225, 1)) drop-shadow(0 4px 14px rgba(255, 190, 70, 0.9));
}

/* Reading lamp: the bulb glows brighter so switching it on is obvious */
html.lamp-on .lamp-shade {
  filter: drop-shadow(0 0 8px rgba(255, 236, 170, 0.95)) drop-shadow(0 10px 22px rgba(255, 196, 90, 0.7));
}

/* ==========================================================================
   Meetings & Events — the wall calendar (meetings-events.html + js/calendar.js)
   Sits on the site parchment; the calendar itself is a cream sheet.
   ========================================================================== */
.cal-page {
  padding: 2.5rem 1.5rem 4rem;
  color: #2a1a1f;
}

.cal-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2.75rem;
  align-items: start;
}

.cal-sheet {
  position: relative;
  background: #fffaf2;
  border: 1px solid #e0cfb2;
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 3px 0 #efe3cc, 0 22px 40px rgba(60, 36, 16, 0.22);
  padding: 2.25rem 1.6rem 1.25rem;
  transform: rotate(-0.6deg);
}

.cal-rings {
  position: absolute;
  left: 30px;
  right: 30px;
  top: -11px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='22'%3E%3Crect x='19' width='8' height='22' rx='4' fill='%237d6a5b'/%3E%3Crect x='21' y='2' width='4' height='18' rx='2' fill='%23a08b78'/%3E%3C/svg%3E") repeat-x center / 46px 22px;
}

.cal-eyebrow {
  margin: 0 0 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a3412;
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-bottom: 0.9rem;
}

.cal-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cal-month {
  margin: 0;
  min-width: 9.5ch;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  color: #7a003c;
}

.cal-month span {
  font-weight: 400;
  font-style: italic;
  color: #2a1a1f;
}

.cal-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #2a1a1f;
  background: transparent;
  color: #2a1a1f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cal-arrow:hover:not(:disabled) { background: #2a1a1f; color: #fffaf2; }
.cal-arrow:disabled { opacity: 0.3; cursor: default; }

.cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #2a1a1f;
  background: transparent;
  color: #2a1a1f;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.cal-chip[aria-pressed="true"] { background: #2a1a1f; color: #fffaf2; }
.cal-chip-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fffaf2; }

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-weekdays {
  border-top: 2px solid #2a1a1f;
}

.cal-weekdays span {
  padding: 8px 0 6px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a4a4f;
}

.cal-day {
  position: relative;
  min-height: 96px;
  padding: 6px 7px;
  border-top: 1px solid #eadfc9;
  border-left: 1px solid #eadfc9;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cal-day:nth-child(7n + 1) { border-left: none; }
.cal-day.is-blank { background: #f6eedf; }

.cal-num {
  position: relative;
  z-index: 1;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.cal-day.is-past .cal-num { color: #6f605c; }

/* hand-drawn red circle around today */
.cal-day.is-today::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 34px;
  height: 31px;
  border: 2px solid #b5332e;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.cal-cross {
  position: absolute;
  left: 6px;
  top: 4px;
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  line-height: 0.9;
  color: rgba(107, 90, 95, 0.4);
  pointer-events: none;
}

.cal-stamps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.cal-stamp {
  display: block;
  width: 100%;
  padding: 4px 5px;
  border: 2px solid var(--stamp);
  border-radius: 4px;
  background: rgba(255, 250, 242, 0.85);
  color: var(--stamp);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cal-stamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.cal-stamp:hover { transform: rotate(0deg) scale(1.04); }
.cal-stamp.is-selected { background: var(--stamp); color: #fffaf2; }
.cal-day.is-past .cal-stamp:not(.is-selected) { opacity: 0.7; }

.cal-stamp:focus-visible,
.cal-chip:focus-visible,
.cal-arrow:focus-visible,
.cal-btn:focus-visible,
.cal-upnext-list button:focus-visible {
  outline: 3px solid #c99a2e;
  outline-offset: 2px;
}

/* ── Side panel ─────────────────────────────────────────── */
.cal-aside {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.5rem;
}

.cal-kicker,
.cal-upnext-label {
  margin: 0 0 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #8a3412;
}

.cal-ticket {
  display: flex;
  background: #fffaf2;
  border: 1px solid #e0cfb2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(60, 36, 16, 0.18);
}

.cal-ticket-stub {
  width: 84px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  color: #fbf5ed;
  border-right: 3px dashed #fffaf2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.cal-ticket-stub strong {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.cal-ticket-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.cal-ticket-body h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: #2a1a1f;
}

.cal-ticket-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #4a3a3f;
}

.cal-ticket-desc {
  margin: 0;
  padding-top: 0.15rem;
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2a1a1f;
}

.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.cal-btn {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cal-btn--solid { background: #7a003c; color: #fbf5ed; border: 2px solid #7a003c; }
.cal-btn--solid:hover { background: #5a002c; border-color: #5a002c; color: #fbf5ed; }
.cal-btn--line { background: transparent; color: #2a1a1f; border: 2px solid #2a1a1f; }
.cal-btn--line:hover { background: #2a1a1f; color: #fffaf2; }

.cal-upnext-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dotted #9c8462;
}

.cal-upnext-list li { border-bottom: 1px dotted #9c8462; }

.cal-upnext-list button {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 0.2rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #2a1a1f;
  font-family: inherit;
}

.cal-upnext-date {
  flex-shrink: 0;
  width: 4.2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.cal-upnext-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  line-height: 1.3;
}

.cal-upnext-list button:hover .cal-upnext-title { text-decoration: underline; }

.cal-note {
  padding: 1.1rem 1.25rem;
  border: 2px dashed #9c8462;
  border-radius: 10px;
}

.cal-note-title {
  margin: 0 0 0.3rem;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
}

.cal-note-hand {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #8a3412;
}

.cal-note-hand a { color: #7a003c; }

@media (max-width: 960px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .cal-sheet { transform: none; }
  .cal-aside { max-width: 560px; }
}

/* Phones: stamps become coloured tabs; the full name is on the ticket below */
@media (max-width: 600px) {
  .cal-page { padding: 2rem 0.75rem 3rem; }
  .cal-sheet { padding: 1.9rem 0.6rem 0.75rem; }
  .cal-rings { left: 14px; right: 14px; }
  .cal-head { padding: 0 0.4rem 0.8rem; }
  .cal-eyebrow { padding: 0 0.4rem; }
  .cal-arrow { width: 36px; height: 36px; }
  .cal-weekdays span { font-size: 0.58rem; letter-spacing: 0.06em; }
  .cal-day { min-height: 62px; padding: 4px 3px; }
  .cal-num { font-size: 0.92rem; padding-left: 3px; }
  .cal-day.is-today::before { width: 28px; height: 26px; }
  .cal-cross { font-size: 1.5rem; left: 4px; }
  .cal-stamp {
    min-height: 24px;
    padding: 0;
    background: var(--stamp);
    transform: none;
  }
  .cal-stamp.is-selected { box-shadow: 0 0 0 2px #fffaf2, 0 0 0 4px var(--stamp); }
  .cal-stamp-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cal-ticket-stub { width: 72px; }
  .cal-ticket-stub strong { font-size: 2.2rem; }
}

/* ==========================================================================
   Current Read — the open book (current-read.html + js/current-read.js)
   Book pages are cream on the site parchment; club colours, not jacket colours.
   ========================================================================== */
.cr-page {
  padding: 2.5rem 1.5rem 4.5rem;
  color: #2a1a1f;
}

.cr-book-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* index tabs sticking up from the top edge, one per book this month */
.cr-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-left: 40px;
}

.cr-tabs[hidden] { display: none; }

.cr-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 340px;
  padding: 0 18px;
  border: none;
  border-radius: 8px 8px 0 0;
  background: #7a003c;
  color: #fbf5ed;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 -2px 6px rgba(42, 26, 31, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cr-tab:hover { transform: translateY(-3px); }
.cr-tab[aria-selected="true"] { min-height: 44px; background: #fbf6ea; color: #7a003c; }
.cr-tab[aria-selected="true"]:hover { transform: none; }

.cr-tab-date {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.cr-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-book-frame { position: relative; }

.cr-open-book {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  min-height: 600px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 0 #eadfc9, 0 6px 0 #c9b388, 0 9px 0 #7a003c, 0 30px 50px rgba(60, 36, 16, 0.32);
}

.cr-page-l,
.cr-page-r {
  position: relative;
  background: #fbf6ea;
  box-sizing: border-box;
  min-width: 0;
}

.cr-page-l {
  display: flex;
  gap: 28px;
  padding: 34px 34px 36px 44px;
  box-shadow: inset -26px 0 30px -18px rgba(42, 26, 31, 0.3);
}

.cr-page-r {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 76px 32px 44px;   /* right padding keeps the cards clear of the ribbon */
  box-shadow: inset 26px 0 30px -18px rgba(42, 26, 31, 0.3);
}

/* the bookmark ribbon: runs the full height of the page and hangs out the bottom */
.cr-ribbon {
  position: absolute;
  right: 26px;
  top: -8px;
  bottom: -70px;
  width: 30px;
  z-index: 2;
  background: linear-gradient(90deg, #5a002c 0%, #7a003c 30%, #93104f 55%, #7a003c 80%, #5a002c 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%);
  pointer-events: none;
}

/* ── Left page ─────────────────────────────────────────── */
.cr-cover-wrap {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 6px;
}

.cr-cover {
  display: block;
  width: 190px;
  height: 287px;
  object-fit: cover;
  border-radius: 2px 8px 8px 2px;
  box-shadow: 0 16px 26px rgba(42, 26, 31, 0.28);
  transform: rotate(-2.5deg);
}

.cr-cover--blank {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 10px, transparent 10px),
    linear-gradient(#c99a2e, #c99a2e) center 36% / 60% 2px no-repeat,
    linear-gradient(#c99a2e, #c99a2e) center 40% / 40% 2px no-repeat,
    #7a003c;
}

.cr-other .cr-cover--blank { display: block; width: 40px; height: 62px; flex-shrink: 0; border-radius: 1px 3px 3px 1px; }

.cr-note {
  position: absolute;
  left: -14px;
  bottom: -18px;
  width: 176px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #fffaf0;
  border-left: 5px solid #7a003c;
  box-shadow: 0 10px 16px rgba(42, 26, 31, 0.22);
  transform: rotate(-4deg);
}

.cr-note-when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #8a3412;
}

.cr-note-date {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #7a003c;
}

.cr-note-where {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.cr-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.cr-kicker {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a3412;
}

.cr-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.04;
  color: #7a003c;
  text-wrap: balance;
}

.cr-author {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #4f4044;
}

.cr-rating {
  margin: -4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8a3412;
}

.cr-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-tags-list li {
  padding: 3px 10px;
  border: 1.5px solid #7a003c;
  border-radius: 999px;
  color: #7a003c;
  font-size: 0.7rem;
  font-weight: 600;
}

.cr-blurb,
.cr-notes {
  margin: 4px 0 0;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2a1a1f;
}

.cr-notes { font-style: italic; color: #4f4044; }

.cr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.cr-actions-row {
  display: flex;
  gap: 10px;
}

.cr-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cr-btn--solid { background: #7a003c; color: #fbf5ed; border: 2px solid #7a003c; }
.cr-btn--solid:hover { background: #5a002c; border-color: #5a002c; color: #fbf5ed; }
.cr-btn--line { background: transparent; color: #2a1a1f; border: 2px solid #2a1a1f; }
.cr-btn--line:hover { background: #2a1a1f; color: #fbf6ea; }

/* ── Right page: discussion cards ──────────────────────── */
.cr-hand {
  margin: -6px 0 0;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #4f4044;
}

.cr-hand a { color: #7a003c; }

.cr-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.cr-cards li:nth-child(1) { --tilt: -1.5deg; }
.cr-cards li:nth-child(2) { --tilt: 1.2deg; }
.cr-cards li:nth-child(3) { --tilt: 1deg; }
.cr-cards li:nth-child(4) { --tilt: -1.8deg; }

.cr-card {
  display: block;
  width: 100%;
  height: 150px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  perspective: 900px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease;
}

.cr-card:hover { transform: translateY(-5px) rotate(0deg); }

.cr-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.cr-card.is-flipped .cr-card-inner { transform: rotateY(180deg); }

.cr-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 4px solid #c99a2e;
  border-radius: 6px;
  box-shadow: 0 8px 14px rgba(42, 26, 31, 0.16);
  text-align: left;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cr-card-back { background: #7a003c; color: #f6e7cc; }
.cr-card-front { background: #fffaf0; color: #2a1a1f; transform: rotateY(180deg); }

.cr-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.cr-card-back .cr-card-label { color: #e8c97a; }
.cr-card-front .cr-card-label { color: #8a3412; }

.cr-card-num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.cr-card-q {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.cr-other {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 16px 0 0;
  border: none;
  border-top: 1px dotted #b49c76;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.cr-other img {
  width: 40px;
  height: 62px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 1px 3px 3px 1px;
  box-shadow: 0 4px 8px rgba(42, 26, 31, 0.2);
}

.cr-other-text { display: flex; flex-direction: column; gap: 2px; }

.cr-other-when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #4f4044;
}

.cr-other-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #7a003c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cr-tab:focus-visible,
.cr-card:focus-visible,
.cr-other:focus-visible,
.cr-btn:focus-visible {
  outline: 3px solid #c99a2e;
  outline-offset: 3px;
}

.cr-empty {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  text-align: center;
  background: #fbf6ea;
}

/* ── Below the book: vote slip + past reads ledger ─────── */
.cr-below {
  max-width: 1120px;
  margin: 6rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: start;
}

.cr-slip {
  padding: 1.5rem 1.6rem;
  background: #fffaf2;
  border: 1px solid #e0cfb2;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(60, 36, 16, 0.14);
}

.cr-slip[hidden] { display: none; }
.cr-slip:empty { display: none; }

.cr-slip .cr-btn { display: flex; margin-top: 1rem; }

.cr-side-title {
  margin: 0.35rem 0 0.4rem;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2a1a1f;
}

.cr-side-text {
  margin: 0 0 0.75rem;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  line-height: 1.5;
}

.cr-slip .cr-hand { margin: 0; }

.cr-ledger {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #2a1a1f;
}

.cr-ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px dotted #9c8462;
}

.cr-ledger-title { font-family: 'Fraunces', serif; font-size: 1.02rem; font-weight: 600; }
.cr-ledger-author { font-family: 'Fraunces', serif; font-style: italic; color: #4f4044; }
.cr-ledger-month {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b4a20;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .cr-card-inner, .cr-card, .cr-tab { transition: none; }
}

/* Tablet: the two pages stack; the ribbon becomes a short marker */
@media (max-width: 960px) {
  .cr-open-book { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cr-page-l { padding: 34px 76px 40px 36px; box-shadow: inset 0 -26px 30px -22px rgba(42, 26, 31, 0.3); }
  .cr-page-r { padding: 32px 36px 36px; box-shadow: inset 0 26px 30px -22px rgba(42, 26, 31, 0.3); }
  .cr-ribbon { bottom: auto; height: 130px; }
  .cr-below { grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
}

/* Phones: cover on top, text below */
@media (max-width: 640px) {
  .cr-page { padding: 1.75rem 0.75rem 3.5rem; }
  .cr-tabs { padding-left: 10px; gap: 6px; }
  .cr-tab { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .cr-tab-date { display: none; }
  .cr-page-l { flex-direction: column; align-items: center; padding: 30px 20px 32px; gap: 40px; }
  .cr-ribbon { right: 16px; top: 0; width: 26px; height: 96px; }
  .cr-cover { width: 170px; height: 257px; }
  .cr-note { width: 158px; left: -30px; }
  .cr-info { align-self: stretch; }
  .cr-actions-row { flex-direction: column; }
  .cr-page-r { padding: 28px 18px 30px; }
  .cr-cards { gap: 12px; }
  .cr-card { height: 120px; }
  .cr-card-q { font-size: 1rem; }
  .cr-ledger li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .cr-ledger-month { text-align: left; }
}

/* ==========================================================================
   Inner pages: the homepage's shelf header + reading lamp on every page.
   html.lamp-on (saved in localStorage by js/lamp.js) carries across pages:
   the room goes dark and the paper (books, calendar, slips) stays lamplit.
   ========================================================================== */
.site-page > header,
.site-page > main,
.site-page > footer {
  position: relative;
  z-index: 1;               /* above the lamp's pool of light */
}

.site-page .home-header { padding-bottom: 0.5rem; }

/* Shelf spines need a little more room at the inner-page scale */
@media (min-width: 901px) {
  .site-page .spine--home { height: max(118px, calc(150px * var(--u))); }
}

html.lamp-on .site-page {
  color: var(--h-ink);
}

html.lamp-on .site-page .footer {
  background: #150e0c;
  border-top: 2px solid #4a3527;
}

/* paper catches the lamplight */
html.lamp-on .cal-sheet,
html.lamp-on .cr-open-book,
html.lamp-on .cr-slip,
html.lamp-on .cal-ticket {
  box-shadow: 0 0 0 1px rgba(255, 214, 120, 0.12), 0 22px 46px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 196, 90, 0.08);
}

/* Meetings & Events: the side panel sits on the dark room */
html.lamp-on .cal-kicker,
html.lamp-on .cal-upnext-label { color: #f0b85a; }
html.lamp-on .cal-upnext-list,
html.lamp-on .cal-upnext-list li { border-color: #5a4535; }
html.lamp-on .cal-upnext-list button { color: var(--h-ink); }
html.lamp-on .cal-upnext-date { color: #f0b85a !important; }
html.lamp-on .cal-aside .cal-btn--solid { background: #f0c674; border-color: #f0c674; color: #1d1411; }
html.lamp-on .cal-aside .cal-btn--solid:hover { background: #ffd98c; border-color: #ffd98c; }
html.lamp-on .cal-aside .cal-btn--line { border-color: var(--h-ink); color: var(--h-ink); }
html.lamp-on .cal-aside .cal-btn--line:hover { background: var(--h-ink); color: #1d1411; }
html.lamp-on .cal-note { border-color: #6b5640; }
html.lamp-on .cal-note-title { color: var(--h-ink); }
html.lamp-on .cal-note-hand { color: #f0b85a; }
html.lamp-on .cal-note-hand a { color: #ffd27a; }

/* Current Read: the inactive tab reads on the dark room */
html.lamp-on .cr-tab:not([aria-selected="true"]) { background: #4a1630; color: #f6e7cc; }

/* Past Events + Our Team: controls under the book */
html.lamp-on .pe-arrow { border-color: #f2e6d3; color: #f2e6d3; }
html.lamp-on .pe-arrow:hover:not(:disabled) { background: #f2e6d3; color: #1d1411; }
html.lamp-on .pe-label,
html.lamp-on .chapters-empty { color: #f2e6d3; }

/* Join: intro and form sit on the dark room */
html.lamp-on .join-page { color: var(--h-ink); }
html.lamp-on .join-kicker { color: #f0b85a; }
html.lamp-on .join-title { color: #ffd27a; }
html.lamp-on .join-lede,
html.lamp-on .join-hint { color: #e2cfae; }
html.lamp-on .join-hint a { color: #ffd27a; }
html.lamp-on .join-field { color: var(--h-ink); }
html.lamp-on .join-field input,
html.lamp-on .join-field select { background: #2a1d18; border-color: #5a4535; color: var(--h-ink); }
html.lamp-on .join-field input::placeholder { color: #a8957a; }
html.lamp-on .join-field input:focus,
html.lamp-on .join-field select:focus { border-color: #f0c674; box-shadow: 0 0 0 3px rgba(240, 198, 116, 0.25); }
html.lamp-on .join-btn--primary { background: #f0c674; color: #1d1411; }
html.lamp-on .join-btn--primary:hover { background: #ffd98c; }
html.lamp-on .join-btn--outline { border-color: var(--h-ink); color: var(--h-ink); }
html.lamp-on .join-btn--outline:hover { background: var(--h-ink); color: #1d1411; }

/* Join: the newsletter slip is paper, so its text stays dark under the lamp */
html.lamp-on .return-slip { color: #2a1a1f; }
html.lamp-on .return-slip .join-btn--outline { border-color: #2a1a1f; color: #2a1a1f; }
html.lamp-on .return-slip .join-btn--outline:hover { background: #2a1a1f; color: #fbf5ed; }

/* Past Events title page: three random group shots under the dates */
.pe-title-shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  margin-top: 1.4rem;
}

.pe-title-shot {
  width: 31%;
  max-width: 150px;
  padding: 7px 7px 8px;
}

.pe-title-shot img { aspect-ratio: 1 / 1; object-fit: cover; }

.pe-title-shot figcaption {
  font-size: 0.98rem;
  line-height: 1.05;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pe-title-shot .scrap-tape { width: 56px; height: 18px; margin-left: -28px; top: -9px; }
.pe-title-shot--1 { transform: rotate(-6deg); }
.pe-title-shot--2 { transform: rotate(2deg); margin-top: 0.9rem; }
.pe-title-shot--3 { transform: rotate(5deg); }
.pe-title-shot--1 .scrap-tape { background: rgba(201, 154, 46, 0.55); }
.pe-title-shot--2 .scrap-tape { background: rgba(122, 0, 60, 0.3); transform: rotate(3deg); }
.pe-title-shot--3 .scrap-tape { background: rgba(95, 111, 82, 0.45); transform: rotate(-6deg); }

@media (max-width: 768px) {
  .pe-title-shots { gap: 0.6rem; margin-top: 1rem; }
  .pe-title-shot { padding: 5px 5px 6px; }
  .pe-title-shot figcaption { font-size: 0.85rem; }
}
