/* ── Theme tokens ─────────────────────────────────────── */
:root {
  --bg:           #f9f7f4;
  --surface:      #ffffff;
  --surface-alt:  #f2efeb;
  --border:       rgba(0,0,0,0.08);
  --border-md:    rgba(0,0,0,0.14);
  --text:         #1a1a1a;
  --muted:        #6b6b6b;
  --faint:        #b0aca6;
  --accent:       #1a1a1a;
  --accent-warm:  #c0392b;
  --accent-gold:  #b5882a;
  --tag-bg:       #edecea;
  --tag-text:     #555250;
  --nav-blur:     rgba(249,247,244,0.82);
  --transition:   0.28s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="dark"] {
  --bg:           #111110;
  --surface:      #1c1c1a;
  --surface-alt:  #242422;
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.13);
  --text:         #e8e6e1;
  --muted:        #888884;
  --faint:        #484845;
  --accent:       #e8e6e1;
  --accent-warm:  #e05a4a;
  --accent-gold:  #d4a84a;
  --tag-bg:       #2a2a28;
  --tag-text:     #aaaaaa;
  --nav-blur:     rgba(17,17,16,0.82);
}

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ───────────────────────────────────────── */
.serif { font-family: 'DM Serif Display', Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);  font-weight: 400; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 500; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-blur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover { background: var(--surface-alt); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Layout wrapper ───────────────────────────────────── */
.page { max-width: 1100px; margin: 0 auto; padding: 100px 2rem 4rem; }
.page-narrow { max-width: 720px; margin: 0 auto; padding: 100px 2rem 4rem; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--surface-alt); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { opacity: 0.85; background: var(--text); }

/* ── Section header ───────────────────────────────────── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.section-head h2 { }
.section-head a { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.section-head a:hover { color: var(--text); }

/* ── Curseur plume — partout sur les éléments cliquables ─ */
a, button, .poem-card, .poem-list-item, [onclick] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M20.71 4.04c.39-.39.39-1.04 0-1.43l-1.34-1.34c-.39-.39-1.04-.39-1.43 0l-1.35 1.35 2.77 2.77M3 17.25V21h3.75L17.81 9.93l-3.75-3.75z'/%3E%3C/svg%3E") 0 20, pointer;
}

/* ── Poem grid ────────────────────────────────────────── */
.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.poem-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.poem-card:hover { background: var(--surface); }

/* ── Couleurs par mouvement littéraire — partout ──────── */
.poem-card-meta { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.movement-romantisme { color: var(--accent-warm) !important; }
.movement-symbolisme { color: var(--accent-gold) !important; }

.tag.tag-romantisme { background: rgba(192,57,43,0.08); color: var(--accent-warm); }
.tag.tag-symbolisme { background: rgba(181,136,42,0.10); color: var(--accent-gold); }
[data-theme="dark"] .tag.tag-romantisme { background: rgba(224,90,74,0.12); }
[data-theme="dark"] .tag.tag-symbolisme { background: rgba(212,168,74,0.12); }
.poem-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--text);
}
.poem-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poem-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 0.5rem;
}
.poem-card-author { font-size: 0.8rem; color: var(--muted); }

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--tag-bg);
  color: var(--tag-text);
  transition: background 0.2s;
}
.tag:hover { background: var(--border-md); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Poem detail ──────────────────────────────────────── */
.poem-header { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.poem-header .back {
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-bottom: 2rem;
}
.poem-header .back:hover { color: var(--text); }
.poem-header h1 { margin-bottom: 0.75rem; }
.poem-header-meta {
  font-size: 0.85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-bottom: 1.25rem;
}
.poem-body {
  padding: 3rem 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 2;
  color: var(--text);
  white-space: pre-wrap;
  border-bottom: 1px solid var(--border);
}
.poem-body em { font-style: italic; }
.poem-footer {
  padding: 2rem 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}

/* ── Search / list page ───────────────────────────────── */
.search-bar {
  display: flex; gap: 0; margin: 2.5rem 0;
  border: 1px solid var(--border-md);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--text); }
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: 0.8rem 1.25rem;
  background: transparent;
  font-family: inherit; font-size: 0.95rem;
  color: var(--text);
}
.search-bar input::placeholder { color: var(--faint); }
.search-bar button {
  border: none; background: transparent;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-left: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.search-bar button:hover { background: var(--surface-alt); color: var(--text); }

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--muted);
  transition: all 0.18s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.poem-list { border-top: 1px solid var(--border); }
.poem-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.2s;
}
.poem-list-item:hover { padding-left: 0.5rem; }
.poem-list-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.poem-list-author { font-size: 0.8rem; color: var(--muted); }
.poem-list-right { text-align: right; }
.poem-list-year { font-size: 0.78rem; color: var(--faint); }

