/* Styles specific to article.html (loaded after the shared style.css) */

/* ---- Back button ---- */
.aside {
  position: static;
  padding: 0 0 2rem;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  transition: color 0.1s ease;
}

.back-button:hover {
  color: rgba(0, 0, 0, 0.8);
}

@media screen and (min-width: 1080px) {
  .aside {
    position: fixed;
    top: 5rem;
    left: 5rem;
    padding: 0;
  }
}

/* ---- Section heading sitting on a horizontal rule ---- */
.heading-rule {
  position: relative;
  padding: 4rem 0 1.5rem;
}

.heading-rule__line {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
}

.heading-rule__label {
  position: absolute;
  top: 4rem;
  left: 0;
  transform: translateY(-50%);
}

.heading-rule__label h1 {
  display: inline-block;
  padding: 0 0.5rem 0 0;
  background: var(--body-bg);
  color: #111;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--text-spacing, -0.01125rem);
  transform: translateY(-15%);
}

/* ---- Subheadings ---- */
.article h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: var(--text-spacing, -0.00563rem);
  text-wrap: balance;
}

.article > p + h3,
.article > p + h4,
.article > p + h5,
.article > p + h6 {
  padding-top: 1rem;
}

/* ---- Inline emphasis ---- */
.article p strong,
.article li strong {
  font-weight: 600;
}

.article em,
.article em strong,
.article strong em {
  color: #000;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 430;
  letter-spacing: 0.01rem;
}

.article p em {
  line-height: 1;
}

/* ---- Unordered lists ---- */
.article > ul {
  list-style: none;
  display: block;
  position: relative;
  padding: 0.5rem 0 1rem 1.25rem;
}

.article > ul li {
  position: relative;
  padding: 0 0 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.article > ul li:last-child {
  padding-bottom: 0;
}

.article > ul li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0.675em;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #b3b3b3;
}

/* ---- Ordered lists ---- */
.article > ol {
  list-style: none;
  display: block;
  position: relative;
  counter-reset: list;
  padding: 0.5rem 0 1rem 1rem;
}

.article > ol li {
  position: relative;
  counter-increment: list;
  padding: 0 0 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.article > ol li:last-child {
  padding-bottom: 0;
}

.article > ol li::before {
  content: counter(list) ".";
  position: absolute;
  right: 100%;
  top: 0;
  width: 0.25rem;
  height: 0.25rem;
  color: rgba(0, 0, 0, 0.4);
}

/* ---- Blockquotes ---- */
.article blockquote {
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 460;
  line-height: 140%;
  letter-spacing: -0.0025rem;
  padding: 2rem 0;
  color: hsla(0, 0%, 7%, 0.6);
}

.article blockquote p {
  display: block;
  position: relative;
  padding: 0 0 0 1rem;
}

.article blockquote p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.125rem;
  border-radius: 0.3125rem;
  background: #e6e6e6;
}

.article blockquote p + p {
  padding-top: 0.75rem;
}

.article blockquote cite {
  display: block;
  padding: 1rem 0 0 1rem;
}

.article blockquote cite::before {
  content: "- ";
}
