/* ════════════════════════════════════════════════════════════════════
   MY INSIGHTS BOOKS — Production stylesheet (V4 — bordeaux)
   ════════════════════════════════════════════════════════════════════
   Design system loaded by every page.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ─── PALETTE — anthracite / paper / bordeaux accent ─── */
  --ink:          #1A1D1F;
  --ink-deep:     #0E1012;
  --ink-mute:     #6B6E72;
  --ink-faint:    #A0A2A5;

  --paper:        #FAFAF7;
  --paper-warm:   #F5F2EB;
  --rule:         #E8E4DA;
  --rule-dark:    #2A2D30;

  --accent:       #7A2E2E;     /* bordeaux profond */
  --accent-soft:  #F5EBEB;     /* bordeaux atténué pour fonds */
  --accent-gold:  #B8954A;     /* or vieilli, accents sombres */

  /* Typo */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;

  /* Spacing — 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.01em;
  font-feature-settings: 'cv11', 'ss01';
  position: relative;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--ink); color: var(--paper); }

/* ─── PAPER GRAIN — texture subtile ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  position: relative;
  z-index: 2;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s var(--ease-slow), transform 1.4s var(--ease-slow);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-slow), transform 1.2s var(--ease-slow);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 500ms; }
.reveal-stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 600ms; }
.reveal-stagger.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 700ms; }

.reveal-text { display: inline-block; }
.reveal-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-slow), transform 1s var(--ease-slow);
}
.reveal-text.visible .word { opacity: 1; transform: translateY(0); }
.reveal-text.visible .word:nth-child(1) { transition-delay: 0ms; }
.reveal-text.visible .word:nth-child(2) { transition-delay: 80ms; }
.reveal-text.visible .word:nth-child(3) { transition-delay: 160ms; }
.reveal-text.visible .word:nth-child(4) { transition-delay: 240ms; }
.reveal-text.visible .word:nth-child(5) { transition-delay: 320ms; }
.reveal-text.visible .word:nth-child(6) { transition-delay: 400ms; }
.reveal-text.visible .word:nth-child(7) { transition-delay: 480ms; }
.reveal-text.visible .word:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-text .word, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important;
  }
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.wordmark-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--paper);
}
.wordmark-text {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark-text em {
  font-style: italic;
  color: var(--ink-mute);
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ─── HERO ─── */
.hero {
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 480px;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.hero-meta::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 12ch;
  margin-bottom: 56px;
  position: relative;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  max-width: 900px;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 32ch;
}
.hero-lede strong {
  color: var(--ink);
  font-weight: 500;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s var(--ease);
}
.hero-cta-link:hover { gap: 18px; }
.hero-cta-link svg { width: 14px; height: 14px; }
.hero-cta-meta {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 800px) {
  .hero { padding: 80px 0 60px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-watermark { display: none; }
}

/* ─── PHOTOSTRIP ─── */
.photostrip {
  padding: 80px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.photostrip-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 32px;
}
.photo {
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 2px rgba(26, 29, 31, 0.05),
    0 8px 24px -8px rgba(26, 29, 31, 0.12);
  background: var(--ink);
}
.photo:nth-child(2) { aspect-ratio: 3/4; transform: translateY(40px); }
.photo:nth-child(3) { aspect-ratio: 4/5; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.05) brightness(0.95);
}
.photo-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: rgba(250, 250, 247, 0.4);
}
.photo-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2A2622 0%, #1A1815 100%);
}
.photo:nth-child(2) .photo-ph::before { background: linear-gradient(180deg, #3D3528 0%, #1A150E 100%); }
.photo:nth-child(3) .photo-ph::before { background: linear-gradient(45deg, #2D2620 0%, #15110D 100%); }
.photo-caption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  opacity: 0.85;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.photo-caption::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--paper);
}
.photostrip-meta {
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-size: 16px;
  color: var(--ink-mute);
}

@media (max-width: 800px) {
  .photostrip-grid { grid-template-columns: 1fr 1fr; }
  .photo:nth-child(3) { display: none; }
}

/* ─── SECTION ─── */
.section { padding: 120px 0; }
.section--dark {
  background: var(--ink-deep);
  color: var(--paper);
}
.section--dark .section-eyebrow { color: var(--ink-faint); }
.section--dark .section-eyebrow::before { background: var(--paper); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 64px;
}
.section-header-left { flex: 1; max-width: 600px; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 16ch;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section--dark .section-title em { color: var(--accent-gold); }
.section-link {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease);
  flex-shrink: 0;
}
.section-link:hover { gap: 12px; }
.section-link svg { width: 12px; height: 12px; }

@media (max-width: 800px) {
  .section { padding: 80px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
}

/* ─── FEATURED ─── */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.featured-stage {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.featured-stage::before {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.featured-cover {
  width: 60%;
  aspect-ratio: 2/3;
  background: var(--paper-warm);
  border-radius: 2px;
  position: relative;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.15),
    0 16px 32px -8px rgba(0,0,0,0.3),
    0 32px 64px -16px rgba(0,0,0,0.4);
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}
.featured-stage:hover .featured-cover {
  transform: translateY(-6px) rotateY(-4deg);
}
.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Hide text fallback labels when image is present */
.featured-cover:has(img) .featured-cover-fallback { display: none; }
.featured-cover-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #2A2A28 0%, #1A1A18 100%);
  color: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-cover-fallback .ph-meta {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.6;
}
.featured-cover-fallback .ph-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.featured-cover-fallback .ph-author {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.featured-content { padding: 0; }
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.featured-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 20px;
}
.featured-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-bottom: 40px;
  max-width: 42ch;
  letter-spacing: -0.005em;
}

/* ─── EDITORIAL SPEC ─── */
.editorial-spec {
  background: var(--paper-warm);
  padding: 32px;
  border-radius: 4px;
  margin-bottom: 32px;
  border-left: 2px solid var(--accent);
}
.editorial-spec-header {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.editorial-spec-header::before {
  content: '§';
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.editorial-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.spec-value {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.spec-value em {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
}

@media (max-width: 800px) {
  .featured { grid-template-columns: 1fr; gap: 48px; }
  .featured-stage { position: relative; top: 0; }
  .editorial-spec-grid { grid-template-columns: 1fr; }
}

.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.featured-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}
.featured-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5);
}
.featured-author-info { flex: 1; }
.featured-author-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.featured-author-meta {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.featured-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .btn--primary { background: var(--paper); color: var(--ink); }
.section--dark .btn--primary:hover { background: var(--accent-gold); color: var(--ink); }
.section--dark .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* ─── AUTHOR CARDS (sur fond sombre) ─── */
.authors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.author-card {
  position: relative;
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.author-card::before {
  content: attr(data-num);
  position: absolute;
  top: 24px;
  right: 36px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 88px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  font-weight: 300;
  letter-spacing: -0.04em;
}
.author-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.author-card:hover::before { color: rgba(184, 149, 74, 0.15); }
.author-portrait {
  width: 88px;
  height: 88px;
  border-radius: 4px;
  background: var(--ink);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.4) contrast(1.05) brightness(0.95);
  transition: filter 0.5s var(--ease);
}
.author-card:hover .author-portrait img { filter: saturate(0.85) contrast(1.05); }
.author-portrait:has(img) .author-portrait-fallback { display: none; }
.author-portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: rgba(250, 250, 247, 0.4);
}
.author-info { position: relative; z-index: 1; }
.author-name {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--paper);
}
.author-tagline {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-bottom: 24px;
  max-width: 38ch;
  letter-spacing: -0.005em;
}
.author-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.author-stats-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-gold);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
}
.author-arrow {
  position: absolute;
  bottom: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: all 0.3s var(--ease);
}
.author-card:hover .author-arrow {
  background: var(--accent-gold);
  color: var(--ink);
  border-color: var(--accent-gold);
  transform: rotate(-45deg);
}
.author-arrow svg { width: 14px; height: 14px; }

