/* ============================================================
   POLITICAL ECONOMIST THEME — Bold & Modern
   Typography: Playfair Display (headings) + DM Sans (body)
   Palette: Near-black, off-white, crimson accent, gold highlight
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Backgrounds shifted to White/Light Gray */
  --bg: #FFFFFF;
  --bg-2: #F8F9FA;
  --bg-3: #F1F3F5;
  --surface: #FFFFFF;

  /* Text shifted to Dark/Charcoal */
  --text: #15171A;
  --text-muted: #5F676D;
  --text-dim: #889299;
  --white: #15171A; /* Flipped to dark for template compatibility */

  /* Brand Accents (Kept as requested) */
  --accent: #C8102E;
  --accent-hover: #E8102E;
  --gold: #A68B3C; /* Slightly darkened for better visibility on white */

  /* Typography & Spacing (Unchanged) */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h: 72px;
  --max-w: 1200px;
  --max-prose: 720px;
  --radius: 2px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }

p { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF !important;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,16,46,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--white);
}
.btn--gold {
  background: var(--gold);
  color: #0E0E0E;
}
.btn--gold:hover {
  background: #DFB85C;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 99px;
}
.tag--accent { background: rgba(200,16,46,0.15); color: var(--accent); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

section { padding: 6rem 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  background-color: var(--bg); /* White */
  border-bottom: 1px solid var(--border); /* Subtle light gray line */
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.site-nav__logo {
  margin-right: 4rem; /* Increased from default to push menu away */
  display: flex;
  align-items: center;
}

.site-nav__logo img {
    display: block;
    width: auto;
   height: 70px;       /* Adjusted from 40px to 55px */
    max-height: 80px;   /* Allows it to grow slightly more on larger screens */
    object-fit: contain;
    filter: none !important; 
}
.mobile-menu .site-nav__logo img {
    max-height: 40px;
    margin-bottom: 2rem;
}
.site-nav__logo span { color: var(--accent); }

/* ── Navigation Links (Header) ── */
.nav-links {
  display: flex;
  align-items: center;
gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Changed from --text-muted to --text for better visibility on white */
  color: var(--text); 
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { 
  /* Changed from --white to --accent so the text doesn't disappear */
  color: var(--accent); 
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px; /* Slightly thicker for visibility on light bg */
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { 
  transform: scaleX(1); 
}

.nav-cta { 
  margin-left: 1rem; 
}

/* ── Mobile Toggle (Hamburger Icon) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  /* This ensures the hamburger lines are black */
  background: var(--text); 
  transition: all var(--transition);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  /* This will now be white based on your new --bg variable */
  background: var(--bg); 
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open { 
  display: flex; 
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  /* Dark text for mobile links */
  color: var(--text); 
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.mobile-menu a:hover { 
  color: var(--accent); 
}
/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  height: 150vh;           /* Fills the screen height */
  width: 100vw;            /* Fills the screen width */
  display: flex;
  align-items: center;     /* Centers content vertically */
  justify-content: center; /* Centers content horizontally */
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(200,16,46,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  height: 100%;
}

.hero__inner img {
  width: 100%;
  height: 100%;
  /* This is the key: it fills the box and crops to the center */
object-fit: cover;
  object-position: center 15%; /* 15% from the top keeps the head in view */
  
  display: block;
}


.hero__eyebrow { margin-bottom: 1.5rem; }

.hero__title {
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 54ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image-block {
  position: relative;
}
.hero__image-block::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 0;
}
.hero__image-block img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(20%);
  border-radius: var(--radius);
}
.hero__image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* ── Featured Books ─────────────────────────────────────────── */
.books-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.section-header h2 { margin-top: 0.75rem; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.book-card__cover {
  aspect-ratio: 3/4;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-card__cover img { transform: scale(1.03); }

.book-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-3) 100%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 2rem;
  text-align: center;
}

.book-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
}

.book-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-card__publisher {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.book-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.book-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
  max-width: none;
}
.book-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.book-card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

/* ── Newsletter ─────────────────────────────────────────────── */
.newsletter-section {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.newsletter-section__accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 3rem;
}
.newsletter-form {
  width: 100%;
  max-width: 500px;
}
.newsletter-inner .eyebrow {
  justify-content: center;
}

.newsletter-inner ul {
  align-items: center;
}
.newsletter-form input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ── Essays Grid ────────────────────────────────────────────── */
.essays-section { background: var(--bg-2); }

.essays-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.essays-grid--featured {
  grid-template-columns: 2fr 1fr;
}
.essays-grid--featured .essay-card:first-child {
  grid-row: span 2;
}

.essay-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.essay-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-3px);
}
.essay-card__date {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.essay-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}
.essay-card--large .essay-card__title { font-size: 1.8rem; }
.essay-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: none;
  flex: 1;
}
.essay-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.essay-card__read-more::after {
  content: '→';
  transition: transform var(--transition);
}
.essay-card:hover .essay-card__read-more::after { transform: translateX(4px); }

