/* Pages du journal : l'index /blog/ et les articles. Les en-tête, pied de page et listes
   d'articles viennent de style.css. */
.journal {
  display: block;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 110px;
  position: relative;
  isolation: isolate;
}
/* Le bloc de fin (soutien, Maison TSM) suit l'article : l'espace du bas du journal suffit. */
.journal + .closing > .wrap {
  padding-top: 0;
}
.journal:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/grain.svg");
  opacity: 0.06;
  pointer-events: none;
}
.breadcrumb {
  padding-block: 28px 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #817044;
}
.breadcrumb li + li:before {
  content: "/";
  margin-inline: 12px;
  color: #b5a789;
}
.breadcrumb li[aria-current] {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 48ch;
}
.breadcrumb a:hover {
  color: #5b4520;
}

/* Index du journal */
.journal-header {
  padding-block: 70px 64px;
}
.journal-header .eyebrow {
  color: #817044;
  margin-bottom: 22px;
  letter-spacing: 0.25em;
}
.journal-header h1 {
  font: 400 clamp(64px, 8vw, 112px) / 0.95 var(--serif);
  letter-spacing: -0.04em;
  white-space: normal;
}
/* Le dégradé doré est découpé dans le texte et ne se peint que dans la boîte : le jambage
   italique du « j » déborde en bas et à gauche. La marge intérieure lui fait de la place,
   la marge négative garde la position du mot. */
.journal-header h1 em {
  color: #987539;
  padding: 0 0.1em 0.2em 0.3em;
  margin: 5px 0 -0.2em calc(33px - 0.3em);
}
.journal-header .post-lead {
  margin-top: 28px;
}

/* Article */
.post-header {
  max-width: 860px;
  padding-block: 64px 44px;
}
.post-header h1 {
  margin-top: 22px;
  font: 400 clamp(42px, 5.4vw, 72px) / 1.02 var(--serif);
  letter-spacing: -0.035em;
  white-space: normal;
  text-wrap: balance;
}
.post-lead {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.post-header .post-lead {
  margin-top: 26px;
}
.post-draft {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px dashed #987539;
  font-size: 12px;
  color: #6f5626;
}
.post-cover {
  max-width: 1100px;
  margin-bottom: 64px;
}
.post-cover img {
  width: 100%;
  border: 1px solid #ad8f5466;
  box-shadow:
    0 0 0 7px var(--paper),
    0 0 0 8px #ad8f5433;
}
.post-body {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.post-body > * + * {
  margin-top: 1.15em;
}
.post-body h2 {
  margin-top: 2.2em;
  font: 400 38px/1.1 var(--serif);
  letter-spacing: -0.025em;
}
.post-body h3 {
  margin-top: 1.8em;
  font: 600 20px/1.3 var(--sans);
}
.post-body h2 + *,
.post-body h3 + * {
  margin-top: 0.7em;
}
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote {
  margin-bottom: 0;
}
.post-body ul,
.post-body ol {
  padding-left: 1.3em;
}
.post-body li + li {
  margin-top: 0.45em;
}
.post-body li::marker {
  color: #987539;
}
.post-body a {
  text-decoration: underline;
  text-decoration-color: #b8975a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body a:hover {
  color: #6f5626;
}
.post-body strong {
  font-weight: 600;
}
.post-body blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 26px;
  border-left: 1px solid #987539;
  font: italic 400 26px/1.4 var(--serif);
  color: #5b4520;
}
.post-body code {
  font: 0.88em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 5px;
  background: #e3d9c2;
}
.post-body kbd {
  font: 600 0.82em/1 var(--sans);
  padding: 2px 6px;
  border: 1px solid #b5a789;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #f6f1e4;
  white-space: nowrap;
}
.post-body pre {
  overflow-x: auto;
  padding: 20px 22px;
  background: var(--dark);
  color: var(--light);
  font-size: 14px;
  line-height: 1.6;
}
.post-body pre code {
  padding: 0;
  background: none;
}
.post-body figure img {
  width: 100%;
  border: 1px solid #ad8f5466;
}
.post-body figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.post-body hr {
  margin-block: 2.5em;
  border: 0;
  border-top: 1px solid var(--rule);
}
/* Questions fréquentes et sources, en fin d'article. */
.post-faq,
.post-sources {
  max-width: 700px;
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.post-faq h2,
.post-sources h2 {
  font: 400 34px/1.1 var(--serif);
  letter-spacing: -0.025em;
}
.post-faq-item {
  margin-top: 26px;
}
.post-faq-item h3 {
  font: 600 17px/1.4 var(--sans);
}
.post-faq-item p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.post-sources {
  margin-top: 56px;
}
.post-sources ol {
  margin: 20px 0 0;
  padding-left: 1.4em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.post-sources li + li {
  margin-top: 8px;
}
.post-sources li::marker {
  color: #987539;
}
.post-sources a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #b8975a;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.post-sources a:hover {
  color: #6f5626;
}
.post-sources li > span:before {
  content: " · ";
}
.post-footer {
  max-width: 700px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.post-footer a[rel="author"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #b8975a;
  text-underline-offset: 3px;
}
.post-footer .text-link {
  color: #6f5626;
  font-size: 12px;
}
.related {
  margin-top: 100px;
}
.related h2 {
  margin-bottom: 34px;
  font: 400 48px/1 var(--serif);
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .journal {
    padding-bottom: 70px;
  }
  .breadcrumb li[aria-current] {
    max-width: 22ch;
  }
  .journal-header {
    padding-block: 48px 44px;
  }
  .post-header {
    padding-block: 44px 32px;
  }
  .post-lead {
    font-size: 17px;
  }
  .post-cover {
    width: 100%;
    margin-bottom: 40px;
  }
  .post-cover img {
    border-inline: 0;
    box-shadow: none;
  }
  .post-body {
    font-size: 17px;
  }
  .post-body h2 {
    font-size: 31px;
  }
  .post-body blockquote {
    font-size: 22px;
  }
  .related {
    margin-top: 70px;
  }
  .related h2 {
    font-size: 38px;
  }
}

/* Schéma vectoriel dans un article : il garde sa taille de lecture et se réduit sur mobile. */
.post-diagram {
  margin-block: 2em;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.post-diagram-svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
}
.post-diagram figcaption {
  max-width: 520px;
  margin-inline: auto;
  margin-top: 16px;
}
@media (max-width: 760px) {
  /* Sous 520 px, le schéma deviendrait illisible : il garde sa largeur et défile dans son cadre. */
  .post-diagram {
    overflow-x: auto;
  }
  .post-diagram-svg {
    min-width: 440px;
  }
}
