.page-head {
  padding-bottom: 0;
}

.page-visual {
  position: relative;
  width: 100vw;
  height: 360px;
  left: calc((100% - 100vw) / 2);
  margin-top: 58px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.68) contrast(1.08);
  opacity: .84;
  mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
}

.page-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 16, 22, .94), rgba(11, 16, 22, .12) 52%, rgba(11, 16, 22, .76)),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%, rgba(11, 16, 22, .2));
}

body[data-page="basics"] .page-visual,
body[data-page="glossary"] .page-visual,
body[data-page="privacy"] .page-visual,
body[data-page="cookies"] .page-visual,
body[data-page="about"] .page-visual {
  background-image: url("../img/editorial-ledger.jpg");
  background-position: center 58%;
}

.article-byline {
  margin-top: 18px;
  color: var(--muted);
  font: 600 12px var(--mono);
  letter-spacing: .025em;
}

.page-meta {
  margin-top: 20px;
  color: var(--muted);
  font: 600 12px var(--mono);
  letter-spacing: .025em;
}

.page-meta a {
  color: var(--gold);
}

.article-byline a,
.source-box a,
.author-card a {
  color: var(--gold);
}

.source-box,
.author-card {
  margin-top: 48px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 31, .72);
}

.source-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.source-box li + li {
  margin-top: 10px;
}

.author-card strong {
  color: var(--gold);
  font-family: var(--mono);
  letter-spacing: .04em;
}

.author-card p {
  max-width: 720px;
}

.affiliate-banner {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 250px);
  margin: 48px auto;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 31, .78);
  text-align: center;
}

.affiliate-banner img {
  display: block;
  max-width: 120px;
  height: auto;
}

.affiliate-label {
  margin: 0;
  color: var(--muted);
  font: 700 10px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.affiliate-banner small {
  color: var(--muted);
  line-height: 1.5;
}

body[data-page="players"] .page-visual,
body[data-page="pros-cons"] .page-visual {
  background-image: url("../img/editorial-room.jpg");
  background-position: center 52%;
}

body[data-page="cycles"] .page-visual,
body[data-page="404"] .page-visual {
  background-image: url("../img/editorial-rain.jpg");
  background-position: center 52%;
}

body[data-page="creators"] .page-visual,
body[data-page="letters"] .page-visual,
body[data-page="contact"] .page-visual,
body[data-page="letter"] .page-visual {
  background-image: url("../img/editorial-desk.jpg");
  background-position: center 54%;
}

.article-with-toc {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: 55px;
  align-items: start;
}

.article-with-toc .toc {
  position: sticky;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 25px 0 0;
  padding: 0 0 0 22px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
}

.article-with-toc .toc strong {
  display: block;
  color: var(--gold);
  font: 700 11px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.article-with-toc .toc a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 7px 0;
  transition: color .2s, transform .2s;
}

.article-with-toc .toc a:hover {
  color: var(--green);
  transform: translateX(3px);
}

.article-main {
  min-width: 0;
}

@media (max-width: 900px) {
  .article-with-toc {
    display: block;
  }

  .article-with-toc .toc {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    margin: 0 0 35px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .article-with-toc .toc strong {
    grid-column: 1 / -1;
    margin-bottom: 5px;
  }

  .article-with-toc .toc a {
    padding: 4px 0;
  }
}

@media (max-width: 620px) {
  .page-visual {
    height: 280px;
    margin-top: 45px;
  }

  .article-with-toc .toc {
    grid-template-columns: 1fr;
  }
}
