/* Blog index + category/tag/author/date archives */

.bl-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(124, 143, 214, 0.2), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(212, 165, 116, 0.14), transparent 50%),
    linear-gradient(160deg, #2a1845 0%, #1a0f2e 65%, #140b24 100%);
}

.bl-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 10% 25%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 75%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 35%, #fff 50%, transparent 51%);
}

.bl-hero__inner { position: relative; }

.bl-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D4A574;
}

.bl-hero__title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

.bl-hero__subtitle {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.bl-page { padding-top: 0; padding-bottom: 72px; }

/* Category chips overlap the hero */
.bl-cats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -28px 0 36px;
  padding: 10px;
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(26, 15, 46, 0.1);
}

.bl-cats__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2D2A32;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.bl-cats__item span {
  padding: 1px 7px;
  font-size: 0.72rem;
  color: #6B6670;
  background: #F1EEEA;
  border-radius: 999px;
}

.bl-cats__item:hover {
  color: #2D2A32;
  text-decoration: none;
  background: #F4F2EF;
}

.bl-cats__item.is-active {
  color: #fff;
  background: #1a0f2e;
}

.bl-cats__item.is-active span {
  color: #1a0f2e;
  background: #D4A574;
}

/* Cards */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: 18px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.bl-card:hover,
.bl-card:focus-within {
  transform: translateY(-3px);
  border-color: #D4A574;
  box-shadow: 0 14px 30px rgba(26, 15, 46, 0.1);
}

.bl-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(124, 143, 214, 0.35), transparent 60%),
    linear-gradient(145deg, #2a1845, #1a0f2e);
}

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

.bl-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 2rem;
  color: #D4A574;
}

.bl-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.bl-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8A8490;
}

