/* KuraSewa Journal + solution pages. The landing page's pixel style: black on cream (light), white on black (dark),
   Silkscreen headings, Inter text, hard offset shadows, dot grid. Pages are plain HTML written at build time
   (scripts/blog.mjs), so every word is readable without JavaScript. */

:root {
  --bg: #f2eee6; --side: #f8f6f1; --card: #ffffff; --ink: #111111; --on-ink: #ffffff; --acc: #d6a640;
  --muted: #5f636b; --faint: #a39d90; --line: #e3ddd1; --shadow: #111111; --code: #ebe6db;
  --wa-in: #ffffff; --wa-out: #d9fdd3; --wa-bg: #efeae2;
  --max: 1240px; --read: 700px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #000000; --side: #050505; --card: #0f0f0f; --ink: #ffffff; --on-ink: #000000; --acc: #9a9a9a;
  --muted: #a3a3a3; --faint: #5c5c5c; --line: #262626; --shadow: #3d3d3d; --code: #171717;
  --wa-in: #1f2c34; --wa-out: #005c4b; --wa-bg: #0b141a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--side); color: var(--ink);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--on-ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.px { font-family: "Silkscreen", ui-monospace, monospace; font-weight: 400; letter-spacing: .01em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.wrap { width: min(92%, var(--max)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font: 600 14.5px/1 "Inter", sans-serif;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: 4px 4px 0 var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.btn-line { background: transparent; color: var(--ink); transition: background .2s, color .2s; }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-pill { border-radius: 999px; padding: 9px 18px; font-size: 13.5px; background: var(--ink); color: var(--on-ink); }
.btn svg { width: 16px; height: 16px; }

/* ── Navigation ── */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--side) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.logo .on-dark { display: none; }
html[data-theme="dark"] .logo .on-dark { display: block; }
html[data-theme="dark"] .logo .on-light { display: none; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 8px 10px; }
.theme { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); cursor: pointer; }
.theme svg { width: 16px; height: 16px; }
.theme .sun { display: none; }
html[data-theme="dark"] .theme .sun { display: block; }
html[data-theme="dark"] .theme .moon { display: none; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-login { display: none; } }

/* ── Breadcrumbs, eyebrows, meta ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--acc); flex: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }
.meta .dot { width: 4px; height: 4px; background: var(--faint); }

/* ── Pixel covers (generated SVG art per article) ── */
.cover { position: relative; aspect-ratio: 16 / 8; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.cover svg { width: 100%; height: 100%; }
.cover .tag { position: absolute; left: 14px; top: 12px; font: 400 11px/1 "Silkscreen", monospace; background: var(--on-ink); color: var(--ink); padding: 5px 7px; }
.cover .num { position: absolute; right: 14px; bottom: 10px; font: 400 13px/1 "Silkscreen", monospace; opacity: .7; }

/* ── Journal index ── */
.hero { padding: 64px 0 40px; border-bottom: 2px solid var(--ink); }
.hero h1 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(34px, 6.4vw, 78px); line-height: 1.02; margin: 18px 0 18px; letter-spacing: 0; }
.hero p.lead { max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.ticker { display: flex; gap: 22px; overflow: hidden; border-bottom: 1px solid var(--line); padding: 12px 0; white-space: nowrap; font: 400 12.5px/1 "Silkscreen", monospace; color: var(--muted); }
.ticker span { display: inline-flex; align-items: center; gap: 22px; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border: 1.5px solid var(--ink); text-decoration: none; background: var(--card); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"], .chip:hover { background: var(--ink); color: var(--on-ink); }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--shadow);
  text-decoration: none; margin: 32px 0 48px; transition: transform .18s ease, box-shadow .18s ease; }
.featured:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--shadow); }
.featured .cover { aspect-ratio: auto; min-height: 320px; border-right: 2px solid var(--ink); }
.featured .body { padding: 34px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.featured h2 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; margin: 0; }
.featured p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.read-more::after { content: "→"; transition: transform .18s; }
a:hover .read-more::after { transform: translateX(4px); }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .featured .cover { min-height: 200px; border-right: 0; border-bottom: 2px solid var(--ink); } .featured .body { padding: 24px; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 8px 0 72px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--card); text-decoration: none; box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.card .cover { border-bottom: 2px solid var(--ink); }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 18.5px; line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.card .meta { font-size: 12px; }
.card[hidden] { display: none; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); padding-top: 22px; margin-top: 8px; }
.section-title h2 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.section-title a { font-size: 13.5px; font-weight: 600; }

