/* ============================================================
   KEEPSAKE JOURNAL ARTICLE STYLES
   Individual article pages
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   ARTICLE HERO
   ───────────────────────────────────────────────────────────── */

.article-hero {
  padding: 52px 0 48px;
  text-align: center;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--evergreen);
  background: var(--evergreen-light);
  border: 1px solid var(--evergreen-mid);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 850px;
  margin: 0 auto 24px;
  color: var(--text);
}

.article-subtitle {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
}


/* ─────────────────────────────────────────────────────────────
   BREADCRUMBS
   ───────────────────────────────────────────────────────────── */

.article-breadcrumbs {
  padding: 28px 0 0;
}

.article-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  list-style: none;

  font-size: 12px;
  line-height: 1.5;

  color: var(--text-faint);
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--evergreen);
}

.article-breadcrumbs li[aria-current="page"] {
  color: var(--text-faint);

  max-width: 420px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────
   HERO IMAGE
   ───────────────────────────────────────────────────────────── */

.article-image {
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 28px;
}

.article-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
}

/* ─────────────────────────────────────────────────────────────
   ARTICLE CONTENT WRAPPER
   Keeps hero image and article flow separated
   ───────────────────────────────────────────────────────────── */

.article-content-wrapper {
  position: relative;
  z-index: 1;
}

.article-wrapper {
  position: relative;
}

.article-body {
  background: var(--bg);
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE BODY
   ───────────────────────────────────────────────────────────── */

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

.article-body p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 64px 0 24px;
}

.article-body strong {
  color: var(--text);
}

.article-body ul {
  margin: 0 0 32px 24px;
  color: var(--text-mid);
}

.article-body li {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 8px;
}


/* ─────────────────────────────────────────────────────────────
   PULL QUOTES
   ───────────────────────────────────────────────────────────── */

.article-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--warm-fawn);
  padding: 12px 0 12px 32px;
  margin: 48px 0;
}


/* ─────────────────────────────────────────────────────────────
   INLINE CTA
   ───────────────────────────────────────────────────────────── */

.article-cta {
  margin: 72px auto;
  max-width: 720px;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 16px;
}

.article-cta p {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.article-app-button {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  justify-content: center;
}

.article-app-button img {
  display: block;
  height: 90px;
}


/* ─────────────────────────────────────────────────────────────
   RELATED ARTICLES
   ───────────────────────────────────────────────────────────── */

.related {
  border-top: 1px solid var(--border);
  padding: 72px 0;
}

.related h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
}

.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  text-decoration: none;
}

.related-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
}

.related-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────────────────────
   MOBILE
   ───────────────────────────────────────────────────────────── */

@media(max-width:720px){

  .article-hero {
  padding: 40px 0 32px;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .article-cta {
    margin-left: 20px;
    margin-right: 20px;
    padding: 36px 24px;
  }

  .article-breadcrumbs {
  padding-top: 20px;
}

.article-breadcrumbs li[aria-current="page"] {
  max-width: 220px;
}

}