/* ── Typography baseline — all headings use the site font ── */
h1, h2, h3, h4, h5, h6,
.article-title,
.prose h2,
.prose h3 {
  font-family: var(--font);
  font-weight: 600;
}

.article-page {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 24px 72px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 34px;
}
.article-back:hover { color: var(--fg); }
.article-header {
  max-width: 880px;
  margin-bottom: 34px;
}
.article-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--fg);
  margin: 0 0 18px;
}
.article-lead {
  max-width: 760px;
  color: var(--fg2);
  font-size: 19px;
  line-height: 1.65;
  margin: 0;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--fg3);
  font-size: 13px;
}
.article-meta-author {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1A1612;
  color: #F7F5F2;
  font-weight: 800;
}
.article-cover {
  min-height: 340px;
  border: 1px solid var(--surface-glass-border);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(193,122,58,.24), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(58,107,200,.16), transparent 34%),
    linear-gradient(135deg,#FEF0DC,#F7F5F2 52%,#E8EEFF);
  box-shadow: 0 24px 70px rgba(26,22,18,.08);
  margin-bottom: 46px;
}
.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,22,18,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,22,18,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .45;
}
.article-cover-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 132px;
  height: 132px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(193,122,58,.18);
  color: var(--accent);
  box-shadow: 0 18px 54px rgba(26,22,18,.12);
}
.article-cover-glyph svg { width: 58px; height: 58px; }
.article-cover-label,
.article-cover-coords {
  position: absolute;
  color: var(--fg3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.article-cover-label { left: 24px; top: 22px; }
.article-cover-coords { right: 24px; bottom: 22px; }
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--surface-glass-border);
  border-radius: 18px;
  background: var(--surface-glass);
}
.toc-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px;
}
.toc a {
  display: block;
  color: var(--fg2);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  padding: 7px 0;
}
.toc a:hover { color: var(--accent); }
.prose {
  color: var(--fg2);
  font-size: 17px;
  line-height: 1.78;
}
.prose h2 {
  margin: 52px 0 16px;
  color: var(--fg);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h2[id],
.prose h3[id] { scroll-margin-top: 132px; }
.h-num {
  display: inline-block;
  min-width: 44px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  vertical-align: .22em;
}
.prose p { margin: 0 0 20px; }
.prose .lede {
  font-size: 19px;
  line-height: 1.7;
  color: var(--fg);
}
.prose ul { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}
.article-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--surface-glass-border);
  background: var(--surface-glass-soft);
  color: var(--fg3);
  font-size: 12px;
  font-weight: 700;
}
.author-card {
  display: flex;
  gap: 18px;
  max-width: 760px;
  margin: 56px 0 0 284px;
  padding: 22px;
  border: 1px solid var(--surface-glass-border);
  border-radius: 20px;
  background: var(--surface-glass);
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A1612;
  color: #F7F5F2;
  font-weight: 900;
  flex-shrink: 0;
}
.author-title {
  color: var(--fg);
  font-weight: 800;
  margin-bottom: 6px;
}
.author-text {
  color: var(--fg2);
  line-height: 1.6;
  font-size: 14px;
}
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  color: var(--fg3);
  text-align: center;
  font-size: 13px;
}
body.fx .article-page { padding-top: 116px; }
.toc-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px;
  font-family: var(--mono);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.toc-list a {
  display: block;
  padding: 6px 12px;
  margin-left: -1px;
  color: var(--fg3);
  text-decoration: none;
  border-left: 1px solid transparent;
  font-size: 13px;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--fg2); }
.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}
.toc-list .sub a {
  padding-left: 24px;
  font-size: 12px;
}
.article-meta-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.article-meta-author {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.article-meta-role {
  color: var(--fg3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}
.article-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg4);
}
.article-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-cover-glyph {
  width: 220px;
  height: 220px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.article-cover-glyph svg {
  width: 100%;
  height: 100%;
}
.fx-cover-corner {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg3);
}
.fx-cover-corner.tr {
  top: 20px;
  right: 22px;
  text-align: right;
}
.fx-cover-corner.bl {
  left: 22px;
  bottom: 20px;
}
.fx-cover-corner b { color: var(--fg); }
.article-tag-chip {
  padding: 5px 11px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg2);
  text-decoration: none;
}
.article-tag-chip:hover {
  color: var(--fg);
  border-color: var(--fg3);
}
.author-card {
  margin: 56px auto 0;
  max-width: 660px;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
}
.author-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}
.author-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 3px;
}
.author-bio {
  margin: 0;
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.55;
}
.author-follow {
  padding: 8px 16px;
  border: 1px solid var(--border-md);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--mono);
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--fg2);
  text-decoration: none;
}
.site-footer a:hover { color: var(--fg); }
@media (max-width: 900px) {
  .article-page { padding: 92px 20px 52px; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: relative; top: auto; }
  .article-title { font-size: 40px; letter-spacing: -.02em; }
  .article-lead { font-size: 16px; }
  .article-cover { min-height: 260px; border-radius: 22px; }
  .author-card { margin-left: 0; grid-template-columns: 48px 1fr; }
  .author-follow { grid-column: 1 / -1; justify-self: start; }
}