/* ── Speaking ────────────────────────────────────────────────── */
.speaking-section { background: var(--bg); }

.topics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}
.topic-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: var(--radius);
}
.topic-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.topic-item p { font-size: 0.85rem; color: var(--text-muted); max-width: none; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}
.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem; left: 1.5rem;
}
.testimonial__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  max-width: none;
  position: relative;
  z-index: 1;
}
.testimonial__author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.testimonial__role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
select option { background: var(--surface); }

/* ── About Section ──────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(15%);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.credential-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.credential-item__icon {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.credential-item__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: none;
}

/* ── Podcast embeds ──────────────────────────────────────────── */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.podcast-embed {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.podcast-embed iframe {
  width: 100%;
  border: none;
}

/* ── Bulk Order Section ─────────────────────────────────────── */
.bulk-section {
  background: var(--bg-2);
}
.bulk-highlight {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.bulk-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.bulk-stat { border-left: 3px solid var(--gold); padding-left: 1.25rem; }
.bulk-stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.bulk-stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: (var(--bg));
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text); /* Ensures it is Black */
  margin-bottom: 0.5rem;
}

.footer-brand__name span {
  color: var(--accent); /* Red dot at the end */
}
.footer-brand__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28ch;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  justify-content: left;
  gap: 1rem;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}
.footer-social a {
  font-family: var(--font-mono); /* Uses your mono font for a clean, modern look */
  font-size: 1rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%; /* Circular buttons */
}