/* ── Article ── */
.article-head { padding: 36px 0 34px; }
.article-head h1 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.08; margin: 18px 0 18px; max-width: 980px; }
.dek { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 760px; margin: 0 0 22px; }
.article-cover { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); }
.article-cover .cover { aspect-ratio: 16 / 6; }
@media (max-width: 640px) { .article-cover .cover { aspect-ratio: 16 / 9; } }

.layout { display: grid; grid-template-columns: minmax(0, var(--read)) 270px; justify-content: space-between; gap: 64px; padding: 48px 0 24px; }
@media (max-width: 1020px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .aside { display: none; } }
.aside { position: relative; }
.aside .sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.toc { border: 2px solid var(--ink); background: var(--card); padding: 18px 18px 14px; }
.toc p { font: 400 12px/1 "Silkscreen", monospace; margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; font-size: 13.5px; line-height: 1.4; text-decoration: none; color: var(--muted); padding: 6px 0; border-left: 0; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 400 11px/1.6 "Silkscreen", monospace; color: var(--faint); }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on::before { color: var(--acc); }
.side-cta { background: var(--ink); color: var(--on-ink); padding: 20px; box-shadow: 4px 4px 0 var(--acc); }
.side-cta p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; opacity: .85; }
.side-cta strong { display: block; font: 400 17px/1.2 "Silkscreen", monospace; margin-bottom: 8px; opacity: 1; }
.side-cta a { display: inline-flex; background: var(--on-ink); color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 10px 14px; text-decoration: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--acc); z-index: 60; }

/* prose */
.prose { font-size: 18px; line-height: 1.78; color: var(--ink); }
.prose > * { margin: 0 0 24px; }
.prose p { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose h2 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.2; margin: 58px 0 18px; padding-top: 22px; border-top: 2px solid var(--ink); position: relative; }
.prose h2 .n { display: block; font-size: 12px; color: var(--acc); margin-bottom: 10px; }
html[data-theme="dark"] .prose h2 .n { color: var(--muted); }
.prose h3 { font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 12px; }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--acc); font-weight: 500; }
.prose a:hover { background: var(--ink); color: var(--on-ink); text-decoration: none; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 8px; height: 8px; background: var(--ink); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: .2em; width: 21px; height: 21px; display: grid; place-items: center;
  font: 400 11px/1 "Silkscreen", monospace; background: var(--ink); color: var(--on-ink); }
.prose code { font-family: "JetBrains Mono", monospace; font-size: .86em; background: var(--code); padding: 2px 6px; }
.prose hr { border: 0; height: 8px; background-image: linear-gradient(90deg, var(--ink) 8px, transparent 8px); background-size: 16px 8px; opacity: .2; margin: 48px 0; }
.prose blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 6px solid var(--ink); font-size: 21px; line-height: 1.55; font-weight: 500; }
.prose blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--muted); font-weight: 400; }

/* TL;DR */
.tldr { border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--shadow); padding: 24px 26px 8px; margin: 0 0 40px !important; }
.tldr > p:first-child { font: 400 13px/1 "Silkscreen", monospace; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.tldr > p:first-child::before { content: ""; width: 10px; height: 10px; background: var(--acc); }
.tldr ul li { font-size: 16.5px; line-height: 1.6; }

/* callouts */
.note { border: 2px solid var(--ink); padding: 18px 20px; background: var(--card); font-size: 16.5px; line-height: 1.65; position: relative; }
.note::before { content: attr(data-label); position: absolute; top: -11px; left: 14px; font: 400 11px/1 "Silkscreen", monospace; background: var(--ink); color: var(--on-ink); padding: 5px 8px; }
.note p { margin: 0; }
.note.warn { border-style: dashed; }
.note.tip { background: color-mix(in srgb, var(--acc) 12%, var(--card)); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--card); }
.stats div { padding: 18px 16px; border-right: 2px solid var(--ink); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 400 clamp(22px, 3vw, 30px)/1.1 "Silkscreen", monospace; }
.stats span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stats div { border-right: 0; border-bottom: 2px solid var(--ink); } .stats div:last-child { border-bottom: 0; } }

/* steps */
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--ink); margin-left: 14px !important; }
.steps > div { counter-increment: s; position: relative; padding: 2px 0 26px 34px; }
.steps > div::before { content: counter(s, decimal-leading-zero); position: absolute; left: -16px; top: 0; width: 30px; height: 30px; display: grid; place-items: center;
  font: 400 11px/1 "Silkscreen", monospace; background: var(--ink); color: var(--on-ink); }
.steps h4 { margin: 2px 0 6px; font-size: 18px; line-height: 1.35; }
.steps p { margin: 0; font-size: 16.5px; line-height: 1.68; }

