
/* ---------- Hero ---------- */
.tp-hero {
  position: relative;
  padding: 120px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tp-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.tp-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}
.tp-hero .hero-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35;
}
.tp-hero .hero-glow--a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  top: -250px; right: -50px;
}
.tp-hero .hero-glow--b {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(154,108,255,0.15) 0%, transparent 70%);
  bottom: -150px; left: -100px;
}
.tp-hero-inner {
  position: relative;
  max-width: 720px;
}
.tp-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.tp-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
  text-decoration: none;
}
.tp-hero-back:hover { color: var(--fg); gap: 8px; }
.tp-hero-back svg { width: 14px; height: 14px; transform: rotate(180deg); }
.tp-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* ---------- Article meta ---------- */
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* Tag pill */
.art-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow-soft);
  border: 1px solid rgba(255,43,43,0.18);
  border-radius: 100px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.art-tag:hover {
  background: rgba(255,43,43,0.18);
  border-color: rgba(255,43,43,0.35);
}
.art-tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Divider dot between meta items */
.art-meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--fg-4);
  flex-shrink: 0;
}

/* Author chip */
.art-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.art-author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.art-author-avatar svg {
  width: 16px; height: 16px;
  color: var(--fg-4);
}
.art-author-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.2s var(--ease);
}
.art-author:hover .art-author-name { color: var(--fg); }

/* Date & read time */
.art-meta-info {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

/* ---------- Prose body ---------- */
.tp-body {
  padding: 80px 0 100px;
}
.tp-prose {
  max-width: 720px;
}

/* Headings inside prose */
.tp-prose h2 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 52px;
  margin-bottom: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--fg);
}
.tp-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.tp-prose h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--fg);
}

/* Paragraphs */
.tp-prose p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--fg-2);
  margin-bottom: 20px;
}

/* Links */
.tp-prose a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 43, 43, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.tp-prose a:hover {
  text-decoration-color: var(--red);
}

/* Blockquote */
.tp-prose blockquote {
  position: relative;
  margin: 36px 0;
  padding: 22px 28px 22px 28px;
  background: var(--bg-2);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.tp-prose blockquote::before {
  content: '\201C';
  position: absolute;
  top: -4px;
  left: 20px;
  font-size: 64px;
  line-height: 1;
  color: var(--red);
  opacity: 0.2;
  font-family: Georgia, serif;
  pointer-events: none;
}
.tp-prose blockquote p {
  margin-bottom: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  color: var(--fg-2);
}
.tp-prose blockquote p + p {
  margin-top: 12px;
}

/* Strong */
.tp-prose strong {
  font-weight: 600;
  color: var(--fg);
}

/* Divider */
.tp-prose hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 56px 0;
}

/* ---------- Article figure (photo + caption) ---------- */
.art-figure {
  margin: 40px 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}
.art-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-3);
}
/* Placeholder when no real image is provided */
.art-figure-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-4);
}
.art-figure-placeholder svg {
  width: 36px; height: 36px;
  opacity: 0.4;
}
.art-figure-placeholder span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.art-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-4);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-style: italic;
}

/* ---------- Author card (end of article) ---------- */
.art-author-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-top: 56px;
}
.art-author-card-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.art-author-card-avatar svg {
  width: 24px; height: 24px;
  color: var(--fg-4);
}
.art-author-card-body {
  flex: 1;
  min-width: 0;
}
.art-author-card-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 4px;
}
.art-author-card-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 8px;
}
.art-author-card-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0;
}

/* ---------- Related / CTA strip ---------- */
.art-cta {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.art-cta-text {
  flex: 1;
}
.art-cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.art-cta-heading {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 6px;
}
.art-cta-sub {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 600px) {
  .art-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .tp-hero { padding: 100px 0 48px; }
  .tp-body { padding: 48px 0 64px; }
  .art-meta { gap: 12px; }
  .art-author-card { flex-direction: column; gap: 14px; }
