/* Article page styles — pairs with the main style.css */

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

/* ─────────── article hero ─────────── */
.art-hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(40px, 6vw, 64px);
  max-width: 980px;
  margin: 0 auto;
}
.art-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.art-kicker .dot { color: var(--rule); }
.art-kicker .cat { color: var(--accent); }

.art-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 22px;
}

.art-deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
}

.art-byline {
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.art-byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--bg-band);
}
.art-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.art-byline strong { color: var(--ink); font-weight: 600; }

/* ─────────── article cover image ─────────── */
.art-cover {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.art-cover-frame {
  aspect-ratio: 21 / 9;
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.art-cover-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ─────────── article body ─────────── */
.art-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--pad-x) clamp(40px, 5vw, 64px);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.art-body > * + * { margin-top: 1.1em; }
.art-body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2.4em;
  margin-bottom: 0.4em;
  line-height: 1.2;
}
.art-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.art-body p strong { color: var(--ink); font-weight: 600; }
.art-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.art-body a:hover { border-bottom-color: var(--accent); }

.art-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}

.art-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--bg-band);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.art-body pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  background: #14141C;
  color: #E6E6F0;
  padding: 18px 22px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.4em 0;
}
.art-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.art-body ul, .art-body ol {
  padding-left: 1.4em;
}
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { margin-bottom: 6px; }
.art-body li::marker { color: var(--accent); }

.art-callout {
  margin: 1.8em 0;
  padding: 22px 26px;
  background: var(--bg-band);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.98rem;
}
.art-callout strong { color: var(--ink); }

.art-figure {
  margin: 2em 0;
}
.art-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.art-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ─────────── article footer ─────────── */
.art-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--pad-x) clamp(60px, 7vw, 100px);
  border-top: 1px solid var(--rule);
}
.art-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
}
.art-tags li {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
}
.art-share {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 26px;
  background: var(--bg-band);
  border-radius: 10px;
}
.art-share-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-share strong { color: var(--ink); }

.art-prev {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.art-prev:hover { gap: 14px; }

/* ─────────── article cards strip at bottom ─────────── */
.art-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--pad-x);
  border-top: 1px solid var(--rule);
}
.art-related-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .art-related-grid { grid-template-columns: 1fr; } }
.art-related-card {
  display: flex; flex-direction: column;
  gap: 10px;
}
.art-related-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-band);
  border-radius: 8px;
  overflow: hidden;
}
.art-related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-related-card h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.art-related-card .meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
