/* =========================================
   Article Layout & Components
========================================= */

.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.article-shell {
  width: 100%;
}

/* =========================================
   Article Hero
========================================= */

.article-hero {
  margin-bottom: 2rem;
}

.article-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.8rem;
}

.article-title {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.2px currentColor;
}

.article-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 38rem;
}

/* =========================================
   Article Body
========================================= */

.article-body {
  font-size: 0.85rem;
  line-height: 1.65;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
}

.article-body p {
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.article-body .lede {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Code blocks */
.article-body pre {
  background: color-mix(in srgb, var(--clr-text) 5%, transparent);
  border: 0.8px solid color-mix(in srgb, var(--clr-text) 20%, transparent);
  border-radius: 6px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* Figures */
.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--clr-text) 15%, transparent);
}

.article-body figcaption {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}

/* Quote callout */
.article-body .quote {
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: italic;
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--clr-text);
  background: color-mix(in srgb, var(--clr-text) 3%, transparent);
  opacity: 0.9;
}

/* Lists */
.article-body ul {
  margin: 1.2rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* =========================================
   Rule Divider
========================================= */

.rule {
 font-size: 2rem;
 text-align: center;
 color: var(--clr-text);
 opacity: 0.4;
 margin: 0rem;
}

/* =========================================
   Article Meta / Footer
========================================= */

.article-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--clr-text) 25%, transparent);
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.tag:hover {
  opacity: 1;
}

/* =========================================
   Mobile Adjustments
========================================= */

@media (max-width: 830px) {
  .article {
    padding: 1.5rem 1rem 3rem;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .article-body h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.8rem;
  }

  .article-body pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
}