:root {
  --papier: #f6f1e7;
  --encre: #221d17;
  --gris: #6f655a;
  --filet: #d9cfbf;
  --accent: #b5361d;
  --vermillon: #e14b26;
  --vermillon-fonce: #c23c1c;
  --encart: #efe7d8;
  --mesure: 36rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1b1814;
    --encre: #e9e1d3;
    --gris: #a39886;
    --filet: #3a342c;
    --accent: #f08a68;
    --vermillon: #d9481f;
    --vermillon-fonce: #b83a17;
    --encart: #24201b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  hanging-punctuation: first;
}
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
main { padding: 0 1rem; }

/* bandeau */
.tete {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.4rem 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 1rem;
}
.marque { font-variant: small-caps; letter-spacing: .06em; text-decoration: none; font-size: 1.1rem; }
.tete nav { display: flex; gap: 1.2rem; }
.tete nav a { text-decoration: none; color: var(--gris); }
.tete nav a:hover { color: var(--accent); }
.tete nav .nav-abo { color: var(--vermillon-fonce); }

/* accueil */
.une { padding: 3.5rem 0 3.5rem; }
.une-int {
  max-width: 62rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 3.5rem; align-items: center;
}
.embleme { margin: 0; }
.embleme img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.une h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 400; font-style: italic; text-transform: uppercase;
  line-height: .95; letter-spacing: -.01em; margin: 0;
}
.accroche { font-style: italic; color: var(--vermillon-fonce); margin: .9rem 0 1.4rem; font-size: 1.35rem; }
.une-texte > p:not(.accroche):not(.rassurance) { margin: 0 0 .9em; }
.une .inscription { margin: 1.8rem 0 0; max-width: 30rem; }
.rassurance { color: var(--gris); font-size: 1rem; line-height: 1.45; margin: .7rem 0 0; max-width: 30rem; }

.inscription label { display: block; font-size: .95rem; color: var(--gris); margin-bottom: .4rem; }
.champ { display: flex; border: 1px solid var(--encre); border-radius: 3px; overflow: hidden; background: var(--papier); }
.champ input {
  flex: 1; min-width: 0; border: 0; padding: .75rem .85rem; font: inherit; font-size: 1.08rem;
  background: transparent; color: var(--encre);
}
.champ input:focus { outline: none; background: var(--encart); }
.champ button {
  border: 0; padding: 0 1.2rem; font: inherit; font-size: 1.05rem; cursor: pointer; white-space: nowrap;
  background: var(--vermillon-fonce); color: #fff;
}
.champ button:hover { background: var(--encre); }

.recents { max-width: var(--mesure); margin: 0 auto; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--filet); }
.recents h2, .etiquette {
  font-size: 1rem; font-weight: 400; font-variant: small-caps; letter-spacing: .1em; color: var(--gris); margin: 0 0 .8rem;
}
.tout { margin: 1.2rem 0 0; font-size: 1.05rem; }

/* le livre : bandeau à la couleur de la couverture */
.livre { background: var(--vermillon); color: #1a0d08; margin: 0 -1rem; padding: 4rem 1rem; }
.livre-int {
  max-width: 54rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 3rem; align-items: center;
}
.couv img { display: block; width: 100%; height: auto; box-shadow: 0 1.2rem 2.4rem rgba(60, 15, 0, .35), 0 .2rem .5rem rgba(60, 15, 0, .25); transform: rotate(-1.5deg); transition: transform .3s; }
.couv:hover img { transform: rotate(0); }
.livre .etiquette { color: rgba(26, 13, 8, .7); }
.livre h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 400; font-style: italic; text-transform: uppercase; line-height: 1; margin: 0 0 1.2rem; }
.livre h2 span { display: block; font-style: normal; text-transform: none; font-size: 1.3rem; margin-top: .5rem; }
.livre p { margin: 0 0 .8em; }
.livre a { color: inherit; }
.bouton {
  display: inline-block; margin-top: .6rem; padding: .7rem 1.3rem; border: 1px solid #1a0d08; border-radius: 3px;
  text-decoration: none; font-size: 1.05rem;
}
.bouton:hover { background: #1a0d08; color: var(--vermillon) !important; }

/* vidéo */
.video { max-width: var(--mesure); margin: 0 auto; padding: 3.5rem 0 1rem; }
.video h2 { font-size: 2rem; font-weight: 400; margin: 0 0 .6rem; }
.video p { margin: 0 0 .8em; }
.lien-fleche { color: var(--vermillon-fonce); text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; }

/* listes de textes */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-bottom: 1px solid var(--filet); }
.liste li:last-child { border-bottom: 0; }
.liste a { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1rem; padding: .9rem 0; text-decoration: none; }
.liste time { grid-row: span 2; color: var(--gris); font-size: 1rem; padding-top: .15rem; }
.liste .t { font-size: 1.3rem; line-height: 1.25; }
.liste a:hover .t { color: var(--accent); }
.liste .c { color: var(--gris); font-size: 1.02rem; line-height: 1.45; margin-top: .2rem; }
.liste .c:empty { display: none; }
.liste.sans-date a { display: flex; flex-direction: column; padding: 1rem 0; }

