:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-light: #FAFAF8;
  --bg-white: #FFFFFF;
  --accent-neon: #A855F7;
  --accent-magenta: #DD2872;
  --accent-cyan: #0BC5FE;
  --accent-blue: #0B66FF;
  --text-white: #FFFFFF;
  --text-dark: #0F1926;
  --text-muted: #6B7280;
  --text-muted-light: #9CA3AF;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
  --line: rgba(15, 25, 38, 0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.skip {
  position: absolute; left: 12px; top: 12px; z-index: 200;
  transform: translateY(-150%);
  background: #fff; color: #000; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { transform: translateY(0); }

.nav-toggle {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  width: 100%; max-width: var(--max-width); margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo img { height: 32px; width: auto; }
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px; font-weight: 500; letter-spacing: 0.4px;
  font-family: var(--font-heading);
  transition: color 0.2s;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] { color: #fff; }
.header-tools { display: flex; align-items: center; gap: 16px; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-neon); color: #fff;
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 8px; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
}
.header-cta:hover { background: #7c3aed; transform: translateY(-1px); }
.menu-toggle {
  display: none; width: 28px; height: 20px;
  flex-direction: column; justify-content: space-between; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px;
}

.mobile-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 10, 10, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-overlay a {
  position: relative; z-index: 1;
  color: #fff; font-family: var(--font-heading);
  font-size: 28px; font-weight: 700; letter-spacing: 0.3px;
}
.mobile-overlay a:hover,
.mobile-overlay a[aria-current="page"] { color: var(--accent-neon); }
.mobile-backdrop { position: absolute; inset: 0; cursor: pointer; }
body:has(#nav-toggle:checked) { overflow: hidden; }
body:has(#nav-toggle:checked) .mobile-overlay { opacity: 1; pointer-events: auto; }

main { padding: calc(var(--header-h) + 48px) 0 72px; }
.wrap { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(720px, 100%); margin-left: auto; margin-right: auto; }

.kicker {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-neon);
  margin-bottom: 12px;
}
h1 {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; color: var(--text-dark);
}
.lede {
  margin-top: 18px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6;
  color: #374151; max-width: 680px;
}
.page-intro { margin-bottom: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.chip {
  display: inline-flex; align-items: center;
  border: 1px solid #E5E7EB; background: #fff; color: var(--text-dark);
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
}
.chip:hover { border-color: var(--accent-neon); color: #6d28d9; }
.chip.is-active { background: var(--bg-primary); color: #fff; border-color: var(--bg-primary); }
.rss-link {
  margin-left: auto; align-self: center;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.rss-link:hover { color: var(--accent-neon); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px; margin-top: 28px;
}
.card {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: #d8b4fe; box-shadow: 0 18px 40px rgba(15, 25, 38, 0.06); }
.card-media { aspect-ratio: 16 / 9; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 { font-family: var(--font-heading); font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.card h2 a:hover { color: #6d28d9; }
.card p {
  color: var(--text-muted); font-size: 14.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; color: var(--text-muted-light); font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-magenta));
  color: #fff; font-family: var(--font-heading);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: 999px;
}
.pill.small { font-size: 11px; padding: 4px 9px; }

.pager {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-top: 36px; font-family: var(--font-heading); font-size: 14px; font-weight: 600;
}
.pager a { color: #6d28d9; }
.pager a:hover { text-decoration: underline; }
.pager span { color: var(--text-muted); font-weight: 500; }

.crumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent-neon); }
.article-head { width: min(760px, 100%); }
.byline { margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.byline strong { color: var(--text-dark); font-weight: 600; }
.cover-frame { width: min(960px, 100%); margin: 32px auto 8px; }
.cover-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: #111;
}
.credit { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

.prose { width: min(720px, 100%); margin: 36px auto 0; font-size: 18px; line-height: 1.75; color: #1f2937; }
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--text-dark); margin-top: 2.2rem;
}
.prose h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-top: 1.6rem; color: var(--text-dark); }
.prose a { color: #6d28d9; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose blockquote {
  border-left: 3px solid var(--accent-neon); padding-left: 16px; color: #374151;
}
.prose code { font-size: 0.9em; background: #f3f4f6; padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--bg-primary); color: #f9fafb; padding: 16px; border-radius: 12px; overflow: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }

.callout {
  width: min(720px, 100%); margin: 36px auto 0; padding: 22px 22px 8px;
  border-radius: 16px; background: #fff;
  border: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--accent-neon), var(--accent-magenta));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.08);
}
.callout h2 {
  font-family: var(--font-heading); font-size: 1.35rem; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.callout .prose { width: auto; margin: 0; font-size: 17px; }

.sources, .share, .also, .follow, .cta, .related {
  width: min(720px, 100%); margin: 28px auto 0;
}
.sources, .also {
  background: #fff; border: 1px solid #E8E8E8; border-radius: 14px; padding: 18px 20px;
}
.sources h2, .related h2, .share h2, .cta h2 {
  font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 10px;
}
.sources li { margin: 6px 0 6px 1.1rem; }
.sources a { color: #6d28d9; text-decoration: underline; text-underline-offset: 2px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; border: 1px solid #E5E7EB; background: #fff;
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
}
.share-btn:hover { border-color: var(--accent-neon); color: #6d28d9; }
.follow { color: #374151; font-size: 15px; }
.follow a, .also a { color: #6d28d9; font-weight: 600; }
.cta {
  background: var(--bg-primary); color: #fff; border-radius: 18px; padding: 28px 24px;
}
.cta p { color: rgba(255, 255, 255, 0.72); margin: 8px 0 18px; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta .ghost { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.related { width: min(var(--max-width), 100%); }
.related .cards { margin-top: 14px; }

.empty {
  margin-top: 28px; padding: 28px; background: #fff; border-radius: 14px; border: 1px solid #E8E8E8;
}

.legal-note { margin-top: 28px; font-size: 13px; color: var(--text-muted); }

.site-footer {
  background: var(--bg-primary); color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 32px 28px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ft-title {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-neon); margin-bottom: 16px;
}
.site-footer .logo { margin-bottom: 16px; }
.site-footer .logo img { height: 34px; }
.blurb { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.4); max-width: 280px; }
.footer-blog {
  display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: #d1d5db;
}
.footer-blog:hover, .ft-link:hover { color: var(--accent-neon); }
.ft-list { display: flex; flex-direction: column; gap: 10px; }
.ft-link { color: var(--text-muted-light); font-size: 14px; }
.ft-social { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 14px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, 0.25);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { font-size: 13px; }

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 20px; }
  .header-cta { font-size: 11px; padding: 8px 14px; }
  .wrap { width: min(var(--max-width), calc(100% - 32px)); }
  main { padding-top: calc(var(--header-h) + 32px); }
  .prose { font-size: 16.5px; }
  .site-footer { padding: 48px 20px 24px; }
  .mobile-overlay a { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
