/*
Theme Name: ESENVAR Premium
Theme URI: https://esenvar.com
Author: ESENVAR Publishing
Author URI: https://esenvar.com
Description: ESENVAR Premium — dark editorial experience. Classical library atmosphere with golden lighting, cinematic hero, and full editorial typography. Built from the ESENVAR Premium Visual Design skill.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary — all rights reserved
Text Domain: esenvar-premium
Tags: dark, editorial, premium, custom-menu, translation-ready

Fonts: Cormorant Garamond (display/headings) + EB Garamond (body) + Manrope (UI) via Google Fonts.
Reference: "Amostra nº 2 — biblioteca clássica, ambiente escuro, iluminação dourada"
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ════════════════════════════════════════════════════
   DESIGN TOKENS — DARK LIBRARY PREMIUM
   Reference: esenvar-premium-visual-design skill
   ════════════════════════════════════════════════════ */
:root {
  /* Foundations */
  --obsidian:      #18120D;
  --midnight:      #221B14;
  --dusk:          #2D2319;
  --ash:           #382C20;
  --ash-light:     #443626;

  /* Text */
  --parchment:     #EADDCC;
  --cream:         #F5EFE2;
  --fog:           #A08568;
  --mist:          #8A7460;

  /* Copper/Bronze — amber warmth */
  --gold:          #C07A30;
  --gold-light:    #D99655;
  --gold-dim:      #8B5A22;
  --gold-glow:     rgba(192,122,48,.15);
  --gold-glow-sm:  rgba(192,122,48,.08);

  /* Warm accents */
  --copper:        #B06040;
  --teal:          #1F5A5B;
  --amber:         #D4730A;

  /* Semantic aliases */
  --bg:            var(--obsidian);
  --surface:       var(--midnight);
  --surface-alt:   var(--dusk);
  --text:          var(--parchment);
  --text-2:        var(--fog);
  --text-3:        var(--mist);
  --accent:        var(--gold);
  --accent-light:  var(--gold-light);
  --accent-dim:    var(--gold-dim);
  --border:        var(--ash);
  --border-subtle: rgba(60,44,28,.6);

  /* Typography */
  --display:  'Cormorant Garamond', Georgia, serif;
  --serif:    'EB Garamond', Georgia, serif;
  --sans:     'Manrope', system-ui, sans-serif;

  /* Spacing & Layout */
  --radius:    6px;
  --radius-lg: 10px;
  --max-w:     1280px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.4);
  --shadow:     0 8px 24px rgba(0,0,0,.5);
  --shadow-lg:  0 20px 56px rgba(0,0,0,.65);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.75);
  --shadow-gold: 0 8px 32px rgba(192,122,48,.25);

  /* Light editorial surfaces — for parchment sections */
  --parchment-section:    #F8F4ED;
  --parchment-card:       #FCF9F5;
  --parchment-card-hover: #FCF9F5;
  --parchment-border:     rgba(120,88,48,.18);
  --on-parchment:         #1C1409;
  --on-parchment-2:       #5C4A30;
  --on-parchment-3:       #8C7858;

  /* Transitions */
  --t-fast:   120ms ease;
  --t:        200ms ease;
  --t-slow:   360ms ease;
}

/* ════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--obsidian); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--cream);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 600; }

.serif    { font-family: var(--serif); }
.display  { font-family: var(--display); }
p         { margin-bottom: 1em; font-family: var(--serif); font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ════════════════════════════════════════════════════ */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.sr-only    { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.section-header {
  margin-bottom: 56px;
}
.section-header h2 {
  margin-top: 16px;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--fog);
  max-width: 520px;
  line-height: 1.75;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--ash) 30%, var(--ash) 70%, transparent 100%);
  border: none;
  margin: 0;
}

.gold-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 20px 0;
}

