@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  --primary: #2c2c2c;
  --accent: #8a7355;
  --bg: #faf9f7;
  --bg-alt: #f0ede8;
  --border: #e8e2d9;
  --muted: #6b6b6b;
  --white: #ffffff;
  --heading-font: 'Cormorant Garamond', Georgia, serif;
  --body-font: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--primary);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

.label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--body-font);
  font-weight: 500;
}

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER / NAV ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-actions a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-actions a:hover { color: var(--primary); }

.nav-main {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.nav-main ul {
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-main ul::-webkit-scrollbar { display: none; }

.nav-main ul li a {
  display: block;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  white-space: nowrap;
}

.nav-main ul li a:hover,
.nav-main ul li a.active { color: var(--primary); }

.nav-main ul li a.active { border-bottom: 2px solid var(--accent); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); margin: 4px 0; transition: .3s; }

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  gap: 0;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}

.hero__content .label { margin-bottom: 20px; }
.hero__content h1 { margin-bottom: 24px; font-style: italic; }
.hero__content p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 440px; margin-bottom: 32px; }

.hero__image {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn--dark { background: var(--primary); color: var(--white); }
.btn--dark:hover { background: #444; }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #7a6347; }

.btn--sm { padding: 8px 20px; font-size: 11px; }

/* ─── SECTION ─── */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: var(--white); }

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section--dark .section__header { border-color: rgba(255,255,255,.15); }

.section__header h2 { font-style: italic; }

.section__header a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.section--dark .section__header a { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }

/* ─── BOOK GRID ─── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px;
}

.book-card { cursor: pointer; }

.book-card__cover {
  aspect-ratio: 2/3;
  background: var(--bg-alt);
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.book-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.book-card:hover .book-card__cover img { transform: scale(1.04); }

.book-card__title {
  font-family: var(--heading-font);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.book-card__author { font-size: 12px; color: var(--muted); }

.book-card__rating {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}

.book-card__rating span { font-size: 12px; color: var(--accent); }

/* ─── PODCAST GRID ─── */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.podcast-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color .2s;
}

.podcast-card:hover { border-color: var(--accent); }

.podcast-card__cover {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.podcast-card__cover img { width: 100%; height: 100%; object-fit: cover; }

.podcast-card__body { flex: 1; min-width: 0; }

.podcast-card__platform {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.podcast-card__title {
  font-family: var(--heading-font);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-card__desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__title {
  font-family: var(--heading-font);
  color: var(--white);
  font-size: 1.1rem;
}

/* ─── CALENDAR ─── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.event-card {
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--white);
  transition: border-color .2s;
}

.event-card:hover { border-color: var(--accent); }

.event-card__date {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
}

.event-card__month { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.event-card__type { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.event-card__title { font-family: var(--heading-font); font-size: 1.3rem; margin-bottom: 12px; }
.event-card__location { font-size: 13px; color: var(--muted); }

/* ─── BOOK CLUB ─── */
.bookclub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.bookclub-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s;
}

.bookclub-card:hover { border-color: var(--accent); }

.bookclub-card__image {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  overflow: hidden;
}

.bookclub-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bookclub-card:hover .bookclub-card__image img { transform: scale(1.04); }

.bookclub-card__body { padding: 24px; }
.bookclub-card__type { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px; margin-bottom: 12px; }
.bookclub-card__type--free { background: #e8f5e9; color: #2e7d32; }
.bookclub-card__type--paid { background: #fff3e0; color: #e65100; }
.bookclub-card__title { font-family: var(--heading-font); font-size: 1.4rem; margin-bottom: 10px; }
.bookclub-card__meta { font-size: 13px; color: var(--muted); }

/* ─── POSTS ─── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.post-card__image {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 20px;
}

.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__image img { transform: scale(1.04); }

.post-card__category { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.post-card__title { font-family: var(--heading-font); font-size: 1.5rem; line-height: 1.25; margin-bottom: 10px; }
.post-card__title:hover { color: var(--accent); }
.post-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.post-card__meta { font-size: 12px; color: var(--muted); }

/* ─── FILTERS ─── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tag {
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── SEARCH ─── */
.search-bar {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  font-family: var(--body-font);
  font-size: 14px;
  border: none;
  background: var(--white);
  outline: none;
  color: var(--primary);
}

.search-bar button {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  font-size: 13px;
  transition: all .2s;
}

.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── FLASH MESSAGES ─── */
.flash { padding: 14px 20px; margin-bottom: 20px; font-size: 14px; }
.flash--success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.flash--error { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }
.flash--info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--primary);
  outline: none;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; cursor: pointer; }
.form-check-label { font-size: 14px; }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.page-header .label { margin-bottom: 12px; }
.page-header h1 { font-style: italic; }
.page-header p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ─── INSTAGRAM ─── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
}

.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.instagram-item:hover img { transform: scale(1.06); }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox__inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; }
.lightbox__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; }
.lightbox__caption { color: rgba(255,255,255,.7); font-family: var(--heading-font); font-size: 1rem; margin-top: 12px; text-align: center; }

/* ─── MEMBER ─── */
.member-section { border: 1px solid var(--border); padding: 32px; margin-bottom: 32px; background: var(--white); }
.member-section h3 { font-family: var(--heading-font); font-size: 1.3rem; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

/* ─── SAVE BUTTON ─── */
.btn-save {
  background: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--body-font);
  letter-spacing: 1px;
}

.btn-save:hover, .btn-save.saved { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: var(--white); display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }

.footer-col h4 {
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-social { display: flex; gap: 16px; margin-top: 24px; }
.footer-social a { font-size: 12px; letter-spacing: 1px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-social a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--white); }

/* ─── NOTIFICATION PUSH ─── */
.push-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 24px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  display: none;
}

.push-banner.show { display: block; }
.push-banner h4 { font-family: var(--heading-font); font-size: 1.1rem; margin-bottom: 8px; }
.push-banner p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.push-banner .actions { display: flex; gap: 8px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .instagram-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__image { order: -1; height: 300px; }
  .hero__content { padding: 48px 24px; }

  .nav-main { display: none; }
  .nav-main.open { display: block; }
  .nav-main ul { flex-direction: column; padding: 0; gap: 0; }
  .nav-main ul li a { border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .hamburger { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  .books-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px; }
  .section { padding: 56px 0; }
  .page-header { padding: 48px 0 32px; }
}

@media (max-width: 480px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
