/* Hashtagr: "sticker sheet" look. Ink violet, warm paper, lime and coral stickers with hard offset shadows. */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inclusive Sans"; src: url("fonts/inclusive-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inclusive Sans"; src: url("fonts/inclusive-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inclusive Sans"; src: url("fonts/inclusive-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sometype Mono"; src: url("fonts/sometype-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #20164a;
  --ink-2: #3a2f6e;
  --paper: #fbf7ee;
  --card: #ffffff;
  --lime: #c8f23d;
  --coral: #ff6b4a;
  --violet: #6c4ce6;
  --sky: #d9ecff;
  --muted: #5d5680;
  --line: #20164a;
  --soft: #ece5d6;
  --good: #1d7a45;
  --warn: #9a5b00;
  --bad: #c2321b;
  --shadow: 4px 4px 0 var(--ink);
  --r: 14px;
  --head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Inclusive Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Sometype Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #efeaff; --ink-2: #cfc6f5; --paper: #17112f; --card: #221a45; --muted: #b3a9df; --line: #8b7fd0;
    --soft: #2c2357; --sky: #26315a; --violet: #a993ff; --good: #6fdc98; --warn: #ffc266; --bad: #ff8f78;
    --shadow: 4px 4px 0 #000;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 500; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.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; background: var(--lime); color: #20164a; padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }

