:root {
  --panel: rgb(255 255 255 / 3%);
  --panel-strong: rgb(255 255 255 / 6%);
  --border: rgb(255 255 255 / 10%);
  --text: var(--color-white);
  --muted: var(--color-slate-400);
  --muted-2: var(--color-slate-500);
  --accent: var(--color-violet-500);
  --accent-light: var(--color-violet-300);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-slate-950);
  color: var(--color-white);
  font-family: var(--font-sans);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.blog-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-right: 40px;
  padding-left: 40px;
}

.blog-header {
  padding-top: 128px;
  padding-bottom: 80px;
}

.blog-hero {
  max-width: 830px;
  margin: 0 auto;
  padding-bottom: 20px;
  text-align: center;
}

.blog-badge {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-violet-400);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-hero h1,
.article-hero h1 {
  margin: 0 auto;
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
}

.blog-hero h1 {
  max-width: 800px;
}

.blog-hero h1 .highlight {
  background: linear-gradient(90deg, var(--color-violet-400), var(--color-fuchsia-400), var(--color-indigo-400));
  background-clip: text;
  color: transparent;
}

.blog-subtitle {
  max-width: 672px;
  margin: 16px auto 0;
  color: var(--color-slate-300);
  font-size: 1.125rem;
  line-height: 1.625;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.post-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgb(107 193 222 / 30%);
  background: var(--panel-strong);
}

.post-card-media {
  position: relative;
  aspect-ratio: 1.62;
  overflow: hidden;
  background: var(--color-slate-950);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.1);
}

.post-card-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgb(59 166 208 / 15%);
  color: var(--color-violet-300);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-card h3 {
  margin: 0;
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.post-card p {
  margin: 12px 0 0;
  color: var(--color-slate-400);
  font-size: 0.875rem;
  line-height: 1.625;
}

.post-card a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: var(--color-violet-300);
  font-size: 0.875rem;
  font-weight: 600;
}

.post-card a::after {
  color: var(--color-violet-500);
  content: "  →";
}

.post-card a:hover {
  color: var(--color-white);
}

.cta-strip {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
}

.article-body h2,
.article-final-cta h3 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
}

.cta-strip h2 {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.cta-strip p,
.article-final-cta p {
  max-width: 672px;
  margin: 12px 0 0;
  color: var(--color-slate-400);
  font-size: 1rem;
  line-height: 1.5;
}

.cta-strip p {
  font-size: 0.875rem;
}

.cta-strip .cta-button,
.article-final-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 24px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-violet-600), var(--color-indigo-600));
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgb(23 63 85 / 30%);
  transition: transform 180ms ease;
}

.cta-strip .cta-button:hover,
.article-final-cta .cta-button:hover {
  transform: scale(1.02);
}

.article-page {
  padding-top: 128px;
  padding-bottom: 80px;
}

.article-topbar {
  display: flex;
  max-width: 950px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  color: var(--color-slate-400);
  font-size: 0.75rem;
}

.article-topbar a {
  color: var(--color-violet-300);
  font-weight: 600;
}

.article-topbar a:hover {
  color: var(--color-white);
}

.article-topbar .divider {
  color: var(--color-slate-500);
}

.article-topbar .meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgb(107 193 222 / 30%);
  border-radius: 9999px;
  background: rgb(59 166 208 / 15%);
  color: var(--color-violet-300);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-read-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-read-time::before {
  color: var(--color-violet-500);
  content: "•";
}

.article-hero {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.article-hero h1 {
  max-width: 100%;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
}

.article-image {
  max-width: 950px;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--color-slate-950);
}

.article-image img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
}

.article-body {
  max-width: 950px;
  margin: 48px auto 0;
}

.article-body p,
.article-body li {
  color: var(--color-slate-300);
  font-size: 0.875rem;
  line-height: 1.625;
}

.article-body p {
  margin: 16px 0;
}

.article-body strong {
  color: var(--color-white);
}

.article-body a {
  color: var(--color-violet-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-white);
}

.legal-page .article-body p,
.legal-page .article-body li {
  font-size: 0.9375rem;
}

.legal-page .article-body h2,
.legal-page .article-body h3 {
  scroll-margin-top: 120px;
}

.article-body h2 {
  margin: 48px 0 16px;
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.article-body h3 {
  margin: 24px 0 8px;
  color: var(--color-white);
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
}

.article-body ul {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
  padding-left: 4px;
  list-style: disc;
}

.article-body li::marker {
  color: var(--color-violet-500);
}

.article-body .lead {
  margin-top: 0;
  color: var(--color-slate-300);
  font-size: 1rem;
  line-height: 1.5;
}

.article-body .highlight-text {
  color: var(--color-violet-300);
  font-weight: 700;
}

.article-final-cta {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.article-final-cta h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.article-final-cta p {
  font-size: 0.875rem;
  line-height: 1.625;
}

.article-final-cta .cta-button {
  font-size: 1rem;
  text-decoration: none;
}

@media (min-width: 640px) {
  .blog-header,
  .article-page {
    padding-top: 160px;
  }

  .blog-hero h1 {
    font-size: 3rem;
  }

  .article-hero h1 {
    font-size: 2.25rem;
  }

  .cta-strip h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-hero h1 {
    font-size: 3.75rem;
  }
}

@media (max-width: 639px) {
  .blog-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .blog-header,
  .article-page {
    padding-top: 128px;
  }

  .article-image img {
    height: 300px;
  }
}