/*
 Theme Name:   Pulse Index Theme
 Theme URI:    https://thepulseindex.com
 Description:  Custom child theme for The Pulse Index — Geopolitical & Economic Analysis
 Author:       The Pulse Index
 Author URI:   https://thepulseindex.com
 Version:      1.0.0
 Text Domain:  pulse-theme
*/

/* ============================================
   NOTE: "Template: flavor" means this is a child 
   theme of flavor. If using flavor as 
   your parent theme, keep this as-is.
   If using a different parent theme, change
   "Template:" to match the parent theme's 
   folder name (e.g., flavor, flavor-developer, etc.)
   ============================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --ink: #0a0a0a;
  --paper: #f5f0e8;
  --cream: #ede7db;
  --accent: #c41a1a;
  --accent-dark: #9e1515;
  --muted: #6b6357;
  --border: #d4cfc5;
  --highlight: #ffd700;
  --card-bg: #fffdf8;
}

/* ---- RESET PARENT THEME ---- */
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper)!important;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

* { box-sizing: border-box; }

a { color: var(--ink); }

/* ---- TICKER BAR ---- */
.ticker-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-track span { opacity: 0.7; }
.ticker-track span .hot { color: var(--accent); font-weight: 600; opacity: 1; }
.ticker-track span .gold { color: var(--highlight); font-weight: 600; opacity: 1; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- NAV ---- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.nav-logo .mark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo .mark span { color: var(--accent); }
.nav-logo .tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-left: 10px;
}

/* WP Nav Menu Overrides */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .cta-btn,
.nav-links .cta-btn a {
  background: var(--accent);
  color: white !important;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.nav-links .cta-btn:hover,
.nav-links .cta-btn a:hover { background: var(--accent-dark); }
.nav-links .sub-menu { display: none; } /* hide dropdowns for now */

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  border-bottom: 3px solid var(--ink);
}
.hero-left {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}
.hero-edition {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-edition::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 15px 36px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.hero-right {
  background: var(--ink);
  color: var(--paper);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.featured-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 20px;
}
.featured-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.featured-excerpt {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 24px;
  max-width: 440px;
}
.featured-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-bottom: 30px;
}
.featured-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.featured-link:hover { gap: 14px; }
.featured-link::after { content: '→'; }

