.charter {
  --charter-ink: #392d24;
  --charter-gold: #82632f;
  --charter-wine: #742c35;
  position: relative;
  box-sizing: border-box;
  max-width: 820px;
  margin: 3.5rem auto 5rem;
  padding: 3rem clamp(1.5rem, 7vw, 5.5rem) 3.5rem;
  border: 1px solid #a68a57;
  outline: 1px solid #bba375;
  outline-offset: -10px;
  background-color: #faf1dd;
  background-image:
    radial-gradient(ellipse at top, #fffaf080, transparent 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23795c32' opacity='.045' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  box-shadow: 0 12px 35px #392d2410;
  color: var(--charter-ink);
  font-family: serif;
  font-size: 1.25rem;
  line-height: 1.65;
}

.charter::before,
.charter::after {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 12px;
  border-left: 3px double #a68a57;
  border-right: 3px double #a68a57;
  content: "";
  pointer-events: none;
}

.charter::before {
  top: 18px;
  border-top: 3px double #a68a57;
}

.charter::after {
  bottom: 18px;
  border-bottom: 3px double #a68a57;
}

.charter-heading {
  text-align: center;
}

.charter-crest {
  color: var(--charter-gold);
  font-size: 3.5rem;
  line-height: 1.2;
}

.charter-eyebrow,
.article-number,
.charter-closing {
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

.charter-eyebrow {
  margin: 1rem 0;
  color: var(--charter-gold);
  font-size: 0.95rem;
}

.charter h1,
.charter h2 {
  font-family: serif;
  font-weight: 400;
}

.charter h1 {
  margin: 1.5rem 0;
  color: var(--charter-ink);
  font-size: clamp(1.9rem, 5.5vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.charter h1 sup {
  font-size: 0.3em;
  vertical-align: super;
  letter-spacing: normal;
}

.charter-preamble {
  max-width: 30em;
  margin: 1.5rem auto 0;
  font-style: italic;
  color: #68543e;
}

.articles {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.articles li {
  padding: 1rem 0 1.5rem;
}

.articles li::before {
  display: block;
  margin: 0 auto 1.5rem;
  color: var(--charter-gold);
  content: "───── ⚜ ─────";
  text-align: center;
  font-size: 1rem;
}

.article-number {
  margin: 0;
  color: var(--charter-gold);
  font-size: 1rem;
  text-align: center;
}

.charter h2 {
  margin: 0.5rem 0 1rem;
  color: var(--charter-wine);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.5;
  text-align: center;
  scroll-margin-top: 2rem;
}

.charter h2:target {
  background-color: #ead9ac;
  outline: 1px solid #a68a57;
  outline-offset: 5px;
}

.articles article > p:last-of-type {
  margin: 0;
}

.articles article > p:last-of-type::first-letter {
  float: left;
  padding: 0.12em 0.1em 0 0;
  color: var(--charter-wine);
  font-family: serif;
  font-size: 3.4em;
  line-height: 0.85;
}

.article-signature {
  margin-top: 1rem;
  color: var(--charter-gold);
  font-size: 1rem;
  font-style: italic;
  text-align: right;
}

.rule-anchor {
  display: inline-block;
  padding: 0 0.3em;
  color: var(--charter-gold);
  font-family: serif;
  font-size: 0.85em;
  font-style: normal;
  text-decoration: none;
}

.rule-anchor:hover,
.rule-anchor:focus-visible {
  color: var(--charter-wine);
  text-decoration: underline;
}

.charter q {
  font-style: italic;
  white-space: nowrap;
}

.charter-closing {
  border-top: 1px solid #bba375;
  margin-top: 1rem;
  padding-top: 1.75rem;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 800px) {
  .charter {
    margin: 1.5rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  .charter {
    padding-top: 2.5rem;
    font-size: 1.15rem;
    outline-offset: -6px;
  }

  .charter::before,
  .charter::after {
    display: none;
  }
}