/* ════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,12,14,.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(192,122,48,.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  flex-shrink: 0;
}
.nav__logo-wordmark { line-height: 1; }
.nav__logo-wordmark span { color: var(--gold); }

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav__link {
  color: rgba(232,223,208,.6);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover,
.nav__link.active,
.current-menu-item > a {
  color: var(--cream);
  background: rgba(192,122,48,.08);
}

/* Language + right cluster */
.nav__right { display: flex; align-items: center; gap: 16px; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.nav__lang a {
  padding: 5px 9px;
  border-radius: 4px;
  color: rgba(232,223,208,.45);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__lang a:hover  { color: var(--cream); }
.nav__lang a.active { color: var(--gold); }
.nav__lang span     { color: rgba(255,255,255,.15); }

/* Mobile button */
.nav__menu-btn {
  display: none;
  color: var(--fog);
  padding: 8px;
  border-radius: 4px;
}
.nav__menu-btn:hover { color: var(--cream); }
.nav__menu-btn svg  { display: block; }

/* Mobile panel */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 20px;
  border-top: 1px solid rgba(192,122,48,.06);
  gap: 2px;
  background: rgba(10,12,14,.96);
}
.nav__mobile .nav__link { display: block; padding: 11px 14px; border-radius: 6px; }
.nav__mobile.open       { display: flex; }

/* WP nav fallback */
.primary-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.primary-nav li a {
  color: rgba(232,223,208,.6);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  display: block;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav li a:hover,
.primary-nav .current-menu-item > a { color: var(--cream); background: rgba(192,122,48,.08); }

/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: all var(--t);
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--obsidian);
  box-shadow: 0 2px 12px rgba(192,122,48,.2);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(192,122,48,.4);
}
.btn-outline:hover {
  background: var(--gold-glow-sm);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--ash);
}
.btn-ghost:hover { background: var(--dusk); color: var(--parchment); }

.btn-sm  { font-size: .78rem; padding: 9px 18px; }
.btn-lg  { font-size: 1rem; padding: 16px 36px; }

/* ════════════════════════════════════════════════════
   HERO — CINEMATIC LIBRARY
   ════════════════════════════════════════════════════ */
.esenvar-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--obsidian);
}

/* Atmospheric layers */
.esenvar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 140% 100% at 72% 110%, rgba(192,122,48,.16) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 20% 30%,  rgba(31,90,91,.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 55% 0%,   rgba(192,122,48,.05) 0%, transparent 45%),
    linear-gradient(175deg, #18120D 0%, #1C160F 50%, #18120D 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grain texture */
.esenvar-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: .6;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  padding: 100px 0 80px;
  width: 100%;
}

.hero__content { max-width: 640px; }

.hero__publisher-tag {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__publisher-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold-dim);
}

.hero__headline {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--cream);
  margin-bottom: 12px;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero__subhead {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--fog);
  line-height: 1.5;
  margin-bottom: 28px;
  letter-spacing: .01em;
}

.hero__rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dim), transparent);
  margin-bottom: 28px;
}

.hero__lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: rgba(232,223,208,.7);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(192,122,48,.08);
}
.hero__stat-value {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Book stack visual */
.hero__books {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-shrink: 0;
}

.hero__book {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.04);
  transition: transform var(--t-slow);
}
.hero__book:nth-child(1) { width: 130px; transform: rotate(-4deg) translateY(20px); }
.hero__book:nth-child(2) { width: 145px; transform: rotate(-1deg) translateY(8px); z-index: 2; }
.hero__book:nth-child(3) { width: 130px; transform: rotate(2deg) translateY(14px); }
.hero__book:nth-child(4) { width: 120px; transform: rotate(5deg) translateY(28px); }

.hero__book:hover { transform: translateY(-12px) rotate(0deg) !important; }
.hero__book img   { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.hero__book-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--dusk) 0%, var(--midnight) 100%);
  border: 1px solid var(--ash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--mist);
}

/* Ambient glow under books */
.hero__books-wrap {
  position: relative;
}
.hero__books-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(192,122,48,.15) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════
   SERIES SECTION — light parchment editorial surface
   ════════════════════════════════════════════════════ */
.section-series {
  background: var(--parchment-section);
  border-top: 1px solid rgba(120,88,48,.22);
  border-bottom: 1px solid rgba(120,88,48,.22);
}

/* Text overrides for legibility on parchment */
.section-series .section-header h2,
.section-series h2 { color: var(--on-parchment); }
.section-series .section-header p { color: var(--on-parchment-2); }
.section-series .eyebrow { color: var(--gold-dim); }
.section-series .eyebrow::before { background: var(--gold-dim); }

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.series-card {
  background: var(--parchment-card);
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}
.series-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.series-card:hover {
  border-color: rgba(192,122,48,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(100,70,20,.2), 0 0 0 1px rgba(192,122,48,.15);
}
.series-card:hover::before { opacity: 1; }

.series-card__covers {
  display: flex;
  height: 160px;
  overflow: hidden;
  background: var(--ash);
  position: relative;
}
.series-card__covers::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(210,195,170,.65) 100%);
  pointer-events: none;
}
.series-card__covers img {
  flex: 1;
  object-fit: cover;
  object-position: top;
  min-width: 0;
}
.series-card__covers img + img { border-left: 1px solid rgba(10,12,14,.4); }

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

