/* ============================================================
   SOLUA — Blog index
   Built on the Anima design system. Reuses header/footer +
   tokens from styles.css; adds blog-specific layout below.
   Category colour-coding maps to the liturgical accents.
   ============================================================ */

/* category accent map (set per-card via .is-<cat>) */
.is-reflections { --cat: #7B9279; --cat-deep: #5E7459; --cat-ink: var(--color-cream); }
.is-seasons     { --cat: #6B7B9E; --cat-deep: #566488; --cat-ink: var(--color-cream); }
.is-family      { --cat: #8E6F84; --cat-deep: #75596C; --cat-ink: var(--color-cream); }
.is-saints      { --cat: #B86B5A; --cat-deep: #A85C46; --cat-ink: var(--color-cream); }
.is-news        { --cat: #D4B785; --cat-deep: #C2A468; --cat-ink: #2A2722; }

/* ============================================================
   LIGHT HEADER (this page sits on cream, not a dark hero)
   ============================================================ */
.site-header.light:not(.scrolled) {
  background: var(--color-cream);
  box-shadow: 0 1px 0 var(--color-border);
  color: var(--color-text-primary);
}
.site-header.light:not(.scrolled) .brand-mark { background: var(--sage); color: var(--color-cream); }

/* ============================================================
   INTRO  (clean, light — breadcrumb + title + CTA | illustration)
   ============================================================ */
.blog-intro { padding: 132px 0 0; }
.blog-intro .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  font-size: 13px; font-weight: 600; color: var(--color-text-muted);
}
.breadcrumb .here { color: var(--sage); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.blog-intro h1 {
  font-weight: 300; font-size: clamp(40px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 22px; max-width: 15ch; text-wrap: balance;
}
.blog-intro h1 b { font-weight: 700; }
.blog-intro h1 i { font-style: italic; font-weight: 300; }
.blog-intro .blog-sub {
  font-size: 19px; line-height: 1.55; color: var(--color-text-secondary);
  max-width: 44ch; margin: 0 0 32px; text-wrap: pretty;
}
.intro-art {
  border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3;
  background: #F0D9A4; box-shadow: var(--shadow-md);
}
.intro-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }

/* ============================================================
   FEATURED  (1 large + 2 stacked)
   ============================================================ */
.featured { padding: 72px 0 0; }
.featured-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }

/* shared card cover (real illustration + category tag) */
.cover {
  position: relative; overflow: hidden; background: var(--cat);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; z-index: 0; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.30) 0%, transparent 42%); }
/* app-screenshot covers (product news) float the phone on the accent colour */
.is-news .cover img { object-fit: contain; object-position: 50% 22%; padding: 16px 16px 0; }
.is-news .cover::after { display: none; }
.cat-chip {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; background: var(--cat);
  padding: 7px 12px; border-radius: var(--radius-pill);
}
.is-news .cat-chip { color: #2A2722; }
.post-meta { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--color-text-muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* large featured */
.feat-lead {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--cat);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 480px; padding: 36px; color: var(--cat-ink);
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.feat-lead:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feat-lead .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: 0; }
.feat-lead::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 36%, rgba(0,0,0,0.74) 100%); }
.feat-lead .f-inner { position: relative; z-index: 2; }
.feat-lead .cat-chip { margin-bottom: 20px; }
.feat-lead h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18ch; text-wrap: balance; }
.feat-lead p { font-size: 16px; line-height: 1.55; margin: 0 0 22px; max-width: 46ch; color: inherit; opacity: .9; text-wrap: pretty; }
.feat-lead .post-meta { color: rgba(255,255,255,0.78); }
.is-news.feat-lead .post-meta { color: rgba(42,39,34,0.6); }