/* archives */
.intro { max-width: var(--mesure); margin: 0 auto; padding: 3.5rem 0 1.5rem; }
.intro h1 { font-size: 2.8rem; font-weight: 400; margin: 0; }
.intro p { color: var(--gris); margin: .3rem 0 0; }
.annee { max-width: var(--mesure); margin: 0 auto; padding: 1.8rem 0 .5rem; border-top: 1px solid var(--filet); }

/* texte */
.texte { max-width: var(--mesure); margin: 0 auto; padding: 3.5rem 0 1rem; }
.texte header { text-align: center; margin-bottom: 2.6rem; }
.date { font-variant: small-caps; letter-spacing: .08em; color: var(--gris); margin: 0 0 .5rem; font-size: 1.02rem; }
.texte h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
.corps p { margin: 0 0 1em; }
.corps h2, .corps h3, .corps h4 { font-weight: 500; line-height: 1.25; margin: 2em 0 .7em; }
.corps h2 { font-size: 1.5rem; }
.corps h3, .corps h4 { font-size: 1.25rem; font-variant: small-caps; letter-spacing: .04em; }
.corps hr { border: 0; text-align: center; margin: 2.2em 0; }
.corps hr::after { content: "⁂"; color: var(--gris); font-size: 1.2rem; }
.corps figure { margin: 2em 0; }
.corps img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.corps blockquote { margin: 1.5em 0; padding: 0 0 0 1.2em; border-left: 2px solid var(--filet); font-style: italic; }
.corps ul, .corps ol { padding-left: 1.3em; }
.corps li { margin-bottom: .4em; }
.corps a { word-break: break-word; }

.suite {
  max-width: var(--mesure); margin: 2rem auto 0; padding: 1.5rem 0; border-top: 1px solid var(--filet);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: 1.05rem; line-height: 1.3;
}
.suite a { text-decoration: none; }
.suite span { display: block; font-variant: small-caps; letter-spacing: .08em; color: var(--gris); font-size: .95rem; margin-bottom: .2rem; }
.suite .suiv { text-align: right; }
.encart { max-width: var(--mesure); margin: 1rem auto 3rem; padding: 1.6rem 1.4rem; background: var(--encart); }

.pied { max-width: var(--mesure); margin: 0 auto; padding: 2rem 1rem 3rem; color: var(--gris); font-size: .95rem; text-align: center; }
.pied p { margin: 0; }

@media (max-width: 52rem) {
  .une-int { grid-template-columns: 1fr; gap: 1.5rem; max-width: var(--mesure); }
  .embleme { max-width: 15rem; margin: 0 auto; }
  .une h1, .accroche { text-align: center; }
  .livre-int { grid-template-columns: 1fr; max-width: var(--mesure); }
  .couv { display: block; max-width: 13rem; margin: 0 auto; }
}
@media (max-width: 34rem) {
  .tete { flex-direction: column; gap: .4rem; }
  .tete nav { gap: .9rem; flex-wrap: wrap; }
  body { font-size: 1.15rem; }
  .une { padding-top: 3.5rem; }
  .liste a { grid-template-columns: 1fr; }
  .liste time { grid-row: auto; }
  .suite { grid-template-columns: 1fr; }
  .suite .suiv { text-align: left; }
}
@media (prefers-color-scheme: dark) {
  .embleme img { mix-blend-mode: normal; }
}