.series-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.series-card__genre {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(192,122,48,.1);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(192,122,48,.2);
}
.series-card__count {
  font-size: .75rem;
  color: var(--mist);
  font-weight: 500;
}

.series-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--on-parchment);
}
.series-card__desc {
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--on-parchment-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-card__author {
  font-size: .75rem;
  color: var(--on-parchment-3);
  font-weight: 500;
  font-family: var(--sans);
}
.series-card__count { color: var(--on-parchment-3); }
.series-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--gold-dim);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(120,88,48,.15);
  transition: gap var(--t-fast), color var(--t-fast);
}
.series-card__link:hover { color: var(--gold); gap: 10px; }

/* ════════════════════════════════════════════════════
   BOOK GRID
   ════════════════════════════════════════════════════ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 32px 24px;
}

.book-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.book-card__cover {
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--dusk);
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.book-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.book-card:hover .book-card__cover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(192,122,48,.12);
}
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.book-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dusk) 0%, var(--midnight) 100%);
  color: var(--mist);
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  font-family: var(--sans);
}

.book-card__series {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 5px;
  font-family: var(--sans);
}
.book-card h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.25;
}
.book-card__subtitle {
  font-family: var(--serif);
  font-size: .85rem;
  color: var(--fog);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.book-card__author {
  font-size: .72rem;
  color: var(--mist);
  font-weight: 500;
  font-family: var(--sans);
}

/* ════════════════════════════════════════════════════
   AUTHOR SECTION — warm parchment for editorial contrast
   ════════════════════════════════════════════════════ */
.section-authors {
  background: var(--parchment-section);
  border-top: 1px solid rgba(120,88,48,.22);
}

.section-authors .section-header h2,
.section-authors h2 { color: var(--on-parchment); }
.section-authors .eyebrow { color: var(--gold-dim); }
.section-authors .eyebrow::before { background: var(--gold-dim); }

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--parchment-card);
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--t), box-shadow var(--t);
}
.author-card:hover {
  border-color: rgba(192,122,48,.3);
  box-shadow: 0 8px 28px rgba(100,70,20,.16);
}

.author-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
  border: 2px solid rgba(192,122,48,.2);
}

.author-card__name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-parchment);
  margin-bottom: 4px;
}
.author-card__genre {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
  font-family: var(--sans);
}
.author-card__bio {
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--on-parchment-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-card__count {
  font-size: .72rem;
  color: var(--gold-dim);
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════
   PUBLISHER / ABOUT STRIP
   ════════════════════════════════════════════════════ */
.section-publisher {
  background: var(--obsidian);
  border-top: 1px solid var(--ash);
  position: relative;
  overflow: hidden;
}
.section-publisher::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(192,122,48,.05) 0%, transparent 60%);
  pointer-events: none;
}

.publisher-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.publisher-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
}
.publisher-content p {
  color: var(--fog);
  line-height: 1.8;
  margin-bottom: 16px;
}
.publisher-content .btn { margin-top: 12px; }

.publisher-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.publisher-value {
  background: var(--dusk);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.publisher-value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.publisher-value h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 6px;
}
.publisher-value p {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--mist);
  line-height: 1.5;
  margin: 0;
}

/* ════════════════════════════════════════════════════
   CTA — COMMERCIAL
   ════════════════════════════════════════════════════ */
.section-cta {
  background: var(--midnight);
  border-top: 1px solid var(--ash);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.cta-content p {
  color: var(--fog);
  font-size: 1.05rem;
  max-width: 480px;
}

.cta-platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}
.cta-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dusk);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  padding: 14px 20px;
  transition: border-color var(--t), background var(--t);
}
.cta-platform:hover {
  border-color: rgba(192,122,48,.3);
  background: rgba(192,122,48,.04);
}
.cta-platform__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ash);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-platform__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--parchment);
  font-family: var(--sans);
  letter-spacing: .02em;
}
.cta-platform__note {
  font-size: .68rem;
  color: var(--mist);
  margin-top: 1px;
  font-family: var(--sans);
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.site-footer {
  background: var(--obsidian);
  border-top: 1px solid var(--ash);
  padding: 72px 0 40px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gold-dim) 40%, var(--gold-dim) 60%, transparent 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-name {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 14px;
}
.footer__brand-name span { color: var(--gold); }

.footer__brand-desc {
  font-family: var(--serif);
  font-size: .9rem;
  color: rgba(168,152,128,.6);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer__col h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232,223,208,.25);
  margin-bottom: 18px;
  font-family: var(--sans);
}
.footer__col a {
  display: block;
  font-size: .85rem;
  color: rgba(168,152,128,.6);
  padding: 4px 0;
  transition: color var(--t-fast);
  font-family: var(--sans);
}
.footer__col a:hover { color: var(--parchment); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.04);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(168,152,128,.35);
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
}
.footer__bottom a { color: inherit; transition: color var(--t-fast); }
.footer__bottom a:hover { color: rgba(168,152,128,.7); }