@media (max-width: 800px) {
  .authors { grid-template-columns: 1fr; }
}

/* ─── PULL QUOTE ─── */
.pullquote {
  padding: 120px 0;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.pullquote-mark {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}
.pullquote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.pullquote-attr {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.pullquote-attr::before,
.pullquote-attr::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink-mute);
}

/* ─── BOOK GRID ─── */
.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 32px;
}
.book {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--paper-warm);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(26, 29, 31, 0.04),
    0 4px 12px -2px rgba(26, 29, 31, 0.08),
    0 16px 32px -8px rgba(26, 29, 31, 0.12);
  transition: all 0.5s var(--ease);
}
.book:hover .book-cover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(26, 29, 31, 0.04),
    0 12px 24px -2px rgba(26, 29, 31, 0.12),
    0 32px 64px -8px rgba(26, 29, 31, 0.18);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Hide text fallback when image present */
.book-cover:has(img) .book-cover-fallback { display: none; }
.book-cover-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #2A2D30 0%, #1A1D20 100%);
  color: var(--paper);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-cover-fallback .ph-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.book-cover-fallback .ph-meta {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
}
.book-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 2;
}
.book-info { padding: 0 4px; }
.book-meta {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.book-meta-detail {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-mute);
}
.book-meta-detail::before { content: '·'; margin-right: 4px; }
.book-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author {
  font-size: 13px;
  color: var(--ink-mute);
}