/* two stacked secondary featured — full-bleed image with overlaid text */
.feat-side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.feat-mini {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 26px; color: #fff; min-height: 0;
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.feat-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-mini .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; z-index: 0; }
.feat-mini::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 34%, rgba(0,0,0,0.74) 100%); }
.feat-mini .m-body { position: relative; z-index: 2; }
.feat-mini .cat-chip { margin-bottom: 12px; }
.feat-mini h3 { font-size: 20px; font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 10px; color: #fff; text-wrap: pretty; }
.feat-mini .post-meta { margin-top: 2px; color: rgba(255,255,255,0.8); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.list-section { padding: 80px 0 96px; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.list-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.list-head h2 b { font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--color-text-secondary);
  background: var(--color-surface-1); border: 1px solid transparent;
  padding: 10px 18px; border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-calm);
}
.chip:hover { color: var(--color-text-primary); }
.chip.active { background: var(--color-charcoal); color: var(--color-cream); }
a.chip { display: inline-flex; align-items: center; }

/* ============================================================
   CATEGORY PAGE HERO  (immersive colour banner)
   ============================================================ */
.cat-page { padding: 116px 0 0; }
.cat-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--cat); color: #fff; padding: 60px 56px 56px;
  display: flex; flex-direction: column;
}
.cat-banner.is-news { color: #2A2722; }
.cat-banner .b-art {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  width: 360px; height: 130%; object-fit: cover; opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cat-banner .b-inner { position: relative; z-index: 2; max-width: 30ch; }
.cat-banner .breadcrumb { color: rgba(255,255,255,0.78); margin-bottom: 18px; }
.cat-banner.is-news .breadcrumb { color: rgba(42,39,34,0.6); }
.cat-banner .breadcrumb a:hover { color: #fff; }
.cat-banner.is-news .breadcrumb a:hover { color: #2A2722; }
.cat-banner h1 {
  font-weight: 300; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance;
}
.cat-banner h1 b { font-weight: 700; }
.cat-banner .b-desc { font-size: 19px; line-height: 1.5; margin: 0; opacity: .9; text-wrap: pretty; }
.cat-banner.is-news .b-desc { opacity: .72; }

/* category nav (cross-links between topics) */
.cat-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 36px 0 0; }

/* ============================================================
   POST GRID
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.card {
  display: flex; flex-direction: column; background: var(--color-cream);
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border);
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .cover { height: 168px; padding: 16px; }
.card .cover .mark { right: -22px; bottom: -22px; width: 150px; height: 150px; }
.card .c-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: pretty; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--color-text-secondary); margin: 0 0 20px; text-wrap: pretty; }
.card .post-meta { margin-top: auto; }
.card.is-hidden { display: none; }

.no-results { display: none; text-align: center; padding: 60px 0; color: var(--color-text-secondary); font-size: 17px; }
.no-results.show { display: block; }

.load-wrap { display: flex; justify-content: center; margin-top: 52px; }
.btn-load {
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--color-text-primary);
  background: transparent; border: 1px solid var(--color-border-dark);
  padding: 15px 30px; border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-calm); display: inline-flex; align-items: center; gap: 9px;
}
.btn-load:hover { background: var(--color-surface-1); }
.btn-load:disabled { opacity: .4; cursor: default; }
.btn-load svg { width: 16px; height: 16px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background: var(--color-surface-1); }
.newsletter .wrap { padding: 80px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.news-copy .eyebrow { color: var(--sage); }
.news-copy h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
.news-copy h2 b { font-weight: 700; }
.news-copy p { font-size: 18px; line-height: 1.55; color: var(--color-text-secondary); margin: 0; max-width: 38ch; text-wrap: pretty; }
.news-form { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; gap: 12px; }
.news-row input {
  flex: 1; font-family: inherit; font-size: 16px; color: var(--color-text-primary);
  background: var(--color-cream); border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-pill); padding: 16px 22px;
  transition: border-color var(--duration-base) var(--ease-calm);
}
.news-row input::placeholder { color: var(--color-text-muted); }
.news-row input:focus { outline: none; border-color: var(--sage); }
.news-form .note { font-size: 13px; color: var(--color-text-muted); margin: 4px 0 0; }
.news-form .note a { color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.news-done { font-size: 16px; color: var(--sage-deep); font-weight: 600; display: none; align-items: center; gap: 10px; }
.news-done svg { width: 20px; height: 20px; }
.news-form.sent .news-row, .news-form.sent .note { display: none; }
.news-form.sent .news-done { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .blog-intro { padding-top: 112px; }
  .blog-intro .wrap { grid-template-columns: 1fr; gap: 36px; }
  .intro-art { order: -1; max-width: 460px; aspect-ratio: 16 / 10; }
  .featured-grid { grid-template-columns: 1fr; }
  .feat-lead { min-height: 380px; }
  .feat-mini { min-height: 240px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter .wrap { grid-template-columns: 1fr; gap: 32px; }
  .cat-banner .b-art { display: none; }
  .cat-banner .b-inner { max-width: none; }
}
@media (max-width: 640px) {
  .blog-intro { padding-top: 100px; }
  .featured { padding: 56px 0 0; }
  .list-section { padding: 60px 0 72px; }
  .post-grid { grid-template-columns: 1fr; }
  .cat-page { padding-top: 100px; }
  .cat-banner { padding: 44px 28px 40px; }
  .news-row { flex-direction: column; }
  .news-row input, .news-form .btn { width: 100%; }
}
