/* Article page styles — supplements theme.css */

.article-main {
  min-height: 100vh;
  padding: 8rem 2rem 6rem;
  display: flex;
  flex-direction: column;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* HEADER */
.article-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-back {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

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

.article-date {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.article-summary {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.article-source {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  word-break: break-all;
}

.article-source:hover { opacity: 1; }

/* BODY — Markdown content */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--fg);
  font-weight: 300;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }

/* ### heading style for article sections */
.article-body h3 {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.article-body strong {
  font-weight: 600;
  color: var(--fg);
}

.article-body em {
  font-style: italic;
  color: var(--fg-muted);
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 168, 56, 0.3);
  transition: border-color 0.2s ease;
}

.article-body a:hover { border-color: var(--accent); }

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

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

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--accent-dim);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--fg-muted);
}

.article-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: rgba(240, 237, 232, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.article-body pre {
  background: rgba(240, 237, 232, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* FOOTER */
.article-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.article-footer-note {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 300;
}

.footer-brand {
  color: var(--accent);
  text-decoration: none;
}

.footer-home-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-home-link:hover { color: var(--accent); }