/* Shared editorial layout for all article pages. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

main {
  width: min(1080px, calc(100% - 48px));
  padding-top: clamp(44px, 7vw, 76px);
}

main > .breadcrumb {
  margin-bottom: clamp(48px, 7vw, 72px);
}

main > .eyebrow,
main > h1,
main > .byline {
  width: min(880px, 100%);
}

main > .eyebrow {
  margin-bottom: 18px;
  color: var(--ink);
}

main > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 4px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--accent);
}

main > h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: .035em;
}

main > .byline {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

article {
  width: min(700px, 100%);
  margin: clamp(72px, 10vw, 112px) auto 0;
  font-size: 17px;
  line-height: 2.15;
  counter-reset: article-section;
}

article h2 {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 88px 0 28px;
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.55;
  counter-increment: article-section;
}

article h2::before {
  content: counter(article-section, decimal-leading-zero);
  position: static;
  width: auto;
  height: auto;
  color: var(--accent);
  background: none;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 2.2;
  letter-spacing: .12em;
}

article h2:first-of-type {
  margin-top: 72px;
}

article p {
  margin-bottom: 26px;
}

article blockquote,
.article-more {
  margin: 36px 0;
  padding: 24px 28px;
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.author-box,
.related,
.cta-box {
  width: min(700px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.author-box {
  margin-top: clamp(72px, 10vw, 112px);
  padding: 32px 0;
  border: 0;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.related {
  padding: 32px;
  color: var(--paper);
  border: 0;
  background: var(--night);
}

.related .eyebrow,
.related li::marker {
  color: var(--accent);
}

.related a {
  text-decoration-color: var(--accent);
}

.cta-box {
  padding: 36px;
  border: 0;
  border-left: 6px solid var(--accent);
  background: var(--white);
  text-align: left;
}

.cta-button {
  border-radius: 0;
}

@media (max-width: 600px) {
  main {
    width: min(100% - 40px, 1080px);
    padding-top: 36px;
  }

  .site-header {
    align-items: center;
  }

  .back-link {
    display: none;
  }

  main > .breadcrumb {
    margin-bottom: 42px;
  }

  main > h1 {
    font-size: 31px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  article {
    margin-top: 68px;
    font-size: 16px;
    line-height: 2.05;
  }

  article h2 {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    margin-top: 68px;
    font-size: 22px;
  }

  article h2:first-of-type {
    margin-top: 60px;
  }

  article blockquote,
  .article-more {
    padding: 20px 0;
  }

  .related,
  .cta-box {
    padding: 26px 22px;
  }
}