@media (max-width: 800px) {
  .books { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  padding: 120px 0 80px;
  position: relative;
}
.page-header-kicker {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-header-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 14ch;
  margin-bottom: 32px;
}
.page-header-title em { font-style: italic; color: var(--accent); }
.page-header-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 52ch;
  letter-spacing: -0.005em;
}

/* ─── BOOK PAGE ─── */
.book-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 80px 0;
  align-items: start;
}
.book-hero-cover-wrap {
  position: sticky;
  top: 100px;
}
.book-hero-cover {
  aspect-ratio: 2/3;
  background: var(--paper-warm);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08),
    0 16px 32px -8px rgba(0,0,0,0.15),
    0 32px 64px -16px rgba(0,0,0,0.2);
}
.book-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-hero-meta { display: flex; flex-direction: column; gap: 24px; }
.book-hero-series {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.book-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.book-hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.book-hero-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.book-hero-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  flex-shrink: 0;
  overflow: hidden;
}
.book-hero-byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5);
}
.book-hero-byline-info { flex: 1; }
.book-hero-byline-name {
  font-size: 14px;
  font-weight: 500;
}
.book-hero-byline-name a {
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s var(--ease);
}
.book-hero-byline-name a:hover { border-color: var(--ink); }
.book-hero-byline-meta {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.book-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  padding: 60px 0 120px;
  border-top: 1px solid var(--rule);
}
.book-description {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.book-description p { margin-bottom: 24px; }
.book-description p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--accent);
}
.book-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}
.book-aside-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.book-aside-block:last-child { border-bottom: none; }
.book-aside h4 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.book-aside p {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.book-aside p em { font-style: italic; color: var(--ink-mute); font-size: 14px; }
.book-aside-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.3s var(--ease);
}
.book-aside-link:hover { gap: 10px; }

/* Pull quote block inside book page */
.book-pullquote {
  padding: 80px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.book-pullquote-mark {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}
.book-pullquote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.book-pullquote-source {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.book-pullquote-source::before,
.book-pullquote-source::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
}

/* Reader review block */
.book-review {
  padding: 60px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}
.book-review-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 24px;
}
.book-review-text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.book-review-attr {
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--font-display);
}

@media (max-width: 800px) {
  .book-hero { grid-template-columns: 1fr; gap: 48px; }
  .book-hero-cover-wrap { position: relative; top: 0; max-width: 280px; margin: 0 auto; }
  .book-body { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 80px; }
  .book-aside { position: relative; top: 0; }
}

