/* ==========================================================================
   PAGES.CSS — Blog, Events, and shared inner-page styles
   Inherits all brand tokens from style.css
   ========================================================================== */

/* ── Page chrome ─────────────────────────────────────────────────────────── */
.page-main {
  padding-top: var(--nav-h);
  background: var(--cream);
  min-height: 100vh;
}

/* ── Page hero ───────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--ink);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest) 0%, var(--ink) 60%);
  opacity: 0.5;
}
.page-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-heading {
  font-size: clamp(4rem, 9vw, 9rem);
  color: var(--cream);
  line-height: 0.88;
  margin-top: 12px;
}

/* ── Shared inner section ────────────────────────────────────────────────── */
.page-section {
  padding: 100px 0 120px;
}
.page-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-empty {
  padding: 80px 0;
  color: var(--ink-45);
  font-size: 1.0625rem;
  font-weight: 300;
}

/* ── Blog listing grid ───────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 56px;
}

.post-card { display: flex; flex-direction: column; gap: 0; }

.post-card-image-link { display: block; }
.post-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 28px;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.post-card-image-link:hover img { transform: scale(1.03); }
.post-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--forest) 100%);
}
.post-card-image--placeholder .jefith {
  font-size: 8rem;
  color: rgba(255,231,206,0.06);
  line-height: 1;
}

.post-date {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.post-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}
.post-title a { color: inherit; transition: color var(--t); }
.post-title a:hover { color: var(--fire); }

.post-excerpt {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-45);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 48ch;
}
.post-read-more { font-size: 0.875rem; }

/* ── Blog / Event article ────────────────────────────────────────────────── */
.post-article { color: var(--ink); }

.post-hero {
  background: var(--ink);
  padding: 100px 0 80px;
}
.post-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,231,206,0.45);
  margin-bottom: 40px;
  transition: color var(--t);
}
.back-link:hover { color: var(--cream); }

.post-hero .post-date { color: var(--sage); }

.post-heading {
  font-size: clamp(3.5rem, 8vw, 8rem);
  color: var(--cream);
  line-height: 0.88;
  margin-top: 12px;
  margin-bottom: 24px;
}
.post-lede {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--cream-60);
  line-height: 1.7;
  max-width: 56ch;
  margin-top: 20px;
}

.post-cover {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rich text body */
.post-body {
  padding-top: 80px;
  padding-bottom: 80px;
}
.post-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 20px;
  line-height: 1.1;
}
.post-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
}
.post-body p {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-70);
  margin-bottom: 24px;
  max-width: 68ch;
}
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.post-body li {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-70);
  margin-bottom: 8px;
}
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body em { font-style: italic; }
.post-body img {
  max-width: 100%;
  margin: 40px 0;
}
.post-body blockquote {
  border-left: 3px solid var(--fire);
  padding-left: 24px;
  margin: 40px 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.4;
}

.post-nav {
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}

/* ── Events listing ──────────────────────────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--ink-12);
  align-items: start;
}
.event-card:last-child { border-bottom: 1px solid var(--ink-12); }

.event-date-col {
  padding-top: 4px;
}
.event-day {
  display: block;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.event-time {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-45);
  letter-spacing: 0.04em;
}

.event-body { display: flex; flex-direction: column; gap: 24px; }
.event-image {
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.event-card:hover .event-image img { transform: scale(1.03); }

.event-content { display: flex; flex-direction: column; gap: 12px; }
.event-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.event-title a { color: inherit; transition: color var(--t); }
.event-title a:hover { color: var(--fire); }

.event-excerpt {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-45);
  line-height: 1.7;
  max-width: 52ch;
}
.event-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.event-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fire);
  letter-spacing: 0.02em;
}
.event-capacity {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-45);
}

.event-hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

/* ── RSVP modal event summary strip ─────────────────────────────────────── */
.rsvp-event-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-70);
  background: rgba(197, 81, 45, 0.06);
  border-left: 3px solid var(--fire);
  padding: 12px 16px;
  margin-bottom: 28px;
  border-radius: 0 2px 2px 0;
}
.rsvp-dot {
  opacity: 0.35;
}

/* ── Featured event card ─────────────────────────────────────────────────── */
.event-card--featured {
  border-top-color: var(--fire);
  background: linear-gradient(to right, rgba(197, 81, 45, 0.04) 0%, transparent 50%);
}

.event-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--fire);
  color: var(--cream);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px 4px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
  width: fit-content;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .event-card { grid-template-columns: 160px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 80px 0 60px; }
  .page-section { padding: 60px 0 80px; }
  .posts-grid { grid-template-columns: 1fr; gap: 48px; }
  .event-card { grid-template-columns: 1fr; gap: 20px; }
  .event-date-col { display: flex; gap: 12px; align-items: baseline; }
  .post-body { padding-top: 48px; padding-bottom: 56px; }
  .post-heading { font-size: clamp(3rem, 10vw, 5rem); }
}
