﻿/**
 * Hero
 */
.article-hero {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .article-hero {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 5%;
  height: 50%;
  aspect-ratio: 1;
  border-radius: 815px;
  background: linear-gradient(180deg, rgba(0, 233, 228, 0.1) 0%, rgba(160, 79, 244, 0.2) 100%);
  filter: blur(100px);
}

@media (min-width: 1024px) {
  .article-hero::before {
    top: 0;
    left: -20%;
    right: auto;
    height: auto;
    width: 50vw;
  }

  .article-hero::after {
    content: "";
    position: absolute;
    top: 10%;
    right: -15%;
    width: 50vw;
    aspect-ratio: 1;
    border-radius: 815px;
    background: linear-gradient(180deg, rgba(0, 233, 228, 0.1) 0%, rgba(160, 79, 244, 0.2) 100%);
    filter: blur(100px);
  }
}

.article-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .article-hero__inner {
    gap: 2.5rem;
  }
}

.article-hero__heading {
  font-family: "Season Sans", sans-serif;
  font-size: clamp(34px, 8vw, 60px);
  color: white;
  line-height: 1.125;
}

.article-hero__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Season Sans", sans-serif;
  font-size: 16px;
  color: #a1a1a1;
  text-decoration: none;
}

.article-hero__author-image {
  width: 48px;
  border-radius: 9999px;
  overflow: hidden;
}

.article-hero__description {
  font-family: "Season Sans", sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  color: white;
  line-height: 1.5;
}

/**
 * Body
 */

.article-body {
  --radius: 25px;
  padding-top: 1.5rem;
  background-color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: calc(-1 * var(--radius));
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .article-body {
    --radius: 50px;
    padding-top: 2rem;
  }

  .article-body .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.article-body__image {
  position: relative;
  display: block;
  aspect-ratio: 25 / 24;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .article-body__image {
    border-radius: 50px;
    aspect-ratio: 17 / 7;
    margin-bottom: 9rem;
  }
}

.article-body__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-body__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1280px) {
  .article-body__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
    min-height: 100vh;
  }
}

.article-body__sidebar {
  display: none;
  grid-column: span 3 / span 3;
}

@media (min-width: 1280px) {
  .article-body__sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
    height: max-content;
    align-self: start;
    transition: top 0.3s ease;
  }

  .header-revealed .article-body__sidebar {
    top: calc(94px + 2rem);
  }
}

/**
 * Index
 */
.article-body__index {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  background: #1a1b1e;
  border-radius: 20px;
}

.article-body__index-heading {
  margin-bottom: 1.25rem;
  font-family: "Season Serif", serif;
  font-size: clamp(20px, 3vw, 24px);
  color: white;
}

.article-body__index-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-body__index-item {
  font-family: "Season Sans", sans-serif;
  font-size: clamp(15px, 3vw, 18px);
  color: rgba(255, 255, 255, 0.6);
}

.article-body__index-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.article-body__index-item a:hover {
  color: rgba(255, 255, 255, 1);
}

/**
 * Sign up
 */
.article-body__signup {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  background: #1a1b1e;
  border-radius: 20px;
}

.article-body__signup-heading {
  margin-bottom: 1.25rem;
  font-family: "Season Serif", serif;
  font-size: clamp(20px, 3vw, 24px);
  color: white;
}

.article-body__signup form > div {
  padding: 0 !important;
  min-height: 0 !important;
}

.article-body__signup input[type="text"],
.article-body__signup input[type="email"] {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  outline: none !important;
  padding: 1rem 1.25rem !important;
  font-family: "Season Serif", sans-serif !important;
  font-size: 16px !important;
  color: white !important;
  appearance: none !important;
}

body .article-body__signup form input[type="text"]:hover,
body .article-body__signup form input[type="email"]:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  outline: none !important;
}

.article-body__signup form button {
  display: block !important;
  position: relative !important;
  margin-top: 1rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  font-family: "Season Serif", sans-serif !important;
  font-size: 15px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 9999px !important;
  background: white !important;
  font-weight: 400 !important;
  color: black !important;
  height: auto !important;
  outline: none !important;
  border: none !important;
}

.article-body__signup form button:hover {
  opacity: 0.8 !important;
  background: white !important;
  outline: none !important;
  border: none !important;
}

/**
 * Content
 */
.article-body__content {
  grid-column: span 6 / span 6;
}

.article-body__content h1,
.article-body__content h2,
.article-body__content h3,
.article-body__content h4,
.article-body__content h5,
.article-body__content h6 {
  margin-bottom: 1.5rem;
  font-family: "Season Sans", sans-serif;
  /* line-height: 1.5; */
  color: black;
}

.article-body__content h1 {
  font-size: clamp(34px, 8vw, 80px);
}

.article-body__content h2 {
  font-size: clamp(28px, 8vw, 50px);
}

.article-body__content h3 {
  font-size: clamp(24px, 8vw, 40px);
}

.article-body__content h4 {
  font-size: clamp(20px, 8vw, 32px);
}

.article-body__content h5 {
  font-size: clamp(18px, 8vw, 24px);
}

.article-body__content h6 {
  font-size: clamp(16px, 8vw, 20px);
}

.article-body__content p {
  font-family: "Season Sans", sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  color: black;
  line-height: 1.5;
}

.article-body__content p a {
  color: inherit;
  text-decoration: underline;
}

.article-body__content p a:hover {
  text-decoration: none;
}

.article-body__content p + .article-body__content p {
  margin-top: 1rem;
}

.article-body__content p + .article-body__content-image {
  margin-top: 3rem;
}

.article-body__content p + h1,
.article-body__content p + h2,
.article-body__content p + h3,
.article-body__content p + h4,
.article-body__content p + h5,
.article-body__content p + h6 {
  margin-top: 2rem;
}

.article-body__content p + section,
.article-body__content img + li {
  margin-top: 2rem;
}

.article-body__content ol {
  counter-reset: section;
  list-style: none;
  padding-left: 0;
}

.article-body__content ol > li {
  position: relative;
  margin-bottom: 2rem;
}

.article-body__content ol > li > * a {
  color: inherit;
  text-decoration: none;
}

.article-body__content ol > li {
  counter-increment: section;
  display: inline-block;
  margin-bottom: 1rem;
}

.article-body__content ol > li::before {
  content: counter(section) ". ";
  font: inherit;
  color: inherit;
  text-decoration: inherit;
}

.article-body__content ul {
  list-style: disc;
  margin-left: 1rem;
}

.article-body__content ul li {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.article-body__content p + ul {
  margin-top: 1rem;
}

.article-body__content p a,
.article-body__content ul li a {
  color: inherit;
  text-decoration: underline;
}

.article-body__content p a:hover,
.article-body__content ul li a:hover {
  text-decoration: none;
}

.article-body__content-image {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.article-body__content-image + .article-body__content-image {
  margin-top: 2rem;
}

.article-body__content-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body__content-image--square {
  aspect-ratio: 1;
}

.article-body__content-image--rectangle {
  aspect-ratio: 2 / 1;
}
