/* Ryuubi Studio: minimal, black and white */

/* ---------- Fonts (self-hosted, OFL license in fonts/) ---------- */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }

/* ---------- Token ---------- */

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f0f0f0;
  --text: #111111;
  --muted: #6b7280;
  --muted-2: #656b76;
  --line: rgba(17, 17, 17, .12);
  --line-strong: rgba(17, 17, 17, .38);
  --accent: #111111;
  --accent-soft: #99a1af;
  --btn: #111111;
  --btn-hover: #000000;
  --btn-text: #ffffff;
  --chip: #f0f0f0;
  --chip-text: #111111;
  --shadow: 0 0 0 1px var(--line);
  --glow: none;
  --code-bg: #111111;
  --code-text: #f2f2f2;

  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wide: 1024px;
  --read: 660px;
  --r: 8px;
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
.prose a, .link { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--text); color: var(--bg); }

h1, h2, h3 { font-family: var(--sans); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: 2.5rem; letter-spacing: -.035em; line-height: 1.05; font-weight: 400; }
@media (min-width: 768px) { h1 { font-size: 4rem; line-height: 1.0; } }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; font-weight: 500; color: inherit; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: var(--btn-text); }

/* ---------- Header ---------- */

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }

.wordmark { font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; text-decoration: none; color: var(--text); }
.wordmark span + span { font-weight: 400; }
.wordmark:hover { color: inherit; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { text-decoration: none; font-size: 1.0625rem; color: var(--muted); padding: 8px 0; min-height: 36px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }


/* ---------- Buttons ---------- */

.btn { font: 500 .96rem/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 8px; border: 0; background: var(--btn); color: var(--btn-text); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s; white-space: nowrap; }
.btn:hover { color: var(--btn-text); background: var(--btn-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); background: var(--text); color: var(--bg); }
.btn.wide { width: 100%; }

/* Checkout not open yet */
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted-2); cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-disabled="true"]:hover { background: var(--surface-2); color: var(--muted-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.btn[aria-disabled="true"] .dot { animation: pulse 2.2s ease-in-out infinite; }
.btn:not([aria-disabled="true"]) .dot { display: none; }

/* ---------- Hero ---------- */

.hero { background: var(--glow); padding: 48px 0 64px; }
@media (min-width: 768px) { .hero { padding: 96px 0 96px; } }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 520px; margin: 24px 0 34px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; font-size: .9rem; color: var(--muted-2); }

@media (max-width: 767px) { .hero-grid { grid-template-columns: 1fr; } }

/* File card */
.file-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .6s var(--ease); }
.file-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.file-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: var(--muted-2); }
.file-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); display: inline-block; }
.file-bar span { margin-left: 8px; }
.file-body { padding: 22px 24px 8px; }
.tree { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .84rem; }
.tree li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tree li:last-child { border-bottom: 0; }
.tree .n { color: var(--text); overflow-wrap: anywhere; }
.tree .k { color: var(--muted-2); font-family: var(--sans); font-size: .78rem; white-space: nowrap; }
.tree .indent { padding-left: 18px; }
.file-quote { margin: 8px 24px 0; padding: 18px 0 22px; border-top: 1px solid var(--line); font-size: 1.05rem; line-height: 1.4; font-style: normal; font-weight: 500; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 700px; }
.section-head p { margin: 0; color: var(--muted); max-width: 420px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }

