/* =============================================
   Dev Journal — Full Article Page
   ============================================= */

/* Article container */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

/* Back link */
.article-back {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--gold);
}

/* Header */
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.25rem;
}

.article-date {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.article-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(160, 152, 144, 0.3);
  color: var(--text-muted);
  background: rgba(160, 152, 144, 0.06);
}

.article-tag--project {
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.08);
}

.article-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.25;
}

/* Body */
.article-body {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.85;
}

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

.article-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 3rem 0 1.25rem;
  padding-top: 1rem;
}

.article-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 2.5rem 0 1rem;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

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

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--gold-light);
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

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

.article-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  font-style: italic;
}

.article-figure--small {
  max-width: 400px;
}

/* Side-by-side figure pair */
.article-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Tables */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.article-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
}

.article-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(160, 152, 144, 0.1);
  color: var(--text-primary);
}

.article-table tr:hover td {
  background: rgba(201, 168, 76, 0.03);
}

/* Code blocks (for future articles) */
.article-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: rgba(201, 168, 76, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.article-body pre code {
  background: none;
  padding: 0;
}

/* Footer */
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.article-author-bio {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-author-bio a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-author-bio a:hover {
  color: var(--gold-light);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 600px) {
  .article {
    padding: 5rem 1.25rem 3rem;
  }

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

  .article-body {
    font-size: 0.95rem;
  }

  .article-figure-pair {
    grid-template-columns: 1fr;
  }

  .article-figure--small {
    max-width: 100%;
  }
}