.bl-card__cat { color: #9A6B3C; }

.bl-card__title {
  margin: 8px 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.bl-card__title a {
  color: #2D2A32;
  text-decoration: none;
}

/* Whole card is clickable */
.bl-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.bl-card__title a:focus-visible { outline: none; }
.bl-card:focus-within { outline: 2px solid #D4A574; outline-offset: 2px; }

.bl-card__excerpt {
  flex: 1;
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6B6670;
}

.bl-card__cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: #6B5B7E;
}

.bl-card:hover .bl-card__cta { color: #1a0f2e; }

/* Pagination */
.bl-pagination { margin-top: 40px; }

.bl-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bl-pagination a,
.bl-pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-weight: 700;
  color: #2D2A32;
  text-decoration: none;
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: 999px;
}

.bl-pagination a:hover { border-color: #D4A574; text-decoration: none; }

.bl-pagination .current {
  color: #fff;
  background: #1a0f2e;
  border-color: #1a0f2e;
}

.bl-empty {
  padding: 48px 24px;
  text-align: center;
  color: #6B6670;
  background: #fff;
  border: 1px dashed #E8E4DF;
  border-radius: 16px;
}

.bl-empty a { font-weight: 700; color: #7A5230; }

@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .bl-hero { padding: 40px 0 60px; }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-cats { gap: 4px; padding: 8px; }
  .bl-cats__item { padding: 7px 11px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-card { transition: none; }
  .bl-card:hover { transform: none; }
}

/* Without the category bar, keep content clear of the hero */
.bl-page > .container > :first-child:not(.bl-cats):not(.sp-article) { margin-top: 40px; }

/* 404 */
.nf-hero { padding: 80px 0 96px; }
.nf-inner { max-width: 760px; }

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.nf-btn:hover { color: #fff; text-decoration: none; border-color: #D4A574; }

.nf-btn--gold { color: #1a0f2e; background: #D4A574; border-color: #D4A574; }
.nf-btn--gold:hover { color: #1a0f2e; background: #E8C9A1; }

.nf-search {
  display: flex;
  max-width: 480px;
  margin-bottom: 36px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.nf-search input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  font-size: 1rem;
  color: #fff;
  background: none;
  border: 0;
  outline: none;
}

.nf-search input::placeholder { color: rgba(255, 255, 255, 0.5); }

.nf-hero .nf-search button,
.nf-hero .nf-search button:hover {
  min-height: 0;
  padding: 10px 20px;
  font-weight: 700;
  color: #1a0f2e;
  background: #D4A574;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}

.nf-signs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.nf-signs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 10px;
}

.nf-signs a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.06); }

@media (max-width: 560px) {
  .nf-hero { padding: 48px 0 64px; }
  .nf-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Single post + generic page */
.sp-hero { padding: 48px 0 104px; }
.sp-hero__inner { max-width: 820px; }

.sp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.sp-crumbs a { color: #D4A574; font-weight: 700; text-decoration: none; }
.sp-crumbs a:hover { color: #E8C9A1; }

.sp-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; }

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.sp-page { padding-bottom: 80px; }

.sp-article {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: -64px auto 0;
  padding: 48px 56px;
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(26, 15, 46, 0.08);
}

.sp-cover { margin: -48px -56px 36px; }

.sp-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
}

/* Long-form content */
.rp-prose {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #2D2A32;
}

/* Vertical rhythm (the theme resets all margins to 0) */
.rp-prose p,
.rp-prose ul,
.rp-prose ol,
.rp-prose blockquote,
.rp-prose figure,
.rp-prose table,
.rp-prose .wp-block-image { margin: 0 0 1.1em; }
.rp-prose p:empty { display: none; }

.rp-prose h2,
.rp-prose h3,
.rp-prose h4 {
  margin: 1.8em 0 0.5em;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1a0f2e;
  background: none;
  border: 0;
}

.rp-prose h2 { font-size: 1.9rem; }
.rp-prose h3 { font-size: 1.5rem; }
.rp-prose h4 { font-size: 1.25rem; }
.rp-prose h2::before, .rp-prose h2::after, .rp-prose h3::before, .rp-prose h3::after { content: none; }
.rp-prose > :first-child { margin-top: 0; }

.rp-prose a {
  color: #7A5230;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(122, 82, 48, 0.35);
  text-underline-offset: 3px;
}

.rp-prose a:hover { color: #1a0f2e; text-decoration-color: currentColor; }

.rp-prose ul,
.rp-prose ol { margin-left: 0; padding-left: 1.4em; }
.rp-prose li + li { margin-top: 0.4em; }
.rp-prose li::marker { color: #D4A574; }

.rp-prose strong { color: #1a0f2e; }

.rp-prose blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
  background: rgba(212, 165, 116, 0.1);
  border-left: 4px solid #D4A574;
  border-radius: 0 12px 12px 0;
}

.rp-prose img,
.rp-prose figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.rp-prose figure { margin: 1.8em 0; }
.rp-prose figcaption { margin-top: 8px; font-size: 0.85rem; color: #6B6670; text-align: center; }

.rp-prose hr {
  margin: 2.2em auto;
  width: 80px;
  border: 0;
  border-top: 2px solid #E8C9A1;
}

.rp-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rp-prose th, .rp-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #E8E4DF; }

/* End-of-article call to action */
.sp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 28px 30px;
  color: #fff;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 165, 116, 0.24), transparent 60%),
    linear-gradient(145deg, #2a1845, #1a0f2e);
  border-radius: 18px;
}

.sp-cta h2 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

.sp-cta p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.sp-cta .nf-btn { flex-shrink: 0; }

.sp-subpages {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #E8E4DF;
}

.sp-subpages h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6670;
}

.sp-subpages ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.sp-subpages a {
  display: inline-block;
  padding: 8px 14px;
  font-weight: 700;
  color: #2D2A32;
  text-decoration: none;
  background: #F4F2EF;
  border-radius: 999px;
}

.sp-subpages a[aria-current] { color: #fff; background: #1a0f2e; }

.sp-related { margin-top: 64px; }

.sp-related__title {
  margin: 0 0 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #2D2A32;
  text-align: center;
}

@media (max-width: 760px) {
  .sp-hero { padding: 36px 0 84px; }
  .sp-article { margin-top: -52px; padding: 28px 20px; border-radius: 16px; }
  .sp-cover { margin: -28px -20px 24px; }
  .sp-cover img { border-radius: 16px 16px 0 0; }
  .rp-prose { font-size: 1.02rem; }
  .rp-prose h2 { font-size: 1.6rem; }
  .sp-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}