.footer-social a:hover {
  color: var(--accent); /* Crimson red on hover */
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: block;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: none;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Post / Essay content ───────────────────────────────────── */
.post-header {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.post-date { font-size: 0.8rem; color: var(--text-dim); }

.post-content {
  padding: 4rem 0 6rem;
}
.post-content .gh-content {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}
.gh-content h2, .gh-content h3, .gh-content h4 { color: var(--white); margin: 2.5rem 0 1rem; }
.gh-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.gh-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(200,16,46,0.4); }
.gh-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--bg-2);
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.gh-content code {
  background: var(--surface);
  color: var(--gold);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.gh-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.gh-content img {
  border-radius: var(--radius);
  margin: 2rem auto;
}
.gh-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ── Page header (generic) ──────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(200,16,46,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { margin-top: 0.75rem; }
.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 56ch;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-nav__logo {
    margin-right: 2rem; /* Reduce margin on tablets */
  }
  
  .site-nav__logo img {
    height: 60px;
    max-height: 70px;
  }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image-block { display: none; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .bulk-highlight { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
   .keynotes-topics.topics-list {
    grid-template-columns: 1fr;
  }
   .hero-header {
    padding: 2rem 0 3rem;
  }
  
  .hero-header__inner {
    text-align: center;
  }
  
  .hero-header__name {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .hero-header__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center !important;
  }
  

  .site-nav__logo {
    margin-right: 1rem; /* Further reduce margin */
  }
  
  .site-nav__logo img {
    height: 50px;
    max-height: 60px;
  }
  :root { --nav-h: 60px; }
  section { padding: 4rem 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  
  /* Ensure hamburger lines are visible */
  .nav-toggle span {
    background: var(--text);
    opacity: 1;
  }

  .essays-grid { grid-template-columns: 1fr; }
  .essays-grid--featured { grid-template-columns: 1fr; }
  .essays-grid--featured .essay-card:first-child { grid-row: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .books-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .site-nav__inner {
    display: grid;
    grid-template-columns: 40px 5fr 40px;
    align-items: center;
    padding: 0 1rem;
  }
  
  .site-nav__logo {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    max-width: 100%;
  }
  
  .site-nav__logo img {
    height: 35px;
    max-height: 35px;
  }
  
  .nav-toggle {
    grid-column: 6;
    display: flex !important;
    flex-direction: column;
    justify-self: end;
    z-index: 10;
  }
  
  /* Hide desktop navigation */
  .nav-links,
  .nav-cta {
    display: none !important;
  }
  
  .mobile-menu .site-nav__logo img {
    max-height: 35px;
    margin-bottom: 1.5rem;
  }
  
  .container { padding: 0 1.25rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-fade-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.3s; }

/* ── Ghost Card & Width Classes (required) ───────────────────── */
.gh-portal-triggerbtn { display: none !important; }

/* kg-width classes — required by Ghost theme validator */
.kg-width-wide {
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
  width: auto;
  max-width: 100vw;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* Contain overflow on narrow viewports */
.gh-content .kg-width-wide,
.gh-content .kg-width-full {
  overflow: hidden;
}

/* Ghost image cards */
.kg-image-card img { margin: 0 auto; }
.kg-image-card figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Ghost gallery card */
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-row:not(:first-of-type) { margin-top: 0.25rem; }
.kg-gallery-image:not(:first-of-type) { margin-left: 0.25rem; }

/* Ghost video card */
.kg-video-card { position: relative; }
.kg-video-card video { width: 100%; border-radius: var(--radius); }

/* Ghost embed card */
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }

/* Ghost bookmark card */
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition);
}
.kg-bookmark-container:hover { border-color: var(--accent); }
.kg-bookmark-content { padding: 1.25rem; flex: 1; }
.kg-bookmark-title { font-weight: 600; color: var(--white); margin-bottom: 0.35rem; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--text-muted); }
.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Ghost callout card */
.kg-callout-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.kg-callout-emoji { font-size: 1.25rem; flex-shrink: 0; }
.kg-callout-text { font-size: 0.95rem; color: var(--text-muted); max-width: none; }

/* Ghost toggle card */
.kg-toggle-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; }
.kg-toggle-heading { font-weight: 600; color: var(--white); cursor: pointer; }
.kg-toggle-content { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.9rem; }

/* Ghost button card */
.kg-button-card { display: flex; justify-content: center; margin: 1.5rem 0; }
.kg-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}
.kg-btn:hover { background: var(--accent-hover); }

/* Ghost product card */
.kg-product-card {
  display: flex;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-2);
  margin: 1.5rem 0;
}
.kg-product-card-image { width: 100px; flex-shrink: 0; }
.kg-product-card-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.kg-product-card-description { font-size: 0.875rem; color: var(--text-muted); max-width: none; }

/* Ghost header card */
.kg-header-card {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.kg-header-card h2 { color: var(--white); }
.kg-header-card p { color: var(--text-muted); margin: 1rem auto; }

/* Ghost audio card */
.kg-audio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  margin: 1.5rem 0;
}
.kg-audio-card audio { width: 100%; }

/* ── Ghost Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pagination a,
.pagination .page-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-transform: uppercase;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-number { color: var(--text-dim); cursor: default; }

/* ── Scroll reveal (JS-driven) ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CART & ECOMMERCE ADDITIONS
   ============================================================ */

