/* ============================================================
   Blog article pages — scoped under .art-page where needed
   to avoid collisions with Tailwind utility classes
   ============================================================ */

*:not(input):not(textarea) {
  caret-color: transparent !important;
}

:root {
  --art-accent: #7df9a8;
  --art-accent-ink: #0a1f14;
  --art-accent-06: rgba(125,249,168,.06);
  --art-accent-30: rgba(125,249,168,.30);
  --art-accent-60: rgba(125,249,168,.60);
  --art-text: #ffffff;
  --art-text-80: rgba(255,255,255,.80);
  --art-text-65: rgba(255,255,255,.65);
  --art-text-50: rgba(255,255,255,.50);
  --art-text-40: rgba(255,255,255,.40);
  --art-line: rgba(255,255,255,.10);
  --art-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

::selection { background: var(--art-accent); color: var(--art-accent-ink); }

/* Page wrapper — also sets base font for article content */
.art-page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 0;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Scope link color inside article area */
.art-page a { color: var(--art-accent); text-decoration: none; transition: color .2s ease; }
.art-page a:hover { color: #fff; }

/* Article title — scoped to avoid Tailwind preflight reset */
.art-page h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: #fff;
}

.art-page h1 .hl { display: block; color: var(--art-accent); }

/* Article container */
.article { max-width: 780px; margin: 0 auto; }

/* Breadcrumbs */
.crumbs {
  max-width: 780px;
  margin: 0 auto 40px;
  font-family: var(--art-mono);
  font-size: 13px;
  color: var(--art-text-40);
}
.crumbs a { color: var(--art-text-50); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 10px; opacity: .5; }
.crumbs em { font-style: normal; color: var(--art-text-65); }

/* Category eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--art-accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--art-accent);
  box-shadow: 0 0 12px var(--art-accent-60);
}

/* Meta line */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--art-text-50);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--art-line);
}
.meta strong { color: #fff; font-weight: 700; }
.meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--art-text-40); display: inline-block; }

/* Body typography */
.body p { margin: 0 0 24px; color: var(--art-text-65); }
.body > p:first-of-type { font-size: 21px; line-height: 1.6; color: var(--art-text-80); }
.body strong { color: #fff; font-weight: 700; }
.body h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 64px 0 20px;
  color: #fff;
}

/* Numbered circle in h2 */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--art-accent-30);
  color: var(--art-accent);
  font-family: var(--art-mono);
  font-size: 14px;
  font-weight: 500;
}

/* Callout block */
.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--art-accent-30);
  background: var(--art-accent-06);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--art-text-80);
}
.callout strong { color: var(--art-accent); }

/* CTA block (prefixed to avoid collision with any landing .cta) */
.art-cta {
  margin-top: 72px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--art-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -30px rgba(125,249,168,.3);
}
.art-cta p {
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: 19px;
  color: var(--art-text-80);
}

.art-page .art-btn,
.art-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--art-accent);
  color: var(--art-accent-ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 20px 50px -12px var(--art-accent-60);
  transition: transform .2s ease, background .2s ease;
}
.art-page .art-btn:hover,
.art-btn:hover { transform: scale(1.02); background: #a6fbc4; color: var(--art-accent-ink); }

/* Author block */
.author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--art-line);
}
.avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--art-line);
}
.avatar img { width: 26px; height: 26px; }
.author strong { display: block; font-size: 16px; color: #fff; }
.author span { font-size: 14px; color: var(--art-text-50); }

/* Article images */
.pic {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--art-line);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
}
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic--hero { aspect-ratio: 16 / 8; margin-bottom: 48px; box-shadow: 0 30px 80px -30px rgba(124,58,237,.5); }
.pic--inline { aspect-ratio: 16 / 7; margin: 40px 0; border-radius: 16px; }

/* Responsive */
@media (max-width: 720px) {
  .art-page { padding: 40px 16px 0; font-size: 17px; }
  .crumbs { margin-bottom: 28px; }
  .body > p:first-of-type { font-size: 19px; }
  .body h2 { margin-top: 48px; gap: 12px; }
  .num { width: 38px; height: 38px; font-size: 13px; }
  .art-cta { padding: 36px 20px; }
  .art-btn { font-size: 14px; padding: 13px 22px; line-height: 1.3; }
}

@media (max-width: 360px) {
  .art-page { padding: 32px 12px 0; font-size: 16px; }
  .art-page h1 { font-size: 1.55rem; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
  .body h2 { font-size: 18px; gap: 10px; margin-top: 40px; }
  .num { width: 32px; height: 32px; font-size: 12px; }
  .body > p:first-of-type { font-size: 16px; }
  .callout { font-size: 14px; padding: 16px 16px; }
  .art-cta { padding: 28px 14px; margin-top: 48px; }
  .art-cta p { font-size: 15px; }
  .art-btn { font-size: 13px; padding: 12px 18px; line-height: 1.35; white-space: normal; text-align: center; justify-content: center; }
  .crumbs { font-size: 11px; }
  .meta { font-size: 13px; gap: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
