/* ============================
   ARTICLE PAGE — article.css
   ============================ */

.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: 'Lora', Georgia, serif;
}

/* BACK LINK */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #648381;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.article-back:hover {
  color: #4e6967;
}

/* HEADER */
.article-header {
  margin-bottom: 40px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.article-tag-inline {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  background: #648381;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-date-inline {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #999;
}

.article-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: #1a2a28;
  margin-bottom: 16px;
}

.article-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #888;
}

.article-byline strong {
  color: #444;
}

/* HERO IMAGE */
.article-hero-image {
  width: 100%;
  margin-bottom: 48px;
  border-radius: 8px;
  overflow: hidden;
}

.article-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* BODY */
.article-body {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a2a28;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-body em {
  font-style: italic;
}

/* INLINE FIGURES */
.article-figure {
  margin: 2rem -24px;
  border-radius: 0;
}

.article-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* STRAVA TABLE */
.article-stats-table {
  margin: 2.5rem 0;
  overflow-x: auto;
}

.article-stats-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.article-stats-table th {
  text-align: left;
  padding: 10px 16px;
  background: #2a3a38;
  color: #fff;
  font-weight: 600;
}

.article-stats-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.article-stats-table .stats-total td {
  font-weight: 700;
  color: #1a2a28;
  border-bottom: none;
  border-top: 2px solid #648381;
}

/* FOOTER NAV */
.article-footer-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.article-back-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #648381;
  text-decoration: none;
}

.article-back-footer:hover {
  color: #4e6967;
}

/* NIGHT MODE */
body.night-mode .article-main {
  background: #0d0d0d;
}

body.night-mode .article-header h1 {
  color: #f0f0f0;
}

body.night-mode .article-body {
  color: #ccc;
}

body.night-mode .article-body h2 {
  color: #e8e8e8;
}

body.night-mode .article-subtitle {
  color: #aaa;
}

body.night-mode .article-stats-table td {
  border-bottom-color: #2a2a2a;
  color: #ccc;
}

body.night-mode .article-stats-table .stats-total td {
  color: #f0f0f0;
  border-top-color: #648381;
}

body.night-mode .article-footer-nav {
  border-top-color: #2a2a2a;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .article-main {
    padding: 32px 20px 60px;
  }

  .article-hero-image img {
    height: 260px;
  }

  .article-figure img {
    height: 240px;
  }

  .article-figure {
    margin: 1.5rem -20px;
  }
}

.article-byline-role {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  font-weight: 400;
}