/* Pack list: a card grid, one bordered box per item */
.packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.pack a { display: flex; flex-direction: column; gap: 20px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.pack a:hover { border-color: var(--line-strong); transform: translateY(-2px); color: inherit; }
.pack .num { font-style: normal; font-weight: 400; color: var(--muted-2); font-size: .875rem; }
.pack h3 { font-size: 1.75rem; font-weight: 500; margin: 8px 0 0; letter-spacing: -.02em; }
.pack .punch { font-size: 1.0625rem; font-weight: 500; color: var(--text); margin: 8px 0 0; }
.pack p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.pack .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: .72rem; font-weight: 500; letter-spacing: .04em; background: var(--chip); color: var(--chip-text); padding: 4px 10px; border-radius: 999px; }
.pack .price { margin-top: auto; padding-top: 4px; font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pack .price .arr { font-family: var(--sans); font-size: 1.1rem; color: var(--muted-2); transition: transform .4s var(--ease), color .3s; }
.pack a:hover .arr { transform: translateX(6px); color: var(--text); }
.pack.bundle a { background: var(--surface-2); border-color: transparent; }

/* Template grid: an image card per item, like a portfolio work grid */
.tpl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.tpl-card a { display: block; text-decoration: none; color: inherit; }
.tpl-img { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tpl-card a:hover .tpl-img img { transform: scale(1.02); }
.tpl-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.tpl-meta h3 { font-size: 1.2rem; font-weight: 500; margin: 0; letter-spacing: -.01em; }
.tpl-meta .price { font-weight: 500; color: var(--muted-2); font-size: .95rem; }
.tpl-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.tpl-etsy { display: inline-block; margin-top: 6px; font-size: .82rem; color: var(--muted-2); text-decoration-color: var(--line-strong); }
.tpl-etsy:hover { color: var(--text); }

/* Proof: real apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.app { display: flex; gap: 20px; background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.app img { width: 64px; height: 64px; border-radius: 8px; flex: none; }
.app h3 { margin: 0 0 6px; }
.app p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.app .links { display: flex; gap: 18px; font-size: .92rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-style: normal; font-weight: 500; color: var(--muted-2); font-size: 1rem; display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--muted-2); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -4px 0 22px; max-width: 680px; }

/* Closing band */
.closing { background: var(--surface-2); border-radius: 8px; padding: clamp(40px, 7vw, 80px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.closing h2 { margin: 0 0 10px; }
.closing p { margin: 0; color: var(--muted); max-width: 520px; }
@media (max-width: 760px) { .closing { grid-template-columns: 1fr; } }

/* ---------- Category page ---------- */

.page-hero { padding: 48px 0 32px; background: var(--glow); }
@media (min-width: 768px) { .page-hero { padding: 96px 0 56px; } }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.page-hero .lede { margin-bottom: 0; }
.crumbs { font-size: .88rem; color: var(--muted-2); margin: 0 0 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }

.explainer { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); }
.explainer .body p, .explainer .body li { color: var(--muted); }
.explainer .body ul { padding-left: 1.1em; margin: 0 0 1em; }
.explainer .body li { margin-bottom: 8px; }
.explainer .body strong { color: var(--text); font-weight: 500; }
@media (max-width: 767px) { .explainer { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */

.product-top { padding: 40px 0 0; background: var(--glow); }
@media (min-width: 768px) { .product-top { padding: 80px 0 0; } }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.product-main { padding-bottom: 40px; }
.product-main h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { font-size: .82rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 12px; border-radius: 999px; color: var(--muted-2); }
.facts strong { color: var(--text); font-weight: 500; }

.buy-card { position: sticky; top: 20px; background: var(--surface); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
.buy-card .price { font-size: 2.8rem; font-weight: 500; letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.buy-card .price small { font: 500 .78rem var(--sans); color: var(--muted-2); letter-spacing: .06em; }
.buy-card .sub { color: var(--muted); font-size: .9rem; margin: 10px 0 22px; }
.buy-card ul { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: .92rem; }
.buy-card li { display: flex; gap: 10px; padding: 5px 0; }
.buy-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.buy-card .bundle-link { display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); text-decoration: none; }
.buy-card .bundle-link strong { color: var(--text); font-weight: 500; }
.buy-card .bundle-link:hover strong { color: var(--accent); }
.buy-card .note { font-size: .8rem; color: var(--muted-2); margin: 14px 0 0; text-align: center; }

@media (max-width: 767px) {
  .product-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
}

.block { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .block { padding: 96px 0; } }
.block:first-child { border-top: 0; }
.block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose { max-width: var(--read); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent-soft); }

.files { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.files li { background: var(--surface); padding: 20px 22px; }
.files .fname { font-family: var(--mono); font-size: .84rem; font-weight: 500; display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
.files p { margin: 0; color: var(--muted); font-size: .95rem; }

.quote { margin: 26px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--line-strong); }
.quote p { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; color: var(--text); margin: 0 0 10px; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: .76rem; color: var(--muted-2); }

.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.fit > div { background: var(--surface); border-radius: var(--r); padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.fit h3 { font-size: 1.1rem; margin-bottom: 10px; }
.fit ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.fit li { margin-bottom: 8px; }
.fit li::marker { color: var(--accent-soft); }

.table-scroll { overflow-x: auto; margin-top: 20px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 500; color: var(--muted-2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

.license-box { background: var(--surface-2); border-radius: var(--r); padding: 26px 28px; }
.license-box ul { margin: 0 0 12px; padding-left: 1.1em; }
.license-box li { margin-bottom: 8px; color: var(--muted); }
.license-box strong { color: var(--text); font-weight: 500; }
.license-box .small { font-size: .88rem; color: var(--muted-2); margin: 0; }

/* Mobile buy bar */
.buybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 8px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transform: translateY(140%); transition: transform .5s var(--ease); }
.buybar .p { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.buybar .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.buybar.show { transform: none; }
@media (max-width: 767px) { .buybar { display: flex; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface-2); margin-top: 64px; padding: 56px 0 40px; font-size: .9rem; color: var(--muted-2); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 56px; }
.footer-statement h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 400; letter-spacing: -.02em; margin: 0 0 18px; }
.footer-email { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; color: var(--muted); text-decoration: none; }
.footer-email:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-footer nav a, .site-footer nav button { color: var(--muted-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover, .site-footer nav button:hover { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Consent banner ---------- */

.consent { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 400px; background: var(--surface); border-radius: 8px; padding: 22px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.consent.show { transform: none; opacity: 1; }
.consent h2 { font-size: 1.15rem; margin: 0 0 6px; letter-spacing: -.01em; }
.consent p { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.consent .row { display: flex; gap: 10px; }
.consent .btn { flex: 1; min-height: 44px; padding: 0 16px; font-size: .9rem; }
@media (max-width: 520px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
/* The mobile buy bar sits in the same bottom strip: lift the banner clear of it when both are visible. */
body:has(.buybar.show) .consent { bottom: 88px; }

/* ---------- Animations ---------- */

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .06s; }
.js .reveal[data-d="2"] { transition-delay: .12s; }
.js .reveal[data-d="3"] { transition-delay: .18s; }
.js .reveal[data-d="4"] { transition-delay: .24s; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Product page areas: on mobile the buy card sits right after the intro */
.product-grid { grid-template-areas: "intro aside" "body aside"; }
.product-intro { grid-area: intro; padding-bottom: clamp(24px, 4vw, 48px); }
.product-aside { grid-area: aside; align-self: stretch; padding-bottom: 40px; }
.product-body { grid-area: body; min-width: 0; }
@media (max-width: 767px) {
  .product-grid { grid-template-areas: "intro" "aside" "body"; }
  .product-aside { padding-bottom: 8px; }
}

/* ---------- Blog ---------- */

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 860px; }
.post-list a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .45s var(--ease); }
.post-list a:hover { padding-left: 14px; color: inherit; }
.post-list time { grid-column: 1 / -1; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.post-list h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0; }
.post-list p { margin: 0; color: var(--muted); grid-column: 1; max-width: 640px; }
.post-list .arr { grid-row: 2 / 4; grid-column: 2; align-self: center; color: var(--muted-2); font-size: 1.2rem; transition: transform .4s var(--ease); }
.post-list a:hover .arr { transform: translateX(6px); color: var(--text); }

.article-hero { padding: 48px 0 24px; background: var(--glow); }
@media (min-width: 768px) { .article-hero { padding: 96px 0 40px; } }
.article-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); max-width: 900px; }
.article-meta { color: var(--muted-2); font-size: .92rem; margin: 18px 0 0; }
.article { padding-bottom: clamp(48px, 8vw, 96px); }
.article .prose { max-width: 700px; margin: 0 auto; }
.article .prose h2 { margin-top: 1.8em; }
.article .prose p, .article .prose li { font-size: 1.06rem; line-height: 1.75; }
.article .prose p code, .article .prose li code { color: var(--text); }
.prose pre { background: var(--code-bg); color: var(--code-text); border-radius: 8px; padding: 20px 22px; overflow-x: auto; font: .88rem/1.6 var(--mono); margin: 0 0 1.4em; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.figure { margin: 2em auto; max-width: 900px; }
.figure img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.figure figcaption { font-size: .88rem; color: var(--muted-2); margin-top: 12px; text-align: center; }
.callout-end { margin-top: 3em; background: var(--surface-2); border-radius: var(--r); padding: 26px 28px; }
.callout-end h2 { font-size: 1.5rem; margin-top: 0 !important; }
.callout-end p { margin-bottom: 16px; }

@media (max-width: 420px) {
  .nav { gap: 0; }
  .nav a { padding: 10px 8px; font-size: .9rem; }
}

.summary { background: var(--surface); border-radius: var(--r); padding: 22px 26px 8px; box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 2em; }
.summary .kicker { margin-bottom: 10px; }
.summary ul { padding-left: 1.1em; }
.summary li { font-size: 1rem !important; line-height: 1.65 !important; }

.works { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.works-label { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-right: 4px; }

.faq.usage summary { font-family: var(--sans); font-size: 1rem; }
.faq.usage summary code { font-size: .92rem; background: var(--surface-2); }
.faq.usage details p { margin: 0 0 12px; }
.faq.usage details p:last-child { margin-bottom: 22px; }
.faq.usage details strong { color: var(--text); font-weight: 500; }

/* ---------- Input/output examples inside the usage guide ---------- */

.io { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.io > div { background: var(--surface-2); border-radius: 8px; padding: 16px 18px; }
.io .io-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.io p { margin: 0 0 .6em; font-size: .92rem; color: var(--text); }
.io p:last-child { margin-bottom: 0; }
.io pre { background: var(--code-bg); color: var(--code-text); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font: .8rem/1.55 var(--mono); margin: 0; white-space: pre-wrap; }
.io pre code { background: none; padding: 0; color: inherit; }
.io table { font-size: .82rem; margin-top: 4px; }
.io .src { display: block; font-family: var(--mono); font-size: .74rem; color: var(--muted-2); margin-top: 8px; }
