:root {
  --red: #d20a0a;
  --black: #0a0a0a;
  --black2: #111;
  --gray: #888;
  --border: rgba(255, 255, 255, 0.08);
  --article-max: 720px;
  --media-max: 1150px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--red);
}

.article-nav {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.article-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.article-nav a:hover {
  color: #fff;
}

.article {
  width: 100%;
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}

.article h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  text-transform: uppercase;
  line-height: 1.08;
  margin: 12px 0 8px;
}

.article-meta {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 28px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.article h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

/* Media blocks centered on the viewport, not only the text column */
.article-figure,
.article-gallery {
  --media-width: min(var(--media-max), calc(100vw - 48px));
  width: var(--media-width);
  max-width: var(--media-width);
  margin-top: 32px;
  margin-bottom: 32px;
  margin-left: calc(50% - var(--media-width) / 2);
  margin-right: 0;
}

.article-figure {
  background: var(--black2);
  border-radius: 4px;
  overflow: hidden;
}

.article-figure img,
.article > .article-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
  aspect-ratio: 1150 / 660;
  object-fit: cover;
  object-position: center center;
  background: var(--black2);
}

.article-figure .article-hero-img {
  margin-bottom: 0;
}

.article-figure figcaption {
  margin-top: 10px;
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 1150 / 660;
  object-fit: cover;
  object-position: center center;
  background: var(--black2);
}

.article > .article-hero-img {
  margin-bottom: 32px;
}

.article-quote {
  width: 100%;
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.03);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
}

.article-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--gray);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-back {
  width: 100%;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.article-back a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  text-decoration: none;
}

.article-back a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .article-nav {
    padding: 16px 20px;
  }

  .article {
    padding: 32px 20px 56px;
  }

  .article-figure,
  .article-gallery {
    --media-width: calc(100vw - 40px);
    width: var(--media-width);
    max-width: var(--media-width);
    margin-left: calc(50% - var(--media-width) / 2);
  }

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