/* tables */
.table { overflow-x: auto; border: 2px solid var(--ink); background: var(--card); -webkit-overflow-scrolling: touch; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.table th { background: var(--ink); color: var(--on-ink); text-align: left; font-weight: 600; padding: 12px 14px; font-size: 13.5px; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr td:first-child { font-weight: 600; }
.table .yes { font-weight: 700; }
.table .no { color: var(--muted); }

/* checklist */
.check { border: 2px solid var(--ink); background: var(--card); padding: 8px 20px; }
.check li { padding: 12px 0 12px 34px !important; border-bottom: 1px dashed var(--line); margin: 0 !important; font-size: 16.5px; }
.check li:last-child { border-bottom: 0; }
.check li::before { content: "" !important; left: 2px !important; top: 15px !important; width: 18px !important; height: 18px !important; background: transparent !important;
  border: 2px solid var(--ink); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 9px var(--ink); }

/* WhatsApp-style chat mock */
.chat { max-width: 440px; margin: 34px auto !important; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); background: var(--wa-bg); font-size: 14.5px; line-height: 1.45; }
.chat .top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink); color: var(--on-ink); }
.chat .top i { width: 28px; height: 28px; background: var(--on-ink); display: grid; place-items: center; font: normal 400 9px/1 "Silkscreen", monospace; color: var(--ink); }
.chat .top b { font-size: 14px; display: block; }
.chat .top small { font-size: 11.5px; opacity: .7; display: block; }
.chat .msgs { padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.chat .m { max-width: 82%; padding: 8px 10px 6px; border-radius: 8px; color: #111; background: var(--wa-in); box-shadow: 0 1px 0 rgba(0,0,0,.08); white-space: pre-line; }
html[data-theme="dark"] .chat .m { color: #e9edef; }
.chat .m.o { align-self: flex-end; background: var(--wa-out); }
.chat .m small { display: block; text-align: right; font-size: 10.5px; opacity: .55; margin-top: 2px; }
.chat .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat .btns span { flex: 1 1 auto; text-align: center; font-size: 13px; font-weight: 600; color: #027eb5; background: rgba(255,255,255,.7); border-radius: 6px; padding: 6px 8px; }
html[data-theme="dark"] .chat .btns span { color: #53bdeb; background: rgba(255,255,255,.06); }
.chat figcaption { padding: 10px 14px; border-top: 2px solid var(--ink); background: var(--card); font-size: 12.5px; color: var(--muted); }

/* compare (before / after) */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.compare > div { padding: 18px 20px; background: var(--card); }
.compare > div + div { border-left: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); }
.compare h4 { margin: 0 0 10px; font: 400 13px/1 "Silkscreen", monospace; }
.compare ul { margin: 0; }
.compare li { font-size: 15.5px; margin-bottom: 8px !important; }
.compare > div + div li::before { background: var(--on-ink) !important; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 2px solid var(--ink); } }

/* FAQ */
.faq { margin-top: 64px; }
.faq h2 { margin-top: 0; }
.faq details { border: 2px solid var(--ink); background: var(--card); margin: 0 0 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; font-size: 17px; line-height: 1.45; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center;
  font: 400 15px/1 "Silkscreen", monospace; background: var(--ink); color: var(--on-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 14px 18px 4px; font-size: 16.5px; line-height: 1.7; }
.faq .a p { margin: 0 0 12px; }

/* author / share / CTA */
.byline { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding: 20px; border: 2px solid var(--ink); background: var(--card); }
.byline img { width: 52px; height: 52px; border: 2px solid var(--ink); background: #fff; padding: 4px; }
.byline p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.byline b { color: var(--ink); display: block; font-size: 15.5px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.share a, .share button { font: 600 12.5px/1 "Inter", sans-serif; padding: 8px 11px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--on-ink); }

.cta { margin: 72px 0 0; background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.cta .wrap { padding: 64px 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.cta h2 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.08; margin: 0 0 14px; }
.cta p { margin: 0; font-size: 17px; line-height: 1.6; opacity: .82; max-width: 560px; }
.cta .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn-ink { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); box-shadow: 4px 4px 0 var(--acc); }
.cta .btn-ink:hover { box-shadow: 7px 7px 0 var(--acc); }
.cta .btn-line { color: var(--on-ink); border-color: var(--on-ink); }
.cta .btn-line:hover { background: var(--on-ink); color: var(--ink); }
.cta .pix { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(var(--on-ink) 1px, transparent 1px), linear-gradient(90deg, var(--on-ink) 1px, transparent 1px); background-size: 24px 24px; }
.cta small { display: block; margin-top: 12px; font-size: 12.5px; opacity: .6; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } .cta .acts { justify-content: flex-start; } }

.related { padding: 64px 0 8px; }
.related .grid { margin-top: 24px; margin-bottom: 0; }

/* solution pages */
.sol-hero { padding: 56px 0 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.sol-hero h1 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.05; margin: 18px 0 18px; }
.sol-hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sol-hero .fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.sol-hero .chat { margin: 0 0 0 auto !important; }
@media (max-width: 960px) { .sol-hero { grid-template-columns: 1fr; gap: 36px; } .sol-hero .chat { margin: 0 auto !important; } }
.band { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); overflow: hidden; }
.band .row { display: flex; gap: 26px; padding: 14px 0; white-space: nowrap; font: 400 14px/1 "Silkscreen", monospace; animation: band 40s linear infinite; width: max-content; }
.band .row span { display: inline-flex; align-items: center; gap: 26px; }
.band .row span::after { content: ""; width: 8px; height: 8px; background: var(--acc); }
@keyframes band { to { transform: translateX(-50%); } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--card); margin: 28px 0 0; }
.features > div { padding: 26px 24px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.features > div:nth-child(3n) { border-right: 0; }
.features > div:nth-last-child(-n+3) { border-bottom: 0; }
.features i { font: normal 400 12px/1 "Silkscreen", monospace; color: var(--acc); }
html[data-theme="dark"] .features i { color: var(--muted); }
.features h3 { font-size: 18px; margin: 10px 0 8px; line-height: 1.3; }
.features p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .features > div { border-right: 0 !important; border-bottom: 2px solid var(--ink) !important; } .features > div:last-child { border-bottom: 0 !important; } }
.block { padding: 72px 0 0; }
.block > h2, .block .section-title h2 { margin-bottom: 8px; }
.block .lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 720px; margin: 12px 0 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 28px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 32px; } }
.sol-prose { max-width: 820px; }