/* ── Admin panel ──────────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.admin-sidebar {
  position: sticky; top: 80px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.admin-sidebar-item {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.18s, color 0.18s;
}
.admin-sidebar-item:last-child { border-bottom: none; }
.admin-sidebar-item:hover, .admin-sidebar-item.active {
  background: var(--surface);
  color: var(--text);
}
.admin-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit; font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-md);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--text); }
.form-group textarea { min-height: 220px; line-height: 1.8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  text-align: left;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.admin-table td:first-child { color: var(--text); }
.admin-table tr:hover td { background: var(--surface-alt); }
.admin-actions { display: flex; gap: 0.5rem; }
.action-btn {
  font-size: 0.75rem; padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-md);
  border-radius: 4px; background: transparent;
  color: var(--muted);
  transition: all 0.18s;
}
.action-btn:hover { color: var(--text); background: var(--surface-alt); }
.action-btn.danger:hover { border-color: #c0392b; color: #c0392b; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ── Page enter ───────────────────────────────────────── */
body.page-enter {
  animation: pageEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.intro-running > *:not(#page-loader) { visibility: hidden; }

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Intro loader (index, chaque chargement dur) ──────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1),
              opacity   0.65s ease;
}
#page-loader.loader-exit {
  transform: translateY(-100%);
  opacity: 0;
}
.loader-word { display: flex; gap: 0.01em; }
.loader-char {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 9vw, 5rem);
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
  animation: charIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes charIn {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* ── Guillemet décoratif (page détail poème) ──────────── */
.poem-quote-deco {
  position: absolute;
  top: -1rem;
  left: -1.5rem;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.poem-body-wrap {
  position: relative;
  overflow: visible;
}

/* ── Carrousel de vers (hero accueil) ─────────────────── */
.verse-carousel {
  border-left: 2px solid var(--accent-warm);
  padding: 1rem 1.5rem;
  margin: 2rem 0 0;
  min-height: 5.5rem;
  position: relative;
}
.verse-carousel-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  right: 1.5rem;
}
.verse-carousel-text.active {
  opacity: 1;
  transform: translateY(0);
}
.verse-carousel-author {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-top: 0.6rem;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
}
.verse-carousel-author.active { opacity: 1; }
.verse-carousel-dots {
  display: flex;
  gap: 0.4rem;
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
}
.verse-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.verse-dot.active {
  background: var(--accent-warm);
  transform: scale(1.4);
}

/* ── Accent sur les tags par mouvement ────────────────── */
.tag-romantisme { background: rgba(192,57,43,0.08); color: var(--accent-warm); }
.tag-symbolisme { background: rgba(181,136,42,0.1); color: var(--accent-gold); }
[data-theme="dark"] .tag-romantisme { background: rgba(224,90,74,0.12); }
[data-theme="dark"] .tag-symbolisme { background: rgba(212,168,74,0.12); } ─────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border: none; background: transparent;
  cursor: pointer; padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-burger:hover { background: var(--surface-alt); }
.nav-burger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu drawer ───────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--nav-blur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0 1rem;
  z-index: 99;
  flex-direction: column;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer a {
  display: block;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer a:hover,
.nav-drawer a.active { background: var(--surface-alt); color: var(--text); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links { gap: 0.75rem; }
  .nav-links a:not(.theme-toggle):not(.btn) { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }

  /* Layout */
  .page, .page-narrow { padding: 80px 1.25rem 3rem; }

  /* Hero */
  .hero { padding: 2.5rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; text-align: center; }

  /* Stats row */
  .hero + div { gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 0; }

  /* Grids → single column */
  .poem-grid { grid-template-columns: 1fr; }
  .poem-card { padding: 1.5rem 1.25rem; }

  /* Section headers */
  .section-head { flex-direction: column; gap: 0.25rem; padding: 2rem 0 1.25rem; }

  /* List items */
  .poem-list-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .poem-list-right { text-align: left; }

  /* Poem detail */
  .poem-header { padding: 2rem 0 1.75rem; }
  .poem-header-meta { flex-direction: column; gap: 0.3rem; }
  .poem-body { font-size: 1rem; padding: 2rem 0; }

  /* Filters → scroll horizontal */
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Search */
  .search-bar { margin: 1.5rem 0; }

  /* Admin */
  .admin-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .admin-sidebar { position: static; display: flex; flex-direction: row; overflow-x: auto; border-radius: 8px; }
  .admin-sidebar-item { border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; }
  .admin-sidebar-item:last-child { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .admin-table { font-size: 0.8rem; }
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) { display: none; }

  /* Login */
  .login-card { gap: 1.5rem; }
  .login-form { padding: 1.5rem; }

  /* 403 */
  .error-code { font-size: 5rem; }
  .error-actions { flex-direction: column; align-items: center; }
  .error-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .nav-inner { padding: 0 1rem; }
  .page, .page-narrow { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 1.9rem; }
  .poem-card-title { font-size: 1.1rem; }
}

/* ── Barre de recherche hero ──────────────────────────── */
.search-bar-hero {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-md);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 600px;
}
.search-bar-hero:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
[data-theme="dark"] .search-bar-hero:focus-within {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.search-icon {
  padding: 0 1rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-bar-hero input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}
.search-bar-hero input::placeholder { color: var(--faint); }

/* ── Nav search button ────────────────────────────────── */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.nav-search-btn:hover { background: var(--surface-alt); color: var(--text); }

/* ── Page favoris ─────────────────────────────────────── */
.fav-empty {
  padding: 5rem 0;
  text-align: center;
  color: var(--muted);
}
.fav-empty .fav-icon {
  font-size: 3rem;
  opacity: 0.15;
  display: block;
  margin-bottom: 1rem;
}

/* ── Mode lecture ─────────────────────────────────────── */
body.read-mode nav,
body.read-mode footer,
body.read-mode .poem-header-meta,
body.read-mode .tags,
body.read-mode .poem-footer,
body.read-mode .back,
body.read-mode #fav-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body.read-mode .page-narrow {
  max-width: 560px;
  padding-top: 3rem;
}
body.read-mode .poem-body {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 2.1;
  padding: 2rem 0 4rem;
}
body.read-mode .poem-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}
body.read-mode {
  transition: all 0.4s ease;
}