/* Cart icon in nav */
.cart-nav-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}
.cart-nav-btn:hover { border-color: var(--gold); color: var(--gold); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Cart overlay & drawer */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}
#cart-drawer {
  width: min(420px, 95vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
#cart-overlay.open #cart-drawer {
  transform: translateX(0);
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 { margin: 0; font-family: var(--font-display); color: var(--white); }
.cart-close-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem; padding: 0.25rem;
  transition: color 0.2s;
}
.cart-close-btn:hover { color: var(--white); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-drawer__footer { padding: 1.25rem; border-top: 1px solid var(--border); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.cart-total { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--white); }

/* Cart items */
.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem;
  position: relative;
}
.cart-item__cover {
  width: 52px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 1px;
  overflow: hidden;
}
.cart-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__cover-ph {
  width: 100%; height: 100%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--gold);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 600; font-size: 0.85rem; color: var(--white); margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__format { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.35rem; }
.cart-item__price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.5rem; }
.cart-item__qty { display: flex; align-items: center; gap: 0.4rem; }
.qty-btn {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  width: 26px; height: 26px; cursor: pointer; border-radius: 2px;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.qty-btn:hover { color: var(--white); border-color: var(--gold); }
.qty-input {
  width: 42px; text-align: center; background: var(--bg); border: 1px solid var(--border);
  color: var(--white); font-size: 0.85rem; padding: 0.2rem; border-radius: 2px;
}
.cart-item__remove {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 0.8rem; padding: 0.2rem;
  transition: color 0.2s;
}
.cart-item__remove:hover { color: var(--accent); }

/* Toast */
#cart-toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--bg-2); border: 1px solid var(--gold); border-radius: 2px;
  color: var(--white); padding: 0.75rem 1.25rem; font-size: 0.9rem;
  transform: translateY(6px); opacity: 0; transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
#cart-toast.show { opacity: 1; transform: translateY(0); }

/* Book detail page */
.book-detail { padding: 5rem 0; background: var(--bg); }
.book-detail__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .book-detail__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.book-detail__cover-wrap { position: sticky; top: calc(var(--nav-h) + 2rem); }
.book-detail__cover-shadow {
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  pointer-events: none;
}
.book-detail__cover-img {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.book-detail__cover-img img { width: 100%; height: 100%; object-fit: cover; }
.book-detail__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; margin-top: 1rem; }

.book-buy-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  margin-top: 2.5rem;
}
.book-buy-box__price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.book-buy-box__price small {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 0.5rem;
}
.book-buy-box label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.book-buy-box select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.book-buy-box .btn { width: 100%; justify-content: center; padding: 1rem; margin-bottom: 0.75rem; }
.book-buy-box__guarantee { font-size: 0.73rem; color: var(--text-dim); text-align: center; margin-top: 0.75rem; }

