
:root {
  --ink: #050505;
  --paper: #fffdf4;
  --yellow: #fff200;
  --orange: #ff5a00;
  --green: #39ff14;
  --cyan: #00e5ff;
  --pink: #ff2bd6;
  --gold: #ffd700;
  --violet: #8b5cf6;
  --muted: #c9c5d4;
  --panel: #0d0d14;
  --max: 78rem;
  --shadow: 8px 8px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::selection { background: var(--pink); color: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }
.skip-link {
  position: fixed; left: 1rem; top: -8rem; z-index: 9999;
  background: #fff; color: var(--ink); border: 3px solid var(--ink);
  padding: .75rem 1rem; font-weight: 900; box-shadow: 5px 5px 0 var(--pink);
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--yellow); color: var(--ink);
  border-bottom: 4px solid var(--ink); box-shadow: 0 8px 0 var(--orange);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
  border: 3px solid var(--ink); background: #fff; border-radius: 1rem;
  padding: .42rem .7rem; box-shadow: 5px 5px 0 var(--ink); font-weight: 950;
  letter-spacing: -.04em; line-height: 1;
}
.brand-mark {
  width: 2.35rem; height: 2.35rem; border-radius: .72rem; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font-weight: 950; box-shadow: 0 0 18px var(--pink);
}
.brand-name { font-size: clamp(1.1rem, 2vw, 1.55rem); }
.desktop-nav { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.nav-link {
  text-decoration: none; font-size: .75rem; font-weight: 950; text-transform: uppercase;
  letter-spacing: .06em; border: 2px solid var(--ink); border-radius: 999px;
  padding: .62rem .78rem; background: #fff; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.nav-link:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--pink); }
.nav-link[aria-current="page"] { background: var(--pink); color: #fff; }
.nav-link.nav-cta { background: var(--green); }
.menu-button {
  display: none; border: 3px solid var(--ink); border-radius: .8rem; background: #fff;
  padding: .58rem .7rem; box-shadow: 4px 4px 0 var(--ink); font-weight: 950;
}
.mobile-nav { display: none; padding: 0 1rem 1rem; max-width: var(--max); margin: 0 auto; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.mobile-nav .nav-link { text-align: center; }
.main-shell { min-height: 60vh; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 4rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,43,214,.95), transparent 28%),
    radial-gradient(circle at 90% 25%, rgba(0,229,255,.9), transparent 25%),
    linear-gradient(135deg, var(--yellow), var(--orange) 38%, var(--green) 72%, var(--ink));
  border-bottom: 4px solid var(--ink);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image: linear-gradient(var(--ink) 2px, transparent 2px), linear-gradient(90deg, var(--ink) 2px, transparent 2px);
  background-size: 42px 42px;
}
.books-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .72; pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(21rem, .65fr); gap: 2rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; max-width: 100%; align-items: center; gap: .45rem; flex-wrap: wrap;
  background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 999px;
  padding: .55rem .9rem; box-shadow: 6px 6px 0 var(--pink); font-size: .78rem; font-weight: 950;
  letter-spacing: .12em; text-transform: uppercase;
}
.display-brand {
  margin: 1.25rem 0 .35rem; font-size: clamp(3rem, 7.1vw, 6.4rem); line-height: .78;
  letter-spacing: -.055em; font-weight: 1000; text-transform: uppercase; white-space: nowrap;
  -webkit-text-stroke: 2px var(--ink); text-shadow: 8px 8px 0 var(--pink), 0 0 22px rgba(255,255,255,.45);
}
.hero h1 {
  margin: .5rem 0 1.4rem; max-width: 14ch; font-size: clamp(2.45rem, 6.4vw, 5.8rem);
  line-height: .9; letter-spacing: -.055em; font-weight: 1000; text-transform: uppercase; overflow-wrap: anywhere; max-width: 100%;
  -webkit-text-stroke: 1.5px var(--ink); text-shadow: 6px 6px 0 var(--cyan);
}
.hero-lede {
  max-width: 48rem; border: 4px solid var(--ink); background: rgba(5,5,5,.82); border-radius: 1.35rem;
  padding: 1.2rem; box-shadow: 9px 9px 0 var(--cyan); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 750;
}
.button-row { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none;
  border: 4px solid var(--ink); border-radius: 1rem; padding: .9rem 1.1rem; min-height: 3.2rem;
  font-weight: 950; text-transform: uppercase; letter-spacing: .045em; font-size: .82rem;
  color: var(--ink); background: var(--yellow); box-shadow: 6px 6px 0 var(--pink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 9px 9px 0 var(--cyan); }
.btn.alt { background: var(--green); box-shadow: 6px 6px 0 var(--cyan); }
.btn.pink { background: var(--pink); color: #fff; box-shadow: 6px 6px 0 var(--gold); }
.hero-art {
  align-self: center;
  border: 4px solid #fff; border-radius: 1.6rem; background: rgba(5,5,5,.82); padding: .65rem;
  box-shadow: 0 0 0 6px var(--ink), 0 0 45px var(--cyan); transform: rotate(1.2deg);
}
.hero-art img { display: block; border-radius: 1rem; width: 100%; }
.hero-note { margin-top: .8rem; color: #fff; font-size: .9rem; font-weight: 800; }
.ticker-stack { background: var(--ink); border-block: 4px solid var(--ink); padding: .45rem 0; }
.ticker { overflow: hidden; white-space: nowrap; border-block: 2px solid var(--ink); color: var(--ink); }
.ticker-track { display: inline-block; padding: .45rem 0; font-weight: 1000; text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: .03em; will-change: transform; }
.ticker.pink { background: var(--pink); }
.ticker.cyan { background: var(--cyan); }
.ticker.green { background: var(--green); }
.section { position: relative; padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.light { background: var(--paper); color: var(--ink); }
.section.yellow { background: linear-gradient(180deg, var(--yellow), var(--orange) 55%, var(--green)); color: var(--ink); }
.section.dark { background: var(--ink); color: #fff; }
.section.violet { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; }
.section-heading { max-width: 58rem; margin-bottom: 2rem; }
.kicker { margin: 0 0 .45rem; font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .18em; }
.section h2, .page-hero h1, .article-header h1 {
  margin: 0; font-size: clamp(2.3rem, 6vw, 5.2rem); line-height: .92; letter-spacing: -.05em;
  font-weight: 1000; text-transform: uppercase;
}
.section-intro { margin: 1rem 0 0; max-width: 50rem; font-size: 1.13rem; font-weight: 650; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 4px solid var(--ink); border-radius: 1.35rem; background: #fff; color: var(--ink);
  padding: 1.25rem; box-shadow: var(--shadow); overflow: hidden;
}
.card.dark-card { background: #0b0b12; color: #fff; border-color: #fff; box-shadow: 8px 8px 0 var(--cyan); }
.card h3 { margin: .2rem 0 .65rem; font-size: 1.45rem; line-height: 1.05; letter-spacing: -.025em; }
.card p { margin: .65rem 0; }
.card-link { display: inline-flex; margin-top: .55rem; font-weight: 950; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.icon-tile {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 3px solid var(--ink);
  border-radius: .8rem; background: var(--yellow); box-shadow: 4px 4px 0 var(--pink); font-size: 1.4rem;
}
.code-window { border: 4px solid #fff; border-radius: 1.35rem; overflow: hidden; background: #08080e; box-shadow: 9px 9px 0 var(--pink); }
.code-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 2px solid var(--cyan); background: #10101a; color: var(--green); font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { margin: 0; overflow-x: auto; }
.code-window pre, .prose pre { padding: 1.1rem; color: #d9ffe0; font: 500 .88rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; align-items: stretch; }
.pipeline-step { position: relative; border: 4px solid var(--ink); border-radius: 1rem; padding: 1rem; background: #fff; box-shadow: 5px 5px 0 var(--ink); font-weight: 900; }
.pipeline-step:not(:last-child)::after { content: "→"; position: absolute; right: -.78rem; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 1.55rem; }
.stat-chip { border: 3px solid var(--ink); border-radius: 999px; padding: .55rem .8rem; background: #fff; color: var(--ink); font-weight: 900; display: inline-flex; gap: .45rem; align-items: center; }
.faq-list { display: grid; gap: .9rem; }
details {
  border: 4px solid var(--ink); border-radius: 1rem; background: #fff; color: var(--ink);
  box-shadow: 5px 5px 0 var(--pink); overflow: hidden;
}
summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 950; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin: 0; padding: 0 1.1rem 1.1rem; }
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 9vw, 7rem) 0 3.5rem;
  background: linear-gradient(135deg, var(--yellow), var(--orange) 48%, var(--pink)); color: var(--ink); border-bottom: 4px solid var(--ink);
}
.page-hero.alt { background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--pink)); color: #fff; }
.page-hero.green { background: linear-gradient(135deg, var(--green), var(--yellow) 48%, var(--orange)); color: var(--ink); }
.page-hero p { max-width: 53rem; font-size: 1.16rem; font-weight: 750; }
.breadcrumbs { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; align-items: start; }
.sidebar { position: sticky; top: 8.25rem; display: grid; gap: 1rem; }
.sidebar-box { border: 4px solid var(--ink); border-radius: 1rem; padding: 1rem; background: var(--yellow); color: var(--ink); box-shadow: 6px 6px 0 var(--pink); }
.sidebar-box h2, .sidebar-box h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.sidebar-box ul { margin: 0; padding-left: 1.1rem; }
.sidebar-box a { font-weight: 800; }
.prose { font-size: 1.06rem; line-height: 1.78; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.3rem 0 .75rem; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.035em; text-transform: none; }
.prose h3 { margin: 1.7rem 0 .5rem; font-size: 1.35rem; line-height: 1.15; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .38rem 0; }
.prose a { color: #7a1ad4; font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5rem 0; border-left: .55rem solid var(--pink); padding: .9rem 1.1rem; background: #fff7d1; font-weight: 750; }
.callout { border: 4px solid var(--ink); border-radius: 1rem; padding: 1rem; background: var(--cyan); color: var(--ink); box-shadow: 5px 5px 0 var(--pink); margin: 1.4rem 0; }
.callout strong:first-child { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.article-header { padding: clamp(3.5rem, 8vw, 6.5rem) 0 2.5rem; background: linear-gradient(135deg, var(--yellow), var(--orange) 50%, var(--pink)); color: var(--ink); border-bottom: 4px solid var(--ink); }
.article-header .meta { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: 1rem 0; font-weight: 850; }
.meta-pill { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: .35rem .65rem; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.article-deck { max-width: 53rem; font-size: 1.18rem; font-weight: 750; }
.featured-image { width: 100%; border: 4px solid var(--ink); border-radius: 1.3rem; box-shadow: 9px 9px 0 var(--pink); display: block; }
.article-main { background: var(--paper); color: var(--ink); padding: 3rem 0 5rem; }
.article-body { max-width: 49rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.tag { display: inline-flex; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: .38rem .7rem; background: #fff; color: var(--ink); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; box-shadow: 2px 2px 0 var(--cyan); }
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-card img { display: block; aspect-ratio: 1/1; object-fit: cover; border-bottom: 4px solid var(--ink); }
.post-card .post-content { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.35rem; margin: .3rem 0 .6rem; }
.post-card .post-meta { font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card { border: 3px solid var(--ink); border-radius: 1rem; padding: 1rem; background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--cyan); }
.related-card a { font-weight: 950; }
.archive-intro { max-width: 56rem; }
.notice { border: 4px solid var(--ink); border-radius: 1rem; padding: 1rem; background: var(--yellow); color: var(--ink); box-shadow: 6px 6px 0 var(--pink); }
.site-footer { border-top: 4px solid var(--ink); background: var(--yellow); color: var(--ink); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
.site-footer h2 { margin: 0 0 .65rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .92; letter-spacing: -.04em; text-transform: uppercase; }
.site-footer h3 { margin: 0 0 .55rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .35rem 0; }
.footer-links a { font-weight: 800; text-underline-offset: 3px; }
.footer-bottom { margin-top: 2.3rem; padding-top: 1.2rem; border-top: 3px solid var(--ink); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 800; }
.sb-reveal { transition: opacity .65s ease, transform .65s ease; }
.no-js .sb-reveal { opacity: 1 !important; transform: none !important; }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-art { max-width: 37rem; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -1.15rem; transform: translateX(50%); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 2.05rem; height: 2.05rem; }
  .nav-wrap { padding-inline: .7rem; }
  .container { width: min(100% - 1.25rem, var(--max)); }
  .display-brand { font-size: clamp(2.25rem, 11.7vw, 3.05rem); white-space: nowrap; letter-spacing: -.065em; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 var(--pink), 0 0 16px rgba(255,255,255,.4); }
  .hero h1 { font-size: clamp(2rem, 11vw, 3.4rem); line-height: .94; }
  .eyebrow { font-size: .64rem; letter-spacing: .055em; gap: .3rem; padding: .45rem .62rem; }
  .hero-lede { max-width: 100%; overflow-wrap: anywhere; }
  .grid-2, .grid-3, .grid-4, .related-grid, .sidebar, .footer-grid { grid-template-columns: 1fr; }
  .button-row .btn { width: 100%; }
  .mobile-nav-grid { grid-template-columns: 1fr; }
  .article-header h1, .page-hero h1, .section h2 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .books-canvas { display: none; }
}