/* ════════════════════════════════════════════════════
   GENERAL WP / GUTENBERG OVERRIDES
   ════════════════════════════════════════════════════ */
.site-content { min-height: 60vh; }
.wp-site-blocks { padding: 0; }

.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: var(--radius); }

/* Book meta table (book pages) */
.esenvar-book-meta {
  width: 100%;
  border-collapse: collapse;
  background: var(--dusk);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  font-size: .9rem;
  border: 1px solid var(--ash);
}
.esenvar-book-meta th {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 10px 16px;
  text-align: left;
  width: 30%;
  background: var(--dusk);
  border-bottom: 1px solid var(--ash);
  font-family: var(--sans);
}
.esenvar-book-meta td {
  font-size: .9rem;
  font-weight: 500;
  color: var(--parchment);
  padding: 10px 16px;
  border-bottom: 1px solid var(--ash);
}
.esenvar-book-meta tr:last-child th,
.esenvar-book-meta tr:last-child td { border-bottom: none; }

/* Buy button */
.esenvar-buy-btn .wp-block-button__link,
.wp-block-button.esenvar-buy-btn .wp-block-button__link {
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.esenvar-buy-btn .wp-block-button__link:hover,
.wp-block-button.esenvar-buy-btn .wp-block-button__link:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero__inner { gap: 48px; }
  .hero__book:nth-child(1) { width: 110px; }
  .hero__book:nth-child(2) { width: 125px; }
  .hero__book:nth-child(3) { width: 110px; }
  .hero__book:nth-child(4) { width: 100px; }
  .publisher-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__books-wrap { display: none; }
  .publisher-inner { grid-template-columns: 1fr; gap: 40px; }
  .publisher-values { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav__links, .primary-nav { display: none; }
  .nav__menu-btn { display: flex; }
  .authors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container  { padding: 0 16px; }
  .section    { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .hero__headline { font-size: 2.6rem; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .publisher-values { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .series-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   FOCUS & ACCESSIBILITY
   ════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .hero__books-wrap { display: none; }
}

/* ════════════════════════════════════════════════════
   INNER PAGE HERO — dark cinematic banner (compact)
   Used by /books/, /authors/, /series/, individual book pages
   ════════════════════════════════════════════════════ */
.page-hero {
  background: var(--obsidian);
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(192,122,48,.1) 0%, transparent 55%),
    linear-gradient(175deg, #18120D 0%, #1C160F 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow    { margin-bottom: 18px; }
.page-hero h1          { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 16px; color: var(--cream); }
.page-hero__desc       { font-family: var(--serif); font-size: 1.1rem; color: var(--fog); max-width: 560px; line-height: 1.75; }

/* ════════════════════════════════════════════════════
   BOOKS PAGE — full catalog (page-books.php)
   ════════════════════════════════════════════════════ */
.books-page-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--ash);
  color: var(--fog);
  background: transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(192,122,48,.07);
}

/* ════════════════════════════════════════════════════
   SERIES PAGE — header on parchment + book list dark
   ════════════════════════════════════════════════════ */
.series-page-header {
  background: var(--parchment-section);
  border-bottom: 1px solid rgba(120,88,48,.22);
  padding: 72px 0 64px;
}
.series-page-header h1          { color: var(--on-parchment); font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.series-page-header .eyebrow    { color: var(--gold-dim); margin-bottom: 16px; }
.series-page-header .eyebrow::before { background: var(--gold-dim); }
.series-page-header__desc       { font-family: var(--serif); color: var(--on-parchment-2); font-size: 1.1rem; line-height: 1.75; max-width: 560px; }
.series-page-header__meta       { display: flex; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(120,88,48,.14); }
.series-page-header__stat-val   { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 3px; }
.series-page-header__stat-lbl   { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-parchment-3); font-family: var(--sans); }

.series-book-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.series-book-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--dusk);
  border: 1px solid var(--ash);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--t), transform var(--t);
}
.series-book-row:hover {
  border-color: rgba(192,122,48,.28);
  transform: translateX(5px);
}
.series-book-row__cover {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--midnight);
  box-shadow: var(--shadow);
}
.series-book-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.series-book-row__vol       { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 7px; font-family: var(--sans); }
.series-book-row__title     { font-family: var(--display); font-size: 1.25rem; color: var(--cream); margin-bottom: 6px; line-height: 1.2; }
.series-book-row__subtitle  { font-family: var(--serif); font-size: .9rem; color: var(--fog); line-height: 1.5; margin-bottom: 8px; }
.series-book-row__author    { font-size: .72rem; color: var(--mist); font-family: var(--sans); }

