:root {
  --article-ink: #2d2622;
  --article-muted: #776b62;
  --article-paper: #f0e7d7;
  --article-paper-dark: #d9c8ad;
  --article-amber: #bd7a30;
  --article-amber-dark: #70451f;
  --article-night: #15110f;
  --article-line: rgba(89, 62, 39, 0.24);
}

body.page-article.article-parchment {
  color: var(--article-ink);
  background:
    linear-gradient(rgba(20, 15, 13, 0.82), rgba(20, 15, 13, 0.95)),
    var(--article-background) center 22% / cover fixed;
}

.article-parchment .article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 48px auto;
  padding: 0;
}

.article-parchment .back-link {
  margin-bottom: 1.25rem;
  color: #f0c987;
  font-weight: 600;
}

.article-parchment .back-link:hover {
  color: #fff4df;
}

.article-parchment .article-document {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.48), transparent 30%),
    linear-gradient(135deg, var(--article-paper), var(--article-paper-dark));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52);
}

.article-parchment .article-header {
  position: relative;
  z-index: 1;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 56px;
  color: #fffaf1;
  background: linear-gradient(
    to top,
    rgba(17, 12, 10, 0.98),
    rgba(17, 12, 10, 0.48) 58%,
    rgba(17, 12, 10, 0.12)
  );
}

.article-parchment .archive-number {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 230, 191, 0.46);
  background: rgba(61, 37, 22, 0.58);
  color: #f6d8a6;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.article-parchment .article-date {
  margin: 0 0 8px;
  color: rgba(255, 250, 242, 0.76);
}

.article-parchment .article-header h1 {
  margin: 0 0 12px;
  color: #fffaf1;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.98;
  font-weight: 500;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.58);
}

.article-parchment .article-lead {
  max-width: 760px;
  color: rgba(255, 250, 242, 0.93);
  font-size: 1.17rem;
}

.article-parchment .article-tags {
  margin-top: 24px;
}

.article-parchment .article-tags .tag {
  border-color: rgba(255, 230, 191, 0.3);
  background: rgba(255, 255, 255, 0.11);
  color: #fffaf1;
}

/* La véritable image HTML forme le bandeau : elle reste visible et indexable. */
.article-parchment .article-cover {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  display: block;
  width: 100%;
  height: 590px;
  max-height: none;
  object-fit: cover;
  object-position: center 22%;
}

.article-parchment .article-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 66px 46px 78px;
  color: var(--article-ink);
}

.article-parchment .article-content p {
  margin: 0 0 1.42em;
}

.article-parchment .article-content h2 {
  margin: 2.2em 0 0.65em;
  color: var(--article-night);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  font-weight: 500;
}

.article-parchment .article-content h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 11px;
  background: linear-gradient(to right, var(--article-amber), transparent);
}

.article-parchment .dropcap::first-letter {
  color: var(--article-amber-dark);
}

.article-parchment .article-content a {
  color: var(--article-amber-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(112, 69, 31, 0.34);
  text-underline-offset: 0.18em;
}

.article-parchment .article-content a:hover {
  color: #4f2d14;
  text-decoration-color: currentColor;
}

.article-parchment .related-heading {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--article-line);
}

.article-parchment .author-note,
.article-parchment .council-note,
.article-parchment .confidential-note {
  border: 0;
  border-left: 4px solid var(--article-amber);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  color: #48382d;
  font-style: italic;
}

.article-parchment .note-label {
  color: var(--article-amber-dark);
  font-style: normal;
}

/* Lignes retirées d'une archive : le contenu conservé autour reste lisible. */
.article-parchment .redacted-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.72rem;
  margin: 1.8rem 0 2.4rem;
  padding: 0.35rem 0;
  transform: rotate(-0.12deg);
}

.article-parchment .redacted-lines span {
  display: block;
  width: 100%;
  height: 0.82rem;
  background: rgba(35, 31, 28, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.article-parchment .redacted-lines span:nth-child(2) { width: 94%; }
.article-parchment .redacted-lines span:nth-child(3) { width: 98%; }
.article-parchment .redacted-lines span:nth-child(4) { width: 87%; }
.article-parchment .redacted-lines span:nth-child(5) { width: 96%; }
.article-parchment .redacted-lines span:nth-child(6) { width: 91%; }
.article-parchment .redacted-lines span:nth-child(7) { width: 99%; }
.article-parchment .redacted-lines span:nth-child(8) { width: 84%; }
.article-parchment .redacted-lines span:nth-child(9) { width: 63%; }

.article-parchment a:focus-visible {
  outline: 2px solid var(--article-amber);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  body.page-article.article-parchment {
    background-attachment: scroll;
  }

  .article-parchment .article-shell {
    width: 100%;
    margin: 0;
  }

  .article-parchment .back-link {
    margin: 18px 24px;
  }

  .article-parchment .article-header {
    min-height: 500px;
    padding: 34px 24px;
  }

  .article-parchment .article-cover {
    height: 500px;
  }

  .article-parchment .article-content {
    padding: 48px 24px 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-article.article-parchment {
    background-attachment: scroll;
  }
}
