:root {
  --papier: #faf7f1;

  --encre: #1e1b17;
  --encre-douce: #6b645a;
  --filet: #ddd5c8;
  --accent: #8a3b2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: 3rem 1.5rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* En-tête */
.entete {
  margin-bottom: 2.4rem;
}

.entete .site-nom {
  margin: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.entete .site-nom a {
  color: inherit;
  text-decoration: none;
}

.entete .site-nom a:hover {
  color: var(--accent);
}

/* Titre de page (dans le contenu principal) */
main h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
}

main h2 {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin: 2.2rem 0 0.8rem;
}

/* Liste d'entrées (accueil) */
.liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.liste li {
  border-top: 1px solid var(--filet);
}
.liste li:last-child {
  border-bottom: 1px solid var(--filet);
}
.liste a {
  display: block;
  padding: 1.1rem 0;
  color: inherit;
  text-decoration: none;
}
.liste a:hover {
  color: var(--accent);
}
.liste .titre {
  display: block;
  font-size: 1.1rem;
  line-height: 1.4;
}
.liste .auteur {
  display: block;
  font-size: 0.88rem;
  color: var(--encre-douce);
  margin-top: 0.15rem;
}

/* Page d'un texte */
.texte-source {
  margin: 0 0 2.2rem;
  font-size: 0.9rem;
  color: var(--encre-douce);
}
.texte-source cite {
  font-style: italic;
}

.texte p {
  margin: 0 0 1.4rem;
  text-align: justify;
  hyphens: auto;
}
.texte p:first-of-type::first-letter {
  font-size: 3.1em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--accent);
}

/* Mise en évidence du passage ciblé par une ancre */
.texte span:target {
  background: rgba(138, 59, 42, 0.08);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Fil d’Ariane */
.ariane {
  font-size: 0.82rem;
  color: var(--encre-douce);
  margin: 0 0 1.8rem;
}
.ariane a {
  color: inherit;
  text-decoration: none;
}
.ariane a:hover {
  color: var(--accent);
}
.ariane .sep {
  margin: 0 0.5em;
}

/* Page mentions légales */
.legal h2 {
  margin-top: 2.2rem;
}
.legal p {
  margin: 0 0 1rem;
}
.legal a {
  color: var(--encre-douce);
}
.legal a:hover {
  color: var(--accent);
}
.legal .date {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  color: var(--encre-douce);
}

/* Pied de page */
footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--filet);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--encre-douce);
}
footer p {
  margin: 0;
}
footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
  padding-bottom: 2px;
}
footer a:hover {
  color: var(--accent);
  border-color: currentColor;
}

/* Retour en fin de texte */
.retour {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--filet);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.retour a {
  color: var(--encre-douce);
  text-decoration: none;
  border-bottom: 1px solid var(--filet);
  padding-bottom: 2px;
}
.retour a:hover {
  color: var(--accent);
  border-color: currentColor;
}