/* ════════════════════════════════════════════════════
   SINGLE BOOK PAGE
   ════════════════════════════════════════════════════ */
.book-single {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.book-single__cover-wrap {
  position: sticky;
  top: 100px;
}
.book-single__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.04);
  aspect-ratio: 2/3;
  background: var(--dusk);
}
.book-single__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.book-single__series-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(192,122,48,.1);
  border: 1px solid rgba(192,122,48,.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.book-single__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 12px;
}
.book-single__subtitle {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--fog);
  margin-bottom: 28px;
  line-height: 1.4;
}
.book-single__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ash);
}
.book-single__author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
  border: 2px solid rgba(192,122,48,.2);
}
.book-single__author-name  { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--cream); margin-bottom: 2px; }
.book-single__author-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); font-family: var(--sans); }
.book-single__desc {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fog);
  line-height: 1.8;
  margin-bottom: 36px;
}
.book-single__actions       { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.book-single__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.book-single__meta-item {
  background: var(--dusk);
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.book-single__meta-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); font-family: var(--sans); margin-bottom: 5px; }
.book-single__meta-value { font-size: .88rem; font-weight: 600; color: var(--parchment); font-family: var(--sans); }

.books-related { background: var(--midnight); border-top: 1px solid var(--ash); }
.books-related h2 { font-size: 1.6rem; margin-bottom: 36px; }

/* ════════════════════════════════════════════════════
   GENERAL WP CONTENT / ENTRY TYPOGRAPHY
   ════════════════════════════════════════════════════ */
.entry-header { margin-bottom: 40px; }
.entry-header h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--cream);
  margin-bottom: 14px;
  line-height: 1.1;
}
.entry-header .entry-date {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  font-family: var(--sans);
}
.entry-content {
  max-width: 700px;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--fog);
}
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--cream); margin: 44px 0 16px; }
.entry-content h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--cream); margin: 34px 0 12px; }
.entry-content h4 { font-size: 1.05rem; color: var(--parchment); margin: 28px 0 10px; }
.entry-content p  { margin-bottom: 1.3em; }
.entry-content a  { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(192,122,48,.4); }
.entry-content a:hover { color: var(--gold-light); text-decoration-color: var(--gold-light); }
.entry-content strong { color: var(--parchment); font-weight: 600; }
.entry-content blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  font-style: italic;
  color: rgba(160,133,104,.8);
}
.entry-content blockquote p { margin: 0; }
.entry-content ul,
.entry-content ol  { padding-left: 26px; margin-bottom: 1.3em; }
.entry-content li  { margin-bottom: .55em; }
.entry-content ul li::marker { color: var(--gold-dim); }
.entry-content hr  { border: none; height: 1px; background: var(--ash); margin: 40px 0; }

/* Better fallback page layout */
.site-main.container.section {
  padding-top: 80px;
  padding-bottom: 100px;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE ADDITIONS (inner pages)
   ════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .book-single { grid-template-columns: 1fr; gap: 36px; }
  .book-single__cover-wrap { position: static; max-width: 260px; }
  .book-single__meta-grid { grid-template-columns: repeat(2, 1fr); }
  .series-book-row { grid-template-columns: 90px 1fr; gap: 20px; }
  .series-book-row > .btn { display: none; }
  .page-hero { padding: 56px 0 48px; }
  .series-page-header { padding: 56px 0 48px; }
}
@media (max-width: 600px) {
  .book-single__meta-grid { grid-template-columns: 1fr 1fr; }
  .series-book-row { grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; }
  .page-hero { padding: 44px 0 36px; }
  .site-main.container.section { padding-top: 60px; padding-bottom: 72px; }
}
