.article-page {
  --accent: #7754ed;
  --accent-soft: #f0edff;
  color: #14213c;
  background: #fff;
}
.article-page--ai {
  --accent: #9d3eea;
  --accent-soft: #f8edff;
}
.article-page--commerce {
  --accent: #f35b20;
  --accent-soft: #fff1eb;
}
.article-page--development {
  --accent: #2378e9;
  --accent-soft: #ecf4ff;
}
.article-page--design {
  --accent: #e43c99;
  --accent-soft: #fff0f8;
}
.article-page--analytics {
  --accent: #d89600;
  --accent-soft: #fff8e3;
}
.article-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.article-hero {
  margin-top: 200px;
  padding: 42px 0 82px;
  overflow: hidden;
  background: linear-gradient(125deg, #f5f7ff 0%, var(--accent-soft) 100%);
  margin-top: 200px;
}
.article-hero__content {
  max-width: 825px;
  margin: 58px auto 0;
  text-align: center;
}
.article-back {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #5d6b86;
  font-size: 13px;
  font-weight: 600;
}
.article-back:hover {
  color: var(--accent);
}
.article-back span {
  font-size: 18px;
}
.article-category {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.article-hero h1 {
  max-width: 850px;
  margin: 17px auto;
  color: #101d39;
  font-size: clamp(36px, 5.1vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.article-hero__excerpt {
  max-width: 670px;
  margin: 0 auto;
  color: #60708d;
  font-size: 17px;
  line-height: 1.65;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 27px;
  color: #667591;
  font-size: 12px;
}
.article-byline strong {
  display: block;
  color: #24324c;
  font-size: 12px;
}
.article-byline small {
  display: block;
  margin-top: 2px;
  color: #8793aa;
  font-size: 10px;
}
.article-byline i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a4afc3;
}
.author-avatar {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  flex: 0 0 39px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2c67db);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 25%, transparent);
}
.article-content-wrap {
  padding: 65px 0 90px;
}
.article-layout {
  display: grid;
  grid-template-columns: 68px minmax(0, 760px);
  justify-content: center;
  gap: 34px;
}
.article-share {
  display: flex;
  position: sticky;
  top: 130px;
  align-self: start;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.article-share > span {
  margin-bottom: 2px;
  color: #98a4b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}
.article-share a,
.article-share button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e5eaf3;
  border-radius: 50%;
  background: #fff;
  color: #61708c;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}
.article-share a:hover,
.article-share button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.article-cover {
  width: 100%;
  height: clamp(235px, 40vw, 420px);
  display: block;
  border-radius: 19px;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(29, 47, 85, 0.13);
}
.article-lede {
  margin: 39px 0 35px;
  color: #33435f;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
}
.article-section {
  margin: 34px 0;
}
.article-section h2,
.key-takeaways h2,
.article-author-card h2 {
  margin: 0 0 13px;
  color: #17233c;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.article-section p {
  margin: 0 0 15px;
  color: #61708a;
  font-size: 16px;
  line-height: 1.8;
}
.key-takeaways {
  margin-top: 43px;
  padding: 30px 33px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #e7ecf6);
  border-radius: 16px;
  background: var(--accent-soft);
}
.key-takeaways > span,
.article-author-card > div > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.key-takeaways h2 {
  margin-top: 8px;
  font-size: 24px;
}
.key-takeaways ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.key-takeaways li {
  position: relative;
  margin-top: 11px;
  padding-left: 24px;
  color: #4a5a76;
  font-size: 15px;
  line-height: 1.5;
}
.key-takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.article-author-card {
  display: flex;
  gap: 17px;
  margin-top: 45px;
  padding-top: 31px;
  border-top: 1px solid #e9edf5;
}
.article-author-card .author-avatar {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  font-size: 18px;
}
.article-author-card h2 {
  margin: 5px 0 5px;
  font-size: 18px;
}
.article-author-card p {
  max-width: 540px;
  margin: 0;
  color: #74819a;
  font-size: 13px;
  line-height: 1.65;
}
.article-next {
  padding: 55px 0;
  background: #111c3b;
  text-align: center;
}
.article-next p {
  margin: 0 0 9px;
  color: #abb8d8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.article-next a {
  color: #fff;
  font-size: clamp(23px, 4vw, 34px);
  font-weight: 700;
}
.article-next a span {
  color: var(--accent);
  padding-left: 7px;
}
.article-not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  padding: 150px 20px 60px;
  text-align: center;
}
.article-not-found p {
  color: #4770e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.article-not-found h1 {
  max-width: 550px;
  margin: 10px 0 24px;
  color: #16233f;
  font-size: clamp(30px, 5vw, 52px);
}
.article-not-found a {
  color: #fff;
  background: #3568e9;
  padding: 13px 20px;
  border-radius: 9px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .article-hero {
    margin-top: 200px;
    padding: 30px 0 58px;
  }
  .article-hero__content {
    margin-top: 43px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .article-share {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
  }
  .article-share > span {
    margin: 0 4px 0 0;
    writing-mode: horizontal-tb;
  }
  .article-content-wrap {
    padding: 40px 0 65px;
  }
  .article-lede {
    margin-top: 27px;
    font-size: 18px;
  }
  .article-section h2 {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  .article-shell {
    width: min(100% - 28px, 1100px);
  }
  .article-hero {
    margin-top: 200px;
    padding-bottom: 45px;
  }
  .article-hero__content {
    margin-top: 35px;
  }
  .article-hero h1 {
    margin: 14px auto;
  }
  .article-hero__excerpt {
    font-size: 14px;
  }
  .article-byline {
    flex-wrap: wrap;
    max-width: 280px;
    margin-inline: auto;
    gap: 8px;
  }
  .article-byline i {
    display: none;
  }
  .article-byline time::after {
    content: " ·";
  }
  .article-cover {
    height: 215px;
    border-radius: 13px;
  }
  .article-section p {
    font-size: 15px;
  }
  .key-takeaways {
    padding: 25px 21px;
  }
  .article-author-card {
    gap: 13px;
  }
  .article-next {
    padding: 43px 0;
  }
}
