/* ═══ Article Page ═══ */
.article {
  background: var(--cream);
  padding: 120px var(--space-lg) var(--space-3xl);
}
.article__header {
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}
.article__byline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.article__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.article__author-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--coffee);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: var(--space-md);
}
.article__meta {
  color: var(--text-secondary);
}
.article__meta a {
  color: var(--coffee);
}

/* Feature image */
.article__feature-image {
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}
.article__feature-image img {
  border-radius: var(--radius-lg);
  width: 100%;
}
.article__feature-image figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Body */
.article__body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--espresso);
}
.article__body > * + * {
  margin-top: 1.5em;
}
.article__body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-top: 2.5em;
}
.article__body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-top: 2em;
}
.article__body a {
  color: var(--espresso);
  text-decoration: underline;
  text-decoration-color: var(--coffee);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness var(--duration-fast) ease;
}
.article__body a:hover {
  text-decoration-thickness: 2px;
}
.article__body blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--espresso);
  border-left: 3px solid var(--coffee);
  padding-left: var(--space-lg);
  margin: 2em 0;
}
.article__body pre {
  background: rgba(42, 31, 20, 0.04);
  border: 1px solid rgba(42, 31, 20, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}
.article__body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(42, 31, 20, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.article__body pre code {
  background: none;
  padding: 0;
}
.article__body img {
  border-radius: var(--radius-lg);
  margin: 2em 0;
}
.article__body ul,
.article__body ol {
  padding-left: 1.5em;
}
.article__body li + li {
  margin-top: 0.5em;
}

/* Ghost editor cards */
.article__body .kg-width-wide {
  max-width: 1040px;
  margin-left: calc(50% - 520px);
  margin-right: calc(50% - 520px);
}
.article__body .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Footer */
.article__footer {
  max-width: 680px;
  margin: var(--space-3xl) auto 0;
}
.article__divider {
  border: none;
  width: 40px;
  height: 1px;
  background: var(--sand);
  margin: 0 auto var(--space-xl);
}

/* Share */
.share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.share__label {
  color: var(--text-secondary);
}
.share__links {
  display: flex;
  gap: var(--space-xs);
}
.share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--walnut);
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.share__link:hover {
  color: var(--espresso);
  background: rgba(42, 31, 20, 0.05);
}
.share__copy.is-copied {
  color: var(--warm-gold);
}

/* Recommendations */
.article-recommendations {
  background: var(--cream);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  border-top: 1px solid rgba(42, 31, 20, 0.06);
}

/* Comments */
.article__comments {
  background: var(--cream);
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
  border-top: 1px solid rgba(42, 31, 20, 0.06);
}
.article__comments > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.recommendations-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--coffee);
  max-width: 680px;
  margin: 0 auto var(--space-lg);
}
.recommendations-cards {
  max-width: 680px;
  margin: 0 auto;
}
.rec-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(42, 31, 20, 0.08);
}
.rec-card:first-child {
  border-top: 1px solid rgba(42, 31, 20, 0.08);
}
.rec-card:hover .rec-card__title {
  color: var(--coffee);
}
.rec-card__content {
  flex: 1;
  min-width: 0;
}
.rec-card__meta {
  margin-bottom: var(--space-sm);
}
.rec-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--espresso);
  transition: color var(--duration-fast) ease;
}
.rec-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card__image {
  flex-shrink: 0;
  width: 160px;
  align-self: center;
}
.rec-card__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
