/* Individual blog article page */

.article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 680px;
  padding: 80px clamp(22px, 10vw, 150px);
  background: linear-gradient(135deg, var(--yellow), #ffbe77 50%, var(--pink));
  background-size: 180% 180%;
  animation: gradient-drift 10s ease-in-out infinite alternate;
}

.article-hero > :not(.hero-shapes) {
  position: relative;
  z-index: 2;
}

.article-back {
  display: block;
  margin-bottom: 55px;
  font: 700 13px var(--font-space-mono), monospace;
}

.article-back:hover {
  color: var(--pink);
}

.article-hero .eyebrow {
  background: var(--cream);
  color: var(--pink);
}

.article-hero h1 {
  max-width: 1100px;
  font-size: clamp(52px, 7.5vw, 108px);
  font-weight: 700;
}

.article-excerpt {
  max-width: 780px;
  margin: 36px 0;
  font-size: 20px;
  line-height: 1.55;
}

.article-byline {
  display: flex;
  gap: clamp(30px, 6vw, 90px);
  padding-top: 25px;
  border-top: 1px solid #063e4259;
  font-size: 14px;
}

.article-byline span {
  display: grid;
  gap: 5px;
}

.article-byline b {
  color: var(--pink);
  font: 700 11px var(--font-space-mono), monospace;
  text-transform: uppercase;
}

.article-body {
  padding: 100px clamp(22px, 20vw, 330px);
  background: var(--white);
}

.article-body section {
  margin-bottom: 70px;
}

.article-section-group {
  display: contents;
}

.article-body h2 {
  margin: 48px 0 18px;
  color: var(--pink);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
}

.article-body h3 {
  margin: 36px 0 14px;
  color: var(--pink);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
}

.article-body h4 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
}

.article-body h2:first-child,
.article-body h3:first-child,
.article-body h4:first-child {
  margin-top: 0;
}

.article-body p {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
}

.article-body > p + p {
  margin-top: 22px;
}

.article-list {
  display: grid;
  gap: 5px;
  margin: 12px 0 28px;
  padding: 0;
  list-style: none;
}

.article-list li {
  position: relative;
  padding: 7px 0 7px 25px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.5;
}

.article-list li::before {
  content: "|";
  position: absolute;
  top: 7px;
  left: 0;
  color: var(--pink);
  font: 900 17px/1 var(--font-space-mono), monospace;
}

.article-body figure,
.article-body > p:has(> img),
.article-body > p:has(> a > img),
.article-image {
  position: relative;
  max-width: 640px;
  margin: 40px auto 56px;
  padding: 12px 12px 46px;
  overflow: visible;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 13px 15px 0 var(--pink);
  transform: rotate(-2deg);
  transition: transform 0.35s, box-shadow 0.35s;
}

.article-body figure:nth-of-type(even),
.article-body > p:has(img):nth-of-type(even) {
  box-shadow: 13px 15px 0 var(--teal);
  transform: rotate(2deg);
}

.article-body figure:hover,
.article-body > p:has(img):hover,
.article-image:hover {
  box-shadow: 17px 20px 0 var(--orange);
  transform: rotate(0) translateY(-5px);
}

.article-body figure p,
.article-body figure a {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  transform: none;
  background: transparent;
}

.article-body figure img,
.article-body > p img,
.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body figure::after,
.article-body > p:has(img)::after,
.article-image::after {
  content: "KOKONUTS · BLOG";
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: var(--ink);
  font: 700 11px / 1 var(--font-space-mono), monospace;
  letter-spacing: 0.08em;
}

.article-body figcaption {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  margin: 0;
  color: var(--ink);
  font: 700 11px / 1 var(--font-space-mono), monospace;
  letter-spacing: 0.08em;
}

.article-body figure:has(figcaption:not(:empty))::after {
  content: none;
}

@media (max-width: 900px) {
  .article-body {
    padding-inline: clamp(22px, 9vw, 90px);
  }
}

@media (max-width: 560px) {
  .article-hero {
    min-height: auto;
    padding: 70px 20px;
  }

  .article-hero h1 {
    font-size: clamp(43px, 13vw, 54px);
  }

  .article-excerpt {
    margin-top: 26px;
    font-size: 17px;
  }

  .article-back {
    margin-bottom: 34px;
  }

  .article-body {
    padding: 70px 20px;
  }

  .article-body section {
    margin-bottom: 54px;
  }

  .article-body h2 {
    font-size: 35px;
  }

  .article-body h3 {
    font-size: 26px;
  }

  .article-body h4 {
    font-size: 20px;
  }

  .article-body p {
    font-size: 17px;
  }

  .article-byline {
    flex-direction: column;
    gap: 18px;
  }

  .article-image {
    margin-bottom: 70px;
    box-shadow: 8px 9px 0 var(--pink);
  }

  .article-body figure,
  .article-body > p:has(> img),
  .article-body > p:has(> a > img),
  .article-image {
    padding: 8px 8px 38px;
    box-shadow: 8px 9px 0 var(--pink);
  }
}

.legal-hero {
  min-height: 0;
  padding: 90px clamp(22px, 10vw, 150px) 70px;
}

.legal-hero h1 {
  font-size: clamp(42px, 6vw, 84px);
}

.legal-body h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.legal-body h3 {
  font-size: clamp(20px, 2.2vw, 28px);
}

.legal-body ul {
  margin: 16px 0 28px;
  padding-left: 1.2em;
}

.legal-body li {
  margin: 8px 0;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.6;
}