/* footer */
.foot { margin-top: 0; border-top: 2px solid var(--ink); background: var(--side); }
.foot .cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding: 48px 0 32px; }
.foot h4 { font: 400 12px/1 "Silkscreen", monospace; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot a { text-decoration: none; font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 320px; margin: 14px 0 0; }
.foot .base { border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .prose { font-size: 17px; }
  .hero { padding-top: 44px; }
  .article-head { padding-top: 24px; }
  .layout { padding-top: 32px; }
}
@media print { .nav, .aside, .cta, .related, .foot, .share, .progress { display: none !important; } body { background: #fff; } }

/* ── Interactive: quick check (one question per article) ── */
.quiz { border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--shadow); padding: 22px 22px 18px; margin: 40px 0 !important; position: relative; }
.qhead { font: 400 12px/1 "Silkscreen", monospace; margin: 0 0 12px !important; display: flex; align-items: center; gap: 10px; color: var(--ink) !important; }
.qhead::before { content: ""; width: 10px; height: 10px; background: var(--acc); }
.quiz h3 { margin: 0 0 16px; font-size: 19px; line-height: 1.45; }
.opts { display: grid; gap: 10px; }
.opts button { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; background: var(--side);
  border: 2px solid var(--line); color: var(--ink); font: 500 15.5px/1.45 "Inter", sans-serif; cursor: pointer; transition: border-color .15s, transform .15s; }
.opts button:hover:not(:disabled) { border-color: var(--ink); transform: translateX(3px); }
.opts button span { width: 30px; height: 30px; display: grid; place-items: center; font: 400 12px/1 "Silkscreen", monospace; border: 2px solid var(--ink); background: var(--card); }
.opts button:disabled { cursor: default; }
.opts button.right { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.opts button.right span { background: var(--acc); color: #111; border-color: var(--acc); }
.opts button.wrong { border-style: dashed; border-color: var(--ink); opacity: .75; text-decoration: line-through; }
.quiz .explain { margin: 16px 0 0; font-size: 16px; line-height: 1.65; padding-top: 14px; border-top: 1px dashed var(--line); }
.quiz .explain b { margin-right: 4px; }
.quiz [data-right], .quiz [data-wrong] { display: none; }
.quiz.ok [data-right], .quiz.no [data-wrong] { display: inline; }

/* ── Interactive: readiness quiz on the Journal ── */
.ready { border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--shadow); margin: 0 0 64px; display: grid; grid-template-columns: 1fr 1.25fr; }
.ready-head { padding: 30px; background: var(--ink); color: var(--on-ink); }
.ready-head .qhead { color: var(--on-ink) !important; }
.ready-head h2 { font-family: "Silkscreen", monospace; font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; margin: 4px 0 12px; }
.ready-head p { margin: 0; opacity: .8; font-size: 15.5px; line-height: 1.6; }
.ready-qs { list-style: none; margin: 0; padding: 10px 26px; counter-reset: r; }
.ready-qs li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.45; }
.ready-qs li:last-child { border-bottom: 0; }
.ready-qs li::before { content: counter(r, decimal-leading-zero); font: 400 11px/1 "Silkscreen", monospace; color: var(--faint); }
.yn { display: flex; gap: 6px; }
.yn button { font: 600 13px/1 "Inter", sans-serif; padding: 8px 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; }
.yn button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.ready-out { grid-column: 1 / -1; border-top: 2px solid var(--ink); padding: 24px 30px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.ready-out .score { display: flex; align-items: baseline; gap: 6px; }
.ready-out .score b { font: 400 64px/1 "Silkscreen", monospace; }
.ready-out .score span { font: 400 18px/1 "Silkscreen", monospace; color: var(--muted); }
.ready-out h3 { margin: 0 0 6px; font-size: 20px; }
.ready-out p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.ready-out ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ready-out ul a { display: inline-block; font-weight: 600; font-size: 13.5px; padding: 8px 12px; border: 2px solid var(--ink); text-decoration: none; background: var(--side); }
.ready-out ul a:hover { background: var(--ink); color: var(--on-ink); }
@media (max-width: 900px) { .ready { grid-template-columns: 1fr; } .ready-qs { padding: 6px 18px; } .ready-qs li { grid-template-columns: 26px 1fr; } .yn { grid-column: 2; } .ready-out { grid-template-columns: 1fr; gap: 12px; padding: 20px; } }

.ready-out[hidden], .explain[hidden] { display: none !important; }

/* long pixel words never push the page wider than the screen */
h1, h2, h3, .featured h2, .card h3 { overflow-wrap: break-word; hyphens: auto; }
.prose, .layout > *, .sol-hero > *, .two > * { min-width: 0; }
@media (max-width: 640px) {
  .article-head h1, .sol-hero h1 { font-size: clamp(24px, 7.4vw, 34px); }
  .hero h1 { font-size: clamp(32px, 11vw, 48px); }
  .prose h2 { font-size: 20px; }
  .chat { max-width: 100%; }
  .cta .wrap { padding: 48px 0; }
}

/* solution pages: the keyword title is the H1, the short promise sits under it */
.sol-hero h1 { font-size: clamp(28px, 3.8vw, 48px); }
.sol-hero .tagline { font: 400 clamp(17px, 1.8vw, 22px)/1.3 "Silkscreen", monospace; margin: 0 0 14px; color: var(--muted); }

/* Industry guide: one block per business type */
.fam { display: flex; align-items: center; gap: 12px; margin: 54px 0 6px !important; }
.fam span { font: 400 11px/1 "Silkscreen", monospace; background: var(--ink); color: var(--on-ink); padding: 6px 8px; }
.ind { border: 2px solid var(--ink); background: var(--card); margin: 18px 0 !important; box-shadow: 4px 4px 0 var(--shadow); }
.ind > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.ind h3 { margin: 0 !important; font-size: 18.5px; line-height: 1.3; }
.ind > header i { font: normal 400 11px/1 "Silkscreen", monospace; color: var(--muted); white-space: nowrap; }
.ind .say { padding: 12px 16px; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }
.ind .say b { color: var(--ink); font-weight: 600; }
.ind .cols { display: grid; grid-template-columns: 1.4fr 1fr; }
.ind .cols > div { padding: 12px 16px 6px; }
.ind .cols > div + div { border-left: 1px dashed var(--line); }
.ind .cols p { font: 400 11px/1 "Silkscreen", monospace; margin: 0 0 8px !important; color: var(--ink); }
.ind .cols ul { margin: 0 0 6px !important; }
.ind .cols li { font-size: 15px; line-height: 1.55; margin-bottom: 6px !important; padding-left: 22px !important; }
.ind .cols li::before { left: 4px !important; top: .62em !important; width: 7px !important; height: 7px !important; }
.ind .cols > div + div li::before { background: transparent !important; border: 1.5px solid var(--ink); }
@media (max-width: 640px) { .ind .cols { grid-template-columns: 1fr; } .ind .cols > div + div { border-left: 0; border-top: 1px dashed var(--line); } }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { font-size: 13px !important; font-weight: 600 !important; padding: 6px 10px; border: 1.5px solid var(--ink); text-decoration: none !important; background: var(--card); }
.jump a:hover { background: var(--ink) !important; color: var(--on-ink) !important; }