/* ─── AUTHOR PAGE ─── */
.author-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding: 60px 0 80px;
  align-items: end;
}
.author-hero-portrait {
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
  max-width: 380px;
}
.author-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.05);
}
.author-hero-portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 120px;
  color: rgba(250, 250, 247, 0.3);
}
.author-hero-portrait:has(img) .author-hero-portrait-fallback { display: none; }
.author-hero-meta { display: flex; flex-direction: column; gap: 28px; }
.author-hero-kicker {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-hero-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
}
.author-hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.author-hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-mute);
  max-width: 36ch;
  letter-spacing: -0.005em;
}
.author-bio {
  max-width: 64ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.author-bio p { margin-bottom: 24px; }
.author-bio p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--accent);
}

/* Signature block — réservé pour signature manuscrite SVG d'auteur */
.author-signature {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.author-signature-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.author-signature-svg {
  max-width: 280px;
  height: auto;
  opacity: 0.92;
}
.author-signature-svg svg,
.author-signature-svg img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Fallback if no signature uploaded yet */
.author-signature-fallback {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.01em;
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: 4px;
}

.author-external {
  background: var(--paper-warm);
  padding: 32px;
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  max-width: 600px;
  margin: 0 auto;
}
.author-external-kicker {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-external-kicker::before {
  content: '§';
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.author-external-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.author-external p {
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 16px;
}
.author-external-url {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  display: inline-block;
}

@media (max-width: 800px) {
  .author-hero { grid-template-columns: 1fr; gap: 32px; }
  .author-hero-portrait { max-width: 280px; }
}

/* ─── NEWSLETTER ─── */
.newsletter {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.newsletter-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.newsletter-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-gold);
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-weight: 400;
}
.newsletter-title em {
  font-style: italic;
  color: var(--accent-gold);
}
.newsletter-blurb {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 36ch;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.newsletter-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--paper);
  padding: 16px 0;
  font-family: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.25s var(--ease);
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-input:focus { border-color: var(--accent-gold); }
.newsletter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.newsletter-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  cursor: pointer;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.25s var(--ease);
}
.newsletter-option:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.25);
}
.newsletter-option input { margin-top: 4px; accent-color: var(--accent-gold); }
.newsletter-option-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.newsletter-option-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
  line-height: 1.5;
}
.newsletter-submit {
  margin-top: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 100px;
  align-self: flex-start;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.newsletter-submit:hover {
  background: var(--accent-gold);
  transform: translateY(-1px);
}
.newsletter-submit::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.newsletter-submit:hover::after { transform: translateX(4px); }

@media (max-width: 800px) {
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 100px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.footer-brand-mark em {
  font-style: italic;
  color: var(--accent-gold);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 32ch;
  margin-bottom: 28px;
}
.footer h4 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}
.footer ul a:hover { color: var(--accent-gold); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 24px;
}
.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-bottom-meta::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.editorial-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--accent-gold);
  margin-top: 32px;
  letter-spacing: -0.01em;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
  transform: rotate(-2deg);
  opacity: 0.85;
}
.editorial-signature::after {
  content: '';
  position: absolute;
  left: 0; right: -8px; bottom: 0;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.4;
  transform: rotate(1deg);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ─── FILTER PILLS (books page) ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 60px;
  align-items: center;
}
.filter-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-right: 16px;
}
.filter-pill {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.filter-pill:hover {
  border-color: var(--ink);
}
.filter-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ─── CONTACT GRID ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-card {
  padding: 28px;
  background: var(--paper-warm);
  border-radius: 4px;
  border-left: 2px solid var(--rule);
  transition: border-color 0.3s var(--ease);
}
.contact-card:hover { border-left-color: var(--accent); }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.contact-card p {
  color: var(--ink-mute);
  line-height: 1.55;
  font-size: 14px;
}