/* masthead */
.mast { background: #20164a; color: #fbf7ee; border-bottom: 3px solid #000; }
.mast-in { max-width: 1160px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-tile { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--lime); color: #20164a; border: 2px solid #000; border-radius: 10px;
  font: 700 22px/1 var(--head); box-shadow: 3px 3px 0 #000; transform: rotate(-6deg); }
.logo-word { font: 700 1.25rem/1 var(--head); letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #fbf7ee; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a[aria-current] { background: var(--lime); color: #20164a; }
.crumbs { max-width: 1160px; margin: 0 auto; padding: 12px 16px 0; font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "#"; margin-right: 6px; color: var(--coral); font-weight: 700; }
.crumbs a { color: var(--muted); }

/* layout */
main { display: block; }
.band { max-width: 1160px; margin: 0 auto; padding: 40px 16px; }
.sub { color: var(--muted); max-width: 70ch; }
.eyebrow { font: 500 .78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--violet); margin-bottom: .8em; }
.lede { font-size: 1.12rem; max-width: 62ch; color: var(--ink-2); }
.fine, .hint { font-size: .88rem; color: var(--muted); }
.panel { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.lbl { display: block; font-weight: 600; margin: 0 0 6px; }
.lbl-inline { font-weight: 600; }
textarea, input[type=text], select { width: 100%; font: 400 1rem/1.5 var(--mono); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; }
select { font-family: var(--body); width: auto; max-width: 100%; }
textarea { resize: vertical; }
.row input[type=text] { flex: 1 1 200px; width: auto; }
.sel { display: inline-flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
.chk { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.chk input { width: 18px; height: 18px; accent-color: var(--violet); }
fieldset.opts { border: 2px dashed var(--soft); border-radius: 10px; margin: 12px 0; padding: 8px 12px 4px; }
fieldset.opts legend { font-weight: 600; padding: 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 1rem/1 var(--body); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  background: var(--coral); color: #20164a; border: 2px solid #20164a; box-shadow: 3px 3px 0 #20164a; text-decoration: none; }
.btn:hover { color: #20164a; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #20164a; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #20164a; }
.btn-ghost { background: var(--lime); }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.linkish { background: none; border: 0; padding: 0 4px; font: inherit; color: var(--violet); text-decoration: underline; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { font: 500 .92rem/1 var(--mono); background: var(--lime); color: #20164a; border: 2px solid #20164a; border-radius: 999px; padding: 6px 10px; overflow-wrap: anywhere; }
.chip-over { background: transparent; color: var(--bad); border-color: var(--bad); text-decoration: line-through; }
.pill { display: inline-block; font: 600 .75rem/1 var(--body); padding: 4px 8px; border-radius: 999px; border: 1.5px solid currentColor; margin-right: 4px; }
.pill-ok { color: var(--good); } .pill-warn { color: var(--warn); } .pill-over { color: var(--bad); }
.count { font: 500 .95rem var(--mono); }
.count.over { color: var(--bad); }
.notice { border-left: 4px solid var(--coral); background: var(--soft); padding: 10px 12px; border-radius: 6px; margin: 8px 0; font-size: .95rem; overflow-wrap: anywhere; }
.report { padding-left: 1.2em; font-size: .95rem; }
.report li { margin: 4px 0; overflow-wrap: anywhere; }
.report li.bad::marker { content: "\2717  "; color: var(--bad); }
.report li.good::marker { content: "\2713  "; color: var(--good); }
.h-sm { font-size: 1rem; margin-top: 1.2em; }

/* hero */
.hero { background: radial-gradient(circle at 1px 1px, rgba(108,76,230,.18) 1.5px, transparent 0) 0 0 / 22px 22px; border-bottom: 2px solid var(--line); }
.hero-in { max-width: 1160px; margin: 0 auto; padding: 48px 16px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero h1::after { content: ""; display: block; width: 120px; height: 10px; background: var(--lime); border: 2px solid var(--ink); border-radius: 6px; margin-top: 16px; transform: rotate(-2deg); }
.quick { transform: rotate(.6deg); }
.q-out .q-sum { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }

/* steps + cards */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-list li { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.step-n { position: absolute; top: -14px; left: 14px; background: var(--coral); color: #20164a; font: 700 .9rem/1 var(--head); border: 2px solid #20164a; border-radius: 8px; padding: 6px 9px; }
.step-list h3 { margin-top: 10px; }
.cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-sm { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); position: relative; }
.card:nth-child(2n) { transform: rotate(-.6deg); } .card:nth-child(2n+1) { transform: rotate(.5deg); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover { box-shadow: 6px 6px 0 var(--coral); }
.card p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.card-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 2px solid #20164a; color: #20164a; margin-bottom: 10px; background: var(--lime); }
.card-gauge .card-ico { background: var(--coral); } .card-stack .card-ico { background: #b9a8ff; } .card-eye .card-ico { background: var(--sky); }

/* limits table, tables */
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
thead th { background: var(--ink); color: var(--paper); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }

/* X section */
.xbox { background: var(--ink); color: var(--paper); max-width: none; border-top: 3px solid #000; border-bottom: 3px solid #000; }
.xbox a { color: var(--lime); }
.xbox .fine, .xbox .hint { color: #cfc6f5; }
@media (prefers-color-scheme: dark) { .xbox { background: #0d0920; color: #efeaff; } }
.x-grid { max-width: 1128px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.xsearch { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.xsearch a { display: inline-block; font: 500 .95rem var(--mono); border: 2px solid var(--lime); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.xsearch a:hover { background: var(--lime); color: #20164a; }
.xpost { color: var(--ink); }
.xpost a.btn, .xsearch-form a.btn { color: #20164a; }
.xpost .hint { color: var(--muted); }
.xsearch-form input { background: #fbf7ee; color: #20164a; }

/* guide list */
.glist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: g; }
.glist a { display: grid; gap: 4px; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; color: var(--ink); height: 100%; }
.glist a:hover { box-shadow: var(--shadow); color: var(--ink); }
.glist-k { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--violet); }
.glist-t { font: 500 1.02rem/1.3 var(--head); }
.glist-d { font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq details { border: 2px solid var(--line); border-radius: 12px; background: var(--card); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "#"; position: absolute; right: 16px; top: 12px; font: 700 1.1rem var(--head); color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 16px 14px; margin: 0; }

/* documents */
.doc { max-width: 1160px; margin: 0 auto; padding: 28px 16px 48px; }
.doc-narrow { max-width: 820px; }
.doc-head { max-width: 860px; margin-bottom: 18px; }
.meta { color: var(--muted); font-size: .92rem; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.doc-side { position: sticky; top: 16px; align-self: start; font-size: .92rem; }
.side-h { font: 500 .76rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc { padding-left: 1.1em; margin: 0 0 18px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.side-tool { display: grid; gap: 2px; padding: 14px; border: 2px solid #20164a; border-radius: 12px; background: var(--lime); color: #20164a; text-decoration: none; font-weight: 600; box-shadow: 3px 3px 0 #20164a; }
.side-tool span { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.doc-body { max-width: 760px; }
.answer { border: 2px solid var(--line); background: var(--sky); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; }
.answer-k { font: 500 .76rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; color: var(--violet); }
.answer p:last-child { margin: 0; font-size: 1.05rem; }
.takeaways { border: 2px dashed var(--line); border-radius: var(--r); padding: 16px 18px 6px; margin-bottom: 28px; }
.takeaways h2 { font-size: 1.05rem; }
.takeaways ul { padding-left: 1.2em; }
.takeaways li { margin: 4px 0; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 16px; }
.prose h2 + p strong:only-child { display: block; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 5px 0; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--lime); background: var(--card); }
.prose code { background: var(--soft); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.sources ol { padding-left: 1.3em; font-size: .95rem; }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }
.related ul, .plainlist { padding-left: 1.2em; }

/* tool pages */
.tool-head { max-width: 1160px; margin: 0 auto; padding: 28px 16px 8px; }
.tool-wrap { max-width: 1160px; margin: 0 auto; padding: 12px 16px 28px; }
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tool-doc { max-width: 820px; }
.ct-sum { font-weight: 600; margin: 12px 0 0; }
.ct-table tr.st-over { background: rgba(194,50,27,.07); }
.sets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.set { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.set-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.set-tags { font: 500 .9rem/1.5 var(--mono); margin: 8px 0 0; overflow-wrap: anywhere; }
.io { margin-top: 18px; border-top: 2px dashed var(--soft); padding-top: 12px; }
.io summary { cursor: pointer; font-weight: 600; }
.rd-out { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-top: 18px; align-items: start; }
.rd-score { border: 3px solid #20164a; border-radius: 50%; width: 140px; height: 140px; display: grid; place-content: center; text-align: center; background: var(--lime); color: #20164a; box-shadow: var(--shadow); }
.g-ok .rd-score { background: #ffd66b; } .g-bad .rd-score { background: var(--coral); }
.rd-num { font: 700 2.6rem/1 var(--head); }
.rd-grade { font-size: .82rem; font-weight: 600; max-width: 110px; }
.rd-body code { font-size: 1.05rem; }

/* footer */
.foot { background: #20164a; color: #e9e4ff; margin-top: 40px; border-top: 3px solid #000; }
.foot a { color: #e9e4ff; }
.foot a:hover { color: var(--lime); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 36px 16px 12px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-h { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--lime); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; font-size: .93rem; }
.foot .fine { color: #b9b0e6; }
.logo-sm .logo-tile { width: 30px; height: 30px; font-size: 17px; }
.foot-note { max-width: 1160px; margin: 0 auto; padding: 14px 16px 26px; font-size: .85rem; color: #b9b0e6; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .doc-side { position: static; }
  .toc { display: none; }
  .side-h { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-in, .x-grid, .tool-cols, .foot-in { grid-template-columns: 1fr; }
  .step-list, .glist, .cards-sm { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .quick, .card:nth-child(n) { transform: none; }
  .rd-out { grid-template-columns: 1fr; }
  .band { padding: 32px 16px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .logo-word { font-size: 1.1rem; }
  th, td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