/* Dynamic books grid (books listing) */
.books-listing { display: flex; flex-direction: column; gap: 0; }
.books-listing article { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.books-listing article:last-child { border-bottom: none; }

/* Format pills on book card */
.format-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.format-pill {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 2px;
  color: var(--text-muted); padding: 0.3rem 0.65rem;
}

/* Bulk cart section on bulk page */
.bulk-cart-preview {
  background: var(--bg-2);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 3rem;
}

/* ============================================================
   BOOK DETAIL PAGE — v2 Layout
   ============================================================ */

.book-detail {
  padding: 4rem 0 6rem;
  background: var(--bg);
}

/* Two-column grid: image left, info right */
.book-detail__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}
@media (max-width: 900px) {
  .book-detail__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Cover image column */
.book-detail__cover-wrap {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 2rem);
}
.book-detail__cover-shadow {
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  pointer-events: none;
}
.book-detail__cover-img {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.book-detail__cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-detail__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}
.book-detail__cover-placeholder small {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Right column info */
.book-detail__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-detail__breadcrumb {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.book-detail__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.book-detail__breadcrumb a:hover { color: var(--white); }

.book-detail__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.book-detail__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.book-detail__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.book-detail__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.book-detail__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}
.book-detail__author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.book-detail__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.book-detail__price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

.book-detail__excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.book-detail__selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 500px) {
  .book-detail__selectors { grid-template-columns: 1fr; }
}
.book-detail__select-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.book-detail__select-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.book-detail__select-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.book-detail__actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.book-detail__buy-btn {
  flex: 1;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  min-width: 180px;
}
.book-detail__cart-btn {
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.book-detail__guarantee {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.book-detail__meta {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.book-detail__meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}
.book-detail__meta-row:last-child { border-bottom: none; }
.book-detail__meta-row span:first-child { color: var(--text-dim); }
.book-detail__meta-row span:last-child  { color: var(--text); font-weight: 500; }

.book-detail__bulk-link {
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.book-detail__bulk-link:hover { opacity: 0.75; }

/* Full-width body content */
.book-detail__body {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  margin-bottom: 5rem;
}

/* ── MORE BOOKS CAROUSEL ── */
.book-carousel {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.book-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.book-carousel__header h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--white);
}
.book-carousel__controls {
  display: flex;
  gap: 0.5rem;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.book-carousel__track-wrap {
  overflow: hidden;
}
.book-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.book-carousel__track::-webkit-scrollbar { display: none; }

.book-carousel__item {
  flex: 0 0 200px;
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.book-carousel__item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.book-carousel__cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-3);
}
.book-carousel__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.book-carousel__item:hover .book-carousel__cover img {
  transform: scale(1.04);
}
.book-carousel__cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
}
.book-carousel__info {
  padding: 0.85rem;
}
.book-carousel__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-carousel__year {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.book-detail__actions--2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.book-detail__actions--2 .book-detail__buy-btn{
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Nice “silver” look for ghost button */
.book-detail__actions--2 .btn--ghost{
  border-color: rgba(192,192,192,0.55);
  color: var(--silver);
}
.book-detail__actions--2 .btn--ghost:hover{
  border-color: var(--silver);
  color: var(--white);
}

/* Mobile: stack */
@media (max-width: 640px){
  .book-detail__actions--2{
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HOME PAGE RESPONSIVE SECTIONS
   ============================================================ */

/* About the Author Grid - Desktop */
.about-author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Keynotes Grid - Desktop */
.keynotes-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.keynotes-topics {
  margin: 0;
}

.keynotes-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
  /* About the Author - Stack with image on top */
  .about-author-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-author-image {
    order: 1;
  }
  
  .about-author-content {
    order: 2;
  }
  
  /* Keynotes - Stack and center content */
  .keynotes-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .keynotes-content {
    text-align: center;
    order: 1;
      max-width: 700px;

  }
  
  .keynotes-topics {
    order: 2;
      width: 100%;
  max-width: 900px;
  }
  
  .keynotes-actions {
    justify-content: center;
  }
}



/* ============================================================
   HERO HEADER - Appears on all pages
   ============================================================ */

.hero-header {
  background: var(--bg);
  /* padding: 3rem 0 4rem; */
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-header__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  justify-content: center;
  text-align: center;
}

.hero-header__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  margin-top: 5rem;

  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

.hero-header__subtitle {
  font-family: var(--font-body);
font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
text-align: center !important;  /* Force center */
}
.hero-header__image {

  margin: 0 auto;
  position: relative;
  width: 50% !important;
  display: block !important;
}

.hero-header__image::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  z-index: 0;
}

.hero-header__image img {
width: 100% !important;        /* Edge to edge */
  height: auto !important;
  max-height: 85vh !important;   /* Stops it from being too tall */
  object-fit: contain !important;  /* Fills the space completely */
  display: block !important;
  border-radius: 0 !important;
  border: 1px solid var(--border);
  object-position: center 45%;
}

/* Homepage Bio Section */
.homepage-bio {

  padding: 4rem 0;
  background: var(--bg);
}

.homepage-bio__content {
  text-align: center;
}




