/*
   le carnet de julien — julien-ferrand.com
   feuille de style maison, réécrite à la main un soir de juillet.
   une seule police (celle du système, Georgia), une colonne, du blanc
   cassé, un peu de terracotta. rien d'autre. si c'est moche chez vous,
   dites-le moi sur WhatsApp, je verrai ce que je peux faire.
*/

:root {
  --papier: #faf6ee;
  --encre: #33302a;
  --encre-pale: #5f594f;
  --terracotta: #a04217;
  --terracotta-fonce: #8a3812;
  --filet: #e2d9c8;
  --note-fond: #f3ecdf;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; }

/* les liens : soulignés, tout simplement */
a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--terracotta-fonce); }
a:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

::selection { background: #e8cdb7; }

/* lien d'évitement pour les lecteurs au clavier */
.acces {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--terracotta);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.acces:focus { top: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ------ le haut de page ------ */

header.bandeau {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2.6rem 1.2rem 1.4rem;
  text-align: center;
  border-bottom: 1px solid var(--filet);
}

.titre-site { margin: 0; font-size: 1.9rem; line-height: 1.2; font-weight: bold; }
.titre-site a { color: var(--encre); text-decoration: none; }
.titre-site a:hover { color: var(--terracotta); }

.sous-titre {
  margin: 0.4rem 0 0;
  font-style: italic;
  color: var(--encre-pale);
  font-size: 1rem;
}

header.bandeau nav { margin-top: 1.1rem; font-size: 1rem; }
header.bandeau nav a { margin: 0 0.7rem; }
header.bandeau nav [aria-current="page"] { color: var(--encre); text-decoration: none; }

/* ------ la colonne ------ */

main {
  max-width: 65ch;
  margin: 0 auto;
  padding: 1.8rem 1.2rem 2.5rem;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0.4rem 0 0.8rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1.2rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }

blockquote {
  margin: 1.6rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--terracotta);
  font-style: italic;
  color: var(--encre-pale);
}

hr {
  border: 0;
  border-top: 1px dotted var(--filet);
  margin: 2.2rem auto;
  width: 60%;
}

/* ------ la liste des billets (accueil) ------ */

.intro-carnet { font-style: italic; color: var(--encre-pale); }

.billet {
  padding: 1.6rem 0;
  border-bottom: 1px dotted var(--filet);
}
.billet:last-of-type { border-bottom: 0; }

.billet h2 { margin: 0.2rem 0 0.5rem; font-size: 1.35rem; }

.quand {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--encre-pale);
}

.extrait { margin-bottom: 0.4rem; }

.lire-suite { font-size: 0.98rem; }

/* ------ un billet ouvert ------ */

.post .quand { margin-bottom: 1.4rem; }

.intro {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--encre-pale);
  margin-bottom: 1.5rem;
}

/* les photos que je prends en visite */
.photo-visite { margin: 2rem 0; }
.photo-visite img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--filet);
  padding: 4px;
  background: #fff;
}
.photo-visite figcaption {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--encre-pale);
}

/* petit encadré quand je veux insister */
.note {
  background: var(--note-fond);
  border: 1px solid var(--filet);
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
}
.note h3 { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

/* ce que j'ai vu en tournée, raconté entre deux paragraphes */
.aparte {
  border-left: 4px solid var(--terracotta);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 1.8rem 0;
  font-size: 1.02rem;
}
.aparte p { margin-bottom: 0; }

/* quand je vous propose d'en parler */
.appel {
  border: 1px dashed var(--terracotta);
  padding: 1.1rem 1.3rem;
  margin: 2.2rem 0 1.6rem;
}
.appel p:last-child { margin-bottom: 0; }

/* ma signature, comme sur une carte postale */
.qui-signe {
  font-style: italic;
  font-size: 1.4rem;
  margin: 2.2rem 0 0.4rem;
  color: var(--terracotta);
}

.ps { font-size: 0.98rem; color: var(--encre-pale); }

/* à lire aussi */
.deja-lu {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px dotted var(--filet);
}
.deja-lu h2 { font-size: 1.05rem; font-style: italic; margin-top: 0; }
.deja-lu ul { list-style: square; }

/* ------ le bas de page ------ */

footer.pied-carnet {
  border-top: 1px solid var(--filet);
  margin-top: 1rem;
  padding: 2rem 1.2rem 2.6rem;
}
footer.pied-carnet > div { max-width: 65ch; margin: 0 auto; }

.blogroll h2 {
  font-size: 1rem;
  font-style: italic;
  margin: 1.4rem 0 0.4rem;
}
.blogroll ul { list-style: none; padding-left: 0; margin-bottom: 1.2rem; }
.blogroll li { margin-bottom: 0.35rem; font-size: 0.98rem; }

.ailleurs { font-size: 0.95rem; }
.ailleurs a { margin-right: 0.8rem; }

.mentions {
  font-size: 0.88rem;
  color: var(--encre-pale);
  margin-top: 1.2rem;
  border-top: 1px dotted var(--filet);
  padding-top: 1.2rem;
}

/* ------ page perdue ------ */

.perdu { text-align: center; padding-top: 3rem; }
.perdu h1 { font-size: 3rem; }

/* ------ petits écrans ------ */

@media (max-width: 480px) {
  body { font-size: 1.03rem; }
  header.bandeau { padding-top: 1.8rem; }
  .titre-site { font-size: 1.55rem; }
  h1 { font-size: 1.5rem; }
}