/* ---- SECTION DIVIDER ---- */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 60px 60px 40px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- ARTICLES GRID ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 60px 60px;
}
.article-card {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--card-bg);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.article-card:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.article-card:hover .article-cat { color: var(--highlight); border-color: var(--highlight); }
.article-card:hover .article-excerpt { opacity: 0.7; color: var(--paper); }
.article-card:hover .article-read { color: var(--accent); }
.article-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
  flex: 1;
  transition: all 0.3s;
}
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.article-read {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

/* ---- BOOK SECTION ---- */
.book-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.book-visual {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.book-visual::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255,255,255,0.08);
}
.book-mockup {
  width: 280px;
  height: 380px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
  border: 2px solid #8b7a3c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
  box-shadow: 12px 12px 0 rgba(0,0,0,0.3);
  transform: rotate(-2deg);
  transition: transform 0.5s;
}
.book-mockup:hover { transform: rotate(0deg); }
.book-mockup::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(139,122,60,0.4);
}
.book-mockup h3 {
  font-family: 'Playfair Display', serif;
  color: #d4af37;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.book-mockup .book-sub {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}
.book-mockup .book-author {
  color: #d4af37;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 30px;
}
.book-info {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.book-info .featured-label { color: var(--accent); margin-bottom: 16px; }
.book-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.book-info p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 460px;
}
.book-price {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.book-price .price {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
}
.book-price .detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- EVENTS ---- */
.events-section { padding: 0 60px 80px; }
.event-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.event-row:hover {
  padding-left: 20px;
  border-color: var(--accent);
}
.event-date-block {
  font-family: 'Playfair Display', serif;
  text-align: center;
  border-right: 2px solid var(--accent);
  padding-right: 40px;
}
.event-date-block .month {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.event-date-block .day {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.event-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.event-info p {
  color: var(--muted);
  font-size: 14px;
}
.event-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 16px;
  border: 1px solid var(--border);
}

/* ---- NEWSLETTER ---- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 50%;
}
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}
.newsletter p {
  font-size: 17px;
  opacity: 0.6;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  padding: 18px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--paper);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: white;
  padding: 18px 32px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Source Sans 3', sans-serif;
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* ---- FOOTER ---- */
.site-footer {
  padding: 60px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 80px;
}
.footer-brand .mark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-brand .mark span { color: var(--accent); }
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  color: var(--muted);
}
.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ---- SINGLE ARTICLE ---- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}
.article-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { opacity: 0.4; }
.article-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  transition: all 0.2s;
}
.article-category:hover { background: var(--accent); color: white; }
.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.article-deck {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 680px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-block {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 18px;
}
.author-info .name { font-weight: 600; font-size: 15px; }
.author-info .role { font-size: 13px; color: var(--muted); }
.meta-details {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.meta-details .divider { opacity: 0.3; }

/* ---- ARTICLE BODY (WordPress content) ---- */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-body p {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 28px;
  color: #1a1a1a;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 28px;
  margin: 40px 0;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.article-body blockquote cite {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 12px;
}
.article-body .wp-block-pullquote,
.article-body .pullout {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 32px;
  margin: 48px 0;
  position: relative;
  border-left: none;
  border-right: none;
}
.article-body .wp-block-pullquote::before,
.article-body .pullout::before {
  content:none!important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  position: absolute;
  top: -8px;
  left: 32px;
  background: var(--cream);
  padding: 0 8px;
}
.article-body ul, .article-body ol {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 28px;
  padding-left: 24px;
  color: #1a1a1a;
}
.article-body li { margin-bottom: 8px; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(196, 26, 26, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 48px 0;
}
.article-body figure {
  margin: 48px 0;
}
.article-body figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* ---- TAGS ---- */
.article-tags {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ---- SHARE BAR ---- */
.share-bar {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.share-links { display: flex; gap: 16px; }
.share-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.share-links a:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--cream);
}

/* ---- RELATED ARTICLES ---- */
.related-section { border-top: 3px solid var(--ink); padding: 60px; }
.related-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.related-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.related-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .site-nav { padding: 16px 24px; }
  .nav-logo .tagline { display: none; }
  .nav-links { gap: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 50px 24px; }
  .hero-left::after { display: none; }
  .hero-right { padding: 40px 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .book-section { grid-template-columns: 1fr; }
  .book-visual { padding: 50px; }
  .book-info { padding: 40px 24px; }
  .events-section { padding: 0 24px 60px; }
  .event-row { grid-template-columns: 100px 1fr; gap: 20px; }
  .event-type { display: none; }
  .newsletter { padding: 60px 24px; }
  .newsletter h2 { font-size: 32px; }
  .newsletter-form { flex-direction: column; }
  footer, .site-footer { grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 24px; }
  .section-head { padding: 40px 24px 24px; }
  .articles-grid { padding: 0 24px 40px; }
  .article-header { padding: 48px 20px 32px; }
  .article-meta { flex-wrap: wrap; gap: 16px; }
  .meta-details { margin-left: 0; }
  .article-body { padding: 32px 20px 60px; }
  .related-section { padding: 40px 20px; }
  .share-bar { flex-direction: column; gap: 16px; }
  .wp-card { grid-template-columns: 1fr; gap: 24px; }
  .wp-cover { width: 140px; height: 180px; }
  .wp-right { flex-direction: row; align-items: center; }
  .wp-action { width: auto; }
  .book-hero { grid-template-columns: 1fr; }
  .book-hero-visual { padding: 50px; min-height: 360px; }
  .book-hero-info { padding: 40px 24px; }
  .book-purchase { max-width: 100%; }
  .book-details-grid { grid-template-columns: 1fr; }
  .book-about-col { border-right: none; border-bottom: 1px solid var(--border); }
  .author-section { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-visual { min-height: 280px; padding: 40px; }
  .featured-post-content { padding: 32px 24px; }
  .filter-bar { padding: 0 24px; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 24px 40px; }
  .wp-grid { padding: 24px; }
  .page-header { padding: 48px 24px 32px; }
}

/* ---- PAGE HEADER (shared) ---- */
.page-header {
  padding: 80px 60px 60px;
  border-bottom: 3px solid var(--ink);
}
.page-header .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header .label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
}
.page-header .desc {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 600px;
  font-weight: 300;
}

/* ---- WHITE PAPER CARDS ---- */
.wp-grid {
  padding: 60px;
  display: flex;
  flex-direction: column;
}
.wp-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s;
}
.wp-card:first-child { padding-top: 0; }
.wp-card:hover { padding-left: 16px; }
.wp-card:hover .wp-cover { transform: rotate(0deg) scale(1.02); }
.wp-card:hover .wp-action { background: var(--accent); color: white; border-color: var(--accent); }
.wp-cover {
  width: 180px;
  height: 240px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  transform: rotate(-1deg);
  transition: all 0.4s;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.12);
}
.wp-cover::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.wp-cover h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.wp-cover .type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: 12px;
}
.wp-details { flex: 1; }
.wp-details .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 14px;
}
.wp-details h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.wp-details .excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 16px;
}
.wp-meta-row {
  display: flex;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.wp-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}
