:root {
  --ink: #000;
  --paper: #f4f4f0;
  --pink: #ff90e8;
  --pink-soft: #ffd6f6;
  --yellow: #ffc900;
  --yellow-soft: #fff1b8;
  --mint: #23a094;
  --mint-soft: #c9f0ea;
  --sky: #90a8ed;
  --sky-soft: #dde5ff;
  --coral: #ff7051;
  --coral-soft: #ffd9cf;
  --muted: #5f5f5f;
  --r: 6px;
  --pop: 4px 4px 0 0 #000;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
::selection { background: var(--pink); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Buttons & chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--r);
  background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .14s cubic-bezier(.3,.7,.4,1.4), box-shadow .14s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 0 #000; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--pink); color: var(--ink); }
.btn-pink { background: var(--pink); }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--ink);
  border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--ink); }
.bar { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.bar nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; }
.bar nav a:not(.btn):hover { color: #d64fc0; }
.bar .btn { height: 38px; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.04em; }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); background: var(--pink); display: grid; place-items: center; }

/* Tones */
.tone-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); }
.tone-yellow { --tone: var(--yellow); --tone-soft: var(--yellow-soft); }
.tone-mint { --tone: var(--mint); --tone-soft: var(--mint-soft); }
.tone-sky { --tone: var(--sky); --tone-soft: var(--sky-soft); }
.tone-coral { --tone: var(--coral); --tone-soft: var(--coral-soft); }
.dots { background-image: radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.2px); background-size: 14px 14px; }

/* Blog index */
.blog-hero { background: var(--pink); border-bottom: 1px solid var(--ink);
  background-image: radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.2px); background-size: 14px 14px; padding: 56px 0 48px; }
.blog-hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: .95; letter-spacing: -.04em; font-weight: 600; margin: 20px 0 18px; max-width: 900px; }
.blog-hero p { font-size: 20px; max-width: 640px; margin: 0; }
.squiggle { background: linear-gradient(transparent 70%, var(--yellow) 70%); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump .chip { height: 34px; padding: 0 14px; background: var(--tone); }
.cat { padding-top: 56px; scroll-margin-top: 80px; }
.cat h2, .related h2 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.035em; line-height: 1; margin: 0 0 20px; font-weight: 600; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; text-decoration: none;
  transition: transform .16s cubic-bezier(.3,.7,.4,1.4), box-shadow .16s; }
.card:hover { transform: translate(-4px, -4px); box-shadow: var(--pop); }
.card-band { height: 64px; background: var(--tone); border-bottom: 1px solid var(--ink); display: flex; align-items: flex-end; padding: 12px 16px;
  background-image: radial-gradient(rgba(0,0,0,.12) 1px, transparent 1.2px); background-size: 12px 12px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.card-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-meta { margin-top: auto; font-size: 14px; font-weight: 700; }

/* Post */
.post-hero { background: var(--tone); border-bottom: 1px solid var(--ink); padding: 32px 0 40px;
  background-image: radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.2px); background-size: 14px 14px; }
.tone-mint.post-hero { color: #fff; }
.tone-mint.post-hero .chip, .tone-mint.post-hero .crumbs { color: var(--ink); }
.tone-mint.post-hero .crumbs { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.post-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 600; margin: 16px 0 16px; }
.dek { font-size: 20px; line-height: 1.45; margin: 0 0 20px; max-width: 720px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; opacity: .85; }
.post-grid { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 24px; }
@media (min-width: 1024px) { .post-grid { grid-template-columns: 250px minmax(0, 720px); justify-content: center; } }
.toc { display: none; }
@media (min-width: 1024px) { .toc { display: block; } .toc-card { position: sticky; top: 88px; } }
.toc-card { background: #fff; border: 1px solid var(--ink); border-radius: var(--r); padding: 16px; font-size: 14px; }
.toc-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--muted); } .toc a:hover { color: var(--ink); text-decoration: underline; }

.prose { font-size: 18px; line-height: 1.7; min-width: 0; }
.prose > p:first-child { font-size: 20px; line-height: 1.6; }
.prose h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 48px 0 16px; scroll-margin-top: 88px; }
.prose h3 { font-size: 22px; letter-spacing: -.02em; margin: 32px 0 10px; line-height: 1.25; scroll-margin-top: 88px; }
.prose h4 { font-size: 18px; margin: 24px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose a { text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; }
.prose a:hover { background: var(--pink-soft); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { font-weight: 700; }
.prose strong { font-weight: 700; }
.prose code { background: #fff; border: 1px solid rgba(0,0,0,.2); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; background: #fff; border: 1px solid var(--ink); border-left: 6px solid var(--pink); border-radius: var(--r); }
.prose blockquote p:last-child, .prose blockquote ul:last-child { margin-bottom: 0; }
.prose blockquote.tldr { background: var(--yellow-soft); border-left-width: 1px; box-shadow: var(--pop); }
.table { overflow-x: auto; margin: 24px 0; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th { background: var(--yellow); text-align: left; font-weight: 700; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--ink); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

.faq { margin-top: 48px; scroll-margin-top: 88px; }
.faq details { background: #fff; border: 1px solid var(--ink); border-radius: var(--r); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 12px; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #fff; }
.faq details[open] summary::after { content: '–'; background: var(--pink); }
.faq details p { margin: 0; padding: 0 18px 16px; color: #333; }

.cta { border: 1px solid var(--ink); border-radius: var(--r); }
.cta-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--pink-soft); padding: 18px 20px; margin: 36px 0; font-size: 17px; }
.cta-end { background: var(--pink); padding: 28px; margin: 48px 0 24px; box-shadow: 6px 6px 0 0 #000;
  background-image: radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.2px); background-size: 14px 14px; }
.cta-end h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -.035em; margin: 8px 0 12px; }
.cta-end p { margin: 0 0 20px; font-size: 18px; max-width: 560px; }
.cta-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.related { border-top: 1px solid var(--ink); background: #fff; padding: 48px 0 56px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 48px 0 28px; }
.site-footer .logo span:last-child { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-grid p { color: rgba(255,255,255,.7); margin: 12px 0 16px; }
.foot-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); margin: 6px 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot-grid ul a { text-decoration: none; color: rgba(255,255,255,.85); } .foot-grid ul a:hover { color: var(--pink); }
.site-footer .btn-ink { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.fine { margin-top: 36px; font-size: 13px; color: rgba(255,255,255,.55); }

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