:root {
  --bg: #fffaf7;
  --bg-soft: #f9efeb;
  --surface: #ffffff;
  --ink: #180002;
  --ink-2: #3b2124;
  --muted: #755457;
  --line: rgba(24, 0, 2, 0.1);
  --accent: #c60116;
  --accent-dark: #620007;
  --accent-soft: #fef1f2;
  --ember: #d02513;
  --gold: #f59e0b;
  --gold-warm: #ae7041;
  --amber-soft: #fff7ed;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(24, 0, 2, 0.05), 0 1px 3px rgba(24, 0, 2, 0.06);
  --shadow-md: 0 14px 34px rgba(98, 0, 7, 0.12);
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", "Georgia", "Palatino Linotype", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--gold));
  z-index: 100;
  transition: width 0.08s linear;
}

/* Original WordPress Header Banner */
.top-banner {
  background: linear-gradient(90deg, #090001 0%, #180002 50%, #050000 100%);
  border-bottom: 2px solid var(--accent-dark);
}

.top-banner-link {
  display: block;
  max-width: 1180px;
  margin-inline: auto;
}

.top-banner-img {
  display: block;
  width: 100%;
  max-height: 148px;
  object-fit: cover;
  object-position: center;
}

/* Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.45rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 0.52rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 2.6rem 0 2.1rem;
  background: radial-gradient(circle at 10% 10%, rgba(198, 1, 22, 0.08), transparent 46%),
              radial-gradient(circle at 90% 18%, rgba(245, 158, 11, 0.09), transparent 44%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0.85rem 0 0.8rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--ink-2);
  margin: 0 0 1.35rem;
  max-width: 54ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

/* Featured Card */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.featured-thumb {
  display: block;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #180002;
}

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

.featured-body {
  padding: 1.4rem 1.55rem 1.55rem;
}

.featured-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ember);
  margin-bottom: 0.4rem;
}

.featured-card h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.22;
  margin: 0 0 0.6rem;
}

.featured-card h2 a {
  text-decoration: none;
}

.featured-card h2 a:hover {
  color: var(--accent);
}

.featured-card p {
  margin: 0 0 1.05rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.badge:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--ember) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

/* Filter Tabs & Post Grid */
.section {
  padding: 2.35rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  border-color: var(--accent-dark);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 1, 22, 0.28);
}

.post-card.is-hidden {
  display: none;
}

.post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #180002, #620007);
  overflow: hidden;
  position: relative;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.03);
}

.post-body {
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.28;
  margin: 0 0 0.55rem;
}

.post-title a {
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0 0 1rem;
  flex: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.read-more {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

/* Spotlight Book Banner */
.spotlight {
  background: linear-gradient(135deg, #180002 0%, #620007 58%, #991b1b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.spotlight h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.spotlight p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1.25rem;
  max-width: 55ch;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 14px;
  padding: 1rem;
}

.stat-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Single Article & Page */
.article-wrap {
  padding: 2.25rem 0 3.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin-inline: auto;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.article-meta a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.article-meta a:hover {
  color: var(--accent);
}

.article-hero-img {
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: #180002;
}

.article-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin-top: 1.5rem;
}

.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 1.8em 0 0.65em;
  line-height: 1.25;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}

.prose img {
  border-radius: 12px;
  margin: 1.25rem auto;
  box-shadow: var(--shadow-sm);
}

.prose figure {
  margin: 1.5rem 0;
  text-align: center;
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1.25em;
}

.prose audio {
  width: 100%;
  margin: 1rem 0;
}

.prose iframe {
  width: 100%;
  border-radius: 12px;
}

.tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.tag-pill {
  display: inline-block;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.tag-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.comments-box {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.comments-box h3 {
  font-family: var(--font-serif);
  margin: 0 0 1rem;
}

.comment-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 1.5rem auto 0;
}

.post-nav-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.post-nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-nav-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.post-nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Archive Banner */
.archive-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0;
}

.archive-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0.45rem 0 0.4rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #180002;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--accent-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .spotlight {
    grid-template-columns: 1fr;
  }
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .top-banner-img {
    max-height: 92px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
    display: flex;
  }
  .posts-grid,
  .post-nav,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