.wp-price {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
}
.wp-price.free { color: var(--accent); font-size: 20px; }
.wp-action {
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  width: 100%;
}
.wp-format {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---- BOOK SALES PAGE ---- */
.book-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: 3px solid var(--ink);
}
.book-hero-visual {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.book-hero-visual::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255,255,255,0.06);
}
.book-cover-large {
  width: 320px;
  height: 440px;
  background: linear-gradient(145deg, #1a1a2e 0%, #0a0a1a 100%);
  border: 2px solid #8b7a3c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
  box-shadow: 20px 20px 0 rgba(0,0,0,0.3);
  transform: rotate(-2deg);
  transition: transform 0.5s;
}
.book-cover-large:hover { transform: rotate(0deg); }
.book-cover-large::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(139,122,60,0.4);
}
.book-cover-large h2 {
  font-family: 'Playfair Display', serif;
  color: #d4af37;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.book-cover-large .sub {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}
.book-cover-large .author {
  color: #d4af37;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 36px;
}
.book-hero-info {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.book-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.book-hero-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}
.book-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 24px;
}
.book-author-line {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}
.book-author-line strong { color: var(--ink); font-weight: 600; }
.book-hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 480px;
}
.book-purchase {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 400px;
}
.book-purchase-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.book-purchase-price .amount {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
}
.book-purchase-price .detail { font-size: 14px; color: var(--muted); }
.book-purchase-format {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}
.btn-buy {
  display: block;
  width: 100%;
  background: var(--accent);
  color: white;
  padding: 18px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  transition: background 0.3s;
  margin-bottom: 12px;
}
.btn-buy:hover { background: var(--accent-dark); }
.book-purchase-note { font-size: 13px; color: var(--muted); text-align: center; }
.book-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.book-about-col {
  padding: 80px 60px;
  border-right: 1px solid var(--border);
}
.book-about-col h2, .book-toc-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}
.book-about-col p {
  font-size: 17px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 24px;
  max-width: 520px;
}
.book-toc-col { padding: 80px 60px; }
.toc-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  min-width: 32px;
}
.toc-title { font-size: 16px; font-weight: 500; }
.author-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  padding: 80px 60px;
  align-items: center;
  border-bottom: 3px solid var(--ink);
}
.author-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 42px;
}
.author-bio h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-bio .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.author-bio p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

/* ---- BLOG PAGE ---- */
.filter-bar {
  display: flex;
  gap: 0;
  padding: 0 60px;
  border-bottom: 3px solid var(--ink);
  overflow-x: auto;
}
.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); border-bottom-color: var(--accent); }
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s;
}
.featured-post:hover .featured-post-content { background: var(--cream); }
.featured-post-visual {
  background: var(--ink);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.featured-post-visual::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255,255,255,0.06);
}
.featured-post-visual .big-quote {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--paper);
  text-align: center;
  line-height: 1.4;
  max-width: 400px;
  opacity: 0.9;
}
.featured-post-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.3s;
}
.featured-post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.featured-post-content .excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 440px;
}
.featured-post-content .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}
.featured-post-content .read-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured-post-content .read-link::after { content: '→'; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 60px 60px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 60px 80px;
}
.pagination a, .pagination span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pagination .nav-arrow {
  font-size: 16px;
  width: auto;
  padding: 0 20px;
  font-weight: 600;
}

.article-body .wp-block-pullquote, .article-body .pullout{
  background:none!important;
  border-top:3px solid;
}