:root {
  --paper: #f4f1ea;
  --ink: #2b2b26;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, serif;
  line-height: 1.5;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.post-body img { max-width: 100%; height: auto; display: block; margin: 16px 0; }

.site-title { margin-bottom: 0; }

.site-subtitle { margin-top: 0; font-size: 1.5rem; opacity: 0.8; }

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 24px;
}

.home-link {
  font-weight: bold;
  color: inherit;
  text-decoration: none;
  letter-spacing: 1px;
}

.author-link {
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

a { color: #3c5a70; }

.author { display: flex; gap: 24px; align-items: flex-start; }
.author-avatar { border-radius: 4px; flex-shrink: 0; }
.author-bio h1 { margin-top: 0; }

/* Era: Pékin 1997 — typewriter / dispatch */
.era-pekin1997 {
  font-family: "Courier New", Courier, monospace;
}
.era-pekin1997 .kicker { color: #8a5a3c; }

/* Era: Journal d'un passant — handwritten / countdown */
.era-journal {
  font-family: Georgia, serif;
  font-style: italic;
}
.era-journal .kicker { color: #b08a3a; }

/* Era: Essais — printed academic */
.era-essais {
  font-family: "Times New Roman", Times, serif;
  max-width: 560px;
}
.era-essais .kicker { color: #5a6b4a; }

/* Era: Chroniques — clean modern */
.era-chroniques {
  font-family: system-ui, -apple-system, sans-serif;
}
.era-chroniques .kicker { color: #3c5a70; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

/* append to src/css/style.css */
.prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #ccc;
  gap: 16px;
}
.prev-next a { text-decoration: none; }

/* append to src/css/style.css */
.shelf {
  display: flex;
  gap: 3px;
  height: 220px;
  align-items: flex-end;
  margin-top: 32px;
}
.spine {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 16px;
  text-decoration: none;
  border-radius: 1px;
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.25),
    inset 3px 0 6px rgba(255, 255, 255, 0.08), 0 4px 8px rgba(0, 0, 0, 0.2);
}
.spine-title { font-size: 0.85rem; text-align: center; padding: 0 6px; }
.spine-meta { font-size: 0.65rem; opacity: 0.75; margin-top: auto; margin-bottom: 14px; }

.era-pekin1997.spine { background: linear-gradient(90deg, #6e3f28, #8a5a3c 8%, #8a5a3c 92%, #6e3f28); color: #f2e4cc; font-family: "Courier New", monospace; }
.era-journal.spine { background: linear-gradient(90deg, #8a6a20, #b08a3a 8%, #b08a3a 92%, #8a6a20); color: #fff6df; font-family: Georgia, serif; font-style: italic; }
.era-essais.spine { background: linear-gradient(90deg, #3f4c34, #5a6b4a 8%, #5a6b4a 92%, #3f4c34); color: #eef2e2; font-family: "Times New Roman", serif; }
.era-chroniques.spine { background: linear-gradient(90deg, #28404f, #3c5a70 8%, #3c5a70 92%, #28404f); color: #e6f0f6; font-family: system-ui, sans-serif; }

.category-intro { max-width: 46em; opacity: 0.85; margin: 4px 0 24px; }

.essais-label { font-weight: bold; margin-bottom: 0; }
.essais-label + h1 { margin-top: 4px; }

.post-banner { width: 100%; max-height: 420px; object-fit: cover; display: block; margin: -24px -24px 24px; width: calc(100% + 48px); max-width: calc(100% + 48px); }

.entry-list { list-style: none; padding: 0; }
.entry-thumb { width: 100%; max-height: 180px; object-fit: cover; display: block; margin-bottom: 8px; }

.encadre {
  border: 1px solid #ccc;
  background: rgba(0, 0, 0, 0.02);
  padding: 20px 24px;
  margin: 24px 0;
}
.encadre h2 { margin-top: 0; font-size: 1.15rem; }
.encadre table { border-collapse: collapse; margin: 12px 0; }
.encadre table td { border: 1px solid #ccc; padding: 6px 14px; }
.encadre .source { font-size: 0.85rem; opacity: 0.75; }
.entry-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #ddd; }
.entry-list--sequence { list-style: decimal inside; }
.entry-list--sequence li { display: block; }
.entry-list--sequence time { display: block; font-size: 0.75rem; opacity: 0.7; }

.entry-list--essais li {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
}
.entry-list--essais a {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.entry-list--essais p { margin: 0; opacity: 0.8; line-height: 1.55; }

.not-found { text-align: center; padding: 60px 0; }
