/* ════════════════════════════════════════════
   ARCHIVE PAGE STYLES
   ════════════════════════════════════════════ */

/* ── PAGE HERO (matches books/about/newsletter pages) ── */
.page-hero {
  padding: 180px 24px 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(107, 16, 32, 0.18), transparent 70%);
}

.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
}

.hero-ornament .ornament-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood-mid, #8b1a2e));
}

.hero-ornament .ornament-line.right {
  background: linear-gradient(90deg, var(--blood-mid, #8b1a2e), transparent);
}

.hero-ornament .ornament-glyph {
  width: 10px;
  height: 10px;
  background: var(--blood, #6b1020);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-eyebrow {
  font-family: var(--font-head, 'Cinzel');
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blood-mid, #8b1a2e);
  margin: 0 0 20px 0;
  text-align: center;
}

.hero-name {
  font-family: var(--font-display, 'Cinzel Decorative');
  font-size: clamp(40px, 7vw, 80px);
  color: var(--parchment, #e8dcc8);
  margin: 0;
  line-height: 1.1;
  text-align: center;
  font-weight: 700;
}

.hero-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--blood, #6b1020), transparent);
  margin: 28px auto;
}

.hero-tagline {
  font-family: var(--font-body, 'EB Garamond');
  font-size: 18px;
  font-style: italic;
  color: var(--parchment2, #c4b49a);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 540px;
  text-align: center;
}

.archive-body {
  max-width: 1000px;
  margin: 20px auto 80px;
  padding: 0 24px;
}

/* ── TAB NAVIGATION ── */
.archive-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border, #2a2420);
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 16px 32px;
  background: transparent;
  border: none;
  color: var(--parchment2, #c4b49a);
  font-family: var(--font-head, 'Cinzel');
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
  bottom: -1px;
}

.tab-btn:hover {
  color: var(--gold, #c9a84c);
}

.tab-btn.active {
  color: var(--parchment, #e8dcc8);
  border-bottom-color: var(--blood, #6b1020);
}

/* ── TAB CONTENT ── */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BLOG TAB ── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-item {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.blog-item:hover {
  background: var(--raise);
  border-color: var(--blood);
}

.blog-item h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 4vw, 24px);
  color: var(--parchment);
  margin: 0 0 12px 0;
  letter-spacing: 0.05em;
}

.blog-item h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-item h3 a:hover {
  color: var(--gold);
}

.blog-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--parchment2);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.blog-meta {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--parchment3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* ── POST VIEW (inline article display) ── */
.post-view {
  display: none;
  max-width: 740px;
  margin: 0 auto;
}

.post-view.active {
  display: block;
}

.blog-list.hidden {
  display: none;
}

.post-back {
  display: inline-block;
  font-family: var(--font-head, 'Cinzel');
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment3, #8c7d68);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}

.post-back:hover {
  color: var(--gold, #c9a84c);
}

.post-view-title {
  font-family: var(--font-display, 'Cinzel Decorative');
  font-size: clamp(28px, 5vw, 44px);
  color: var(--parchment, #e8dcc8);
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.post-view-meta {
  font-family: var(--font-head, 'Cinzel');
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blood-mid, #8b1a2e);
  margin: 0 0 40px 0;
}

.post-view-content {
  font-family: var(--font-body, 'EB Garamond');
  font-size: 18px;
  line-height: 1.8;
  color: var(--parchment2, #c4b49a);
}

.post-view-content p {
  margin: 0 0 22px 0;
}

.post-view-content h2,
.post-view-content h3 {
  font-family: var(--font-head, 'Cinzel');
  color: var(--parchment, #e8dcc8);
  margin: 40px 0 16px 0;
}

.post-view-content a {
  color: var(--gold, #c9a84c);
}

.post-view-content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

.post-view-content blockquote {
  border-left: 3px solid var(--blood, #6b1020);
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--parchment, #e8dcc8);
}

/* ── RESOURCES TAB ── */
.resources-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.resource-category {
  border-top: 2px solid var(--border);
  padding-top: 40px;
}

.resource-category:first-child {
  border-top: none;
  padding-top: 0;
}

.category-title {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.resource-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resource-item {
  padding: 20px;
  background: rgba(107, 16, 32, 0.1);
  border-left: 3px solid var(--blood);
  transition: all 0.2s ease;
}

.resource-item:hover {
  background: rgba(107, 16, 32, 0.2);
  transform: translateX(8px);
}

.resource-item h4 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--parchment);
  margin: 0 0 8px 0;
}

.resource-item h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.resource-item h4 a:hover {
  color: var(--gold);
}

.resource-item p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--parchment2);
  margin: 0;
  line-height: 1.6;
}

/* ── ESSENTIALS & WONDERS TAB ── */
.essentials-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.essentials-category {
  border-top: 2px solid var(--border);
  padding-top: 40px;
}

.essentials-category:first-child {
  border-top: none;
  padding-top: 0;
}

.essentials-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.essentials-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  transition: all 0.3s ease;
}

.essentials-item.has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.essentials-image-link {
  display: block;
  background: var(--deep, #0e0b09);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.essentials-image {
  max-width: 100%;
  height: 140px;
  width: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.essentials-item.has-image:hover .essentials-image {
  transform: scale(1.04);
}

.essentials-item-body {
  padding: 16px;
}

.essentials-item:hover {
  background: var(--raise);
  border-top-color: var(--blood);
  transform: translateY(-4px);
}

.essentials-item h4 {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--parchment);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.essentials-item h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.essentials-item h4 a:hover {
  color: var(--gold);
}

.essentials-item p {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--parchment2);
  margin: 0 0 8px 0;
  line-height: 1.55;
}

.affiliate-note {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--parchment3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 12px 0 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-hero {
    padding: 140px 20px 60px;
  }

  .hero-ornament .ornament-line {
    width: 50px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .archive-tabs {
    margin-bottom: 40px;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 12px;
  }

  .blog-item {
    padding: 24px;
  }

  .essentials-items {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .essentials-image {
    height: 120px;
  }

  .archive-body {
    margin: 20px auto 60px;
  }
}

/* ── SCROLL REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  animation: revealArchive 0.6s ease forwards;
}

@keyframes revealArchive {
  to {
    opacity: 1;
  }
}