/* WebAssetKit — "print room" look: warm paper, ink, one vermilion accent. System fonts only (fast, no third parties). */
:root {
  --paper: #faf6ee; --paper-2: #f2ecdf; --card: #fffdf8; --ink: #1b1813; --ink-2: #4a443a; --muted: #6a6254;
  --line: #ded5c3; --line-2: #c9bea8; --accent: #b3321a; --accent-ink: #fff; --accent-soft: #f6dcd3;
  --ok: #2b6a3a; --ok-bg: #e3f1e5; --err: #9b1c1c; --err-bg: #fbe4e1; --warn: #7a5200; --warn-bg: #fbefcf;
  --focus: #1a56db; --radius: 10px; --shadow: 0 1px 0 rgba(27,24,19,.06), 0 6px 18px -8px rgba(27,24,19,.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --checker: #e8e1d1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15130f; --paper-2: #1d1a14; --card: #1f1c16; --ink: #f1ebdd; --ink-2: #cfc7b4; --muted: #a79f8c;
    --line: #38332a; --line-2: #4c4538; --accent: #ff8d6e; --accent-ink: #1b0f0a; --accent-soft: #3a211a;
    --ok: #86d29a; --ok-bg: #16301e; --err: #ff9a8f; --err-bg: #3a1a17; --warn: #f2cd6b; --warn-bg: #352a0f;
    --focus: #8ab4ff; --shadow: 0 1px 0 rgba(0,0,0,.4), 0 8px 20px -8px rgba(0,0,0,.6); --checker: #2a261e;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 3rem; }
main:focus { outline: none; }
img, svg, canvas, video { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 1.6em 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw + .8rem, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.4vw + 1rem, 1.8rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--paper-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; }
pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow: auto; }
pre code { background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: .5rem; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.eyebrow { font: 700 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 .7rem; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 46rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

/* header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
.brand b { color: var(--accent); }
.brand-mark { color: var(--ink); }
.site-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; font-weight: 600; }
.site-nav a:hover { border-color: var(--accent); }
.header-search { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.header-search input { border: 0; background: transparent; padding: .45rem .9rem; width: 11rem; color: var(--ink); font: inherit; }
.header-search input:focus-visible { outline-offset: -3px; }
.header-search button { border: 0; background: var(--ink); color: var(--paper); padding: 0 .8rem; cursor: pointer; display: grid; place-items: center; }
.header-search .icon { width: 1.1rem; height: 1.1rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 8px; padding: .35rem .5rem; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; flex-direction: column; width: 100%; margin: 0; gap: .2rem; order: 3; }
  .site-nav.open { display: flex; }
  .header-search { order: 4; width: 100%; } .header-search input { width: 100%; flex: 1; }
}

/* breadcrumbs */
.crumbs { padding-block: 1rem .2rem; font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-2); margin-right: .4rem; }
.crumbs a { color: var(--ink-2); } .crumbs [aria-current] { color: var(--muted); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 8px; padding: .65rem 1.2rem; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; min-height: 2.75rem; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: .35rem .7rem; min-height: 2.1rem; font-size: .9rem; }
.btn .icon { width: 1.15rem; height: 1.15rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.link-btn.danger { color: var(--err); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 8px; padding: .55rem .7rem; width: 100%; min-height: 2.6rem; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--accent); }
input[type=range] { padding: 0; min-height: 0; accent-color: var(--accent); }
input[type=color] { padding: .15rem; height: 2.6rem; width: 3.4rem; cursor: pointer; }
input[type=file] { padding: .5rem; }
textarea { resize: vertical; }
label { font-weight: 600; font-size: .95rem; }
.field { margin-bottom: 1rem; } .field > label { display: block; margin-bottom: .3rem; }
.field.check { display: flex; align-items: center; gap: .6rem; } .field.check label { margin: 0; }
.palette-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; align-items: end; }
@media (max-width: 36rem) { .palette-controls { grid-template-columns: auto minmax(0, 1fr); } .palette-controls .field:last-child { grid-column: 1 / -1; } }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.hint { font-size: .86rem; color: var(--muted); margin: .3rem 0 0; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .4rem; margin: 0 0 1.2rem; min-width: 0; }
legend { font-weight: 700; padding: 0 .4rem; }
.hp { position: absolute; left: -9999px; }
.big-search { display: flex; gap: .6rem; max-width: 40rem; margin: 1.4rem 0; }
.big-search input { border-color: var(--ink); font-size: 1.1rem; padding: .8rem 1rem; }
.notice { border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ink); }
.notice-error { background: var(--err-bg); border-color: var(--err); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn); }

/* hero & home */
.hero { background: linear-gradient(var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; width: 36px; height: 36px; border: 2px solid var(--line-2); border-radius: 50%; top: 18px; }
.hero::before { left: 18px; } .hero::after { right: 18px; }
.hero-inner { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero h1 em { font-style: italic; color: var(--accent); }
.trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--ink-2); font-size: .95rem; }
.trust li { display: inline-flex; gap: .45rem; align-items: center; } .trust .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.tool-group { margin-top: 2.5rem; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; }
.group-head h2 { margin: 0 0 .3rem; } .group-head p { margin: 0 0 .4rem; }
.cards { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; color: inherit; text-decoration: none; height: 100%; position: relative; }
.card-icon { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 9px; background: var(--accent-soft); color: var(--accent); margin-bottom: .3rem; }
.card-title { font: 700 1.12rem/1.25 var(--serif); }
.card-text { color: var(--ink-2); font-size: .94rem; }
.card-go { position: absolute; right: 1rem; top: 1.1rem; color: var(--muted); } .card-go .icon { width: 1.1rem; height: 1.1rem; }
.card-kicker { font: 700 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.card-meta { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: .4rem; }
.card-img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .4rem; }
.cards-articles { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; } .why-grid h3 { margin-top: 0; }
.page-head { padding-top: 1rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.chip { border: 1.5px solid var(--ink); border-radius: 999px; padding: .3rem .85rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.chip[aria-current] { background: var(--ink); color: var(--paper); } .chip[aria-current] .muted { color: inherit; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.link-list { padding-left: 1.2rem; }
.notfound { padding-block: 3rem; }

/* prose */
.prose { max-width: 46rem; margin-inline: auto; padding-block: 1.5rem; }
.prose h2 { margin-top: 2em; }
.prose table { margin: 1rem 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose img { height: auto; border-radius: 8px; }
.prose blockquote { margin: 1.2em 0; padding: .1em 1.1em; border-left: 4px solid var(--accent); background: var(--paper-2); border-radius: 0 8px 8px 0; }
.article-layout { padding-block: 0; }
.article .byline { margin-bottom: 1.2rem; }
.hero-img { width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; border: 1.5px solid var(--line); }
.toc { background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1.5rem 0; }
.toc-h { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .6rem; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; } .toc .toc-3 { margin-left: 1rem; list-style: circle; }
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 5rem; }
.tool-callout { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 2rem 0; background: var(--card); box-shadow: 5px 5px 0 var(--ink); }
.tool-callout h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.tool-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1.5rem 0; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.tool-box strong { font-family: var(--serif); font-size: 1.1rem; }
details.faq { border-bottom: 1px solid var(--line); padding: .8rem 0; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin: .6rem 0 0; color: var(--ink-2); }

/* ads */
.ad-slot { margin: 1.5rem auto; max-width: 970px; min-height: 0; text-align: center; }
.ad-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .25rem; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 3rem; border-top: 4px solid var(--accent); }
.site-footer a { color: var(--paper); opacity: .86; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.2rem; padding-block: 3rem 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font: 700 1.55rem var(--serif); margin: 0 0 .6rem; } .footer-brand b { color: #ff9a7e; }
.footer-tag { max-width: 24rem; opacity: .78; margin: 0 0 1rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-badges li { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .25rem .75rem; font-size: .84rem; margin: 0; }
.footer-badges .icon { width: 1rem; height: 1rem; color: #ff9a7e; }
.footer-h { font: 700 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; margin: .2rem 0 1rem; color: #ff9a7e; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-block: 1.2rem 1.6rem; font-size: .88rem; }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; }
.footer-bottom p { margin: 0; } .copyright { opacity: .92; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; } .footer-legal li { margin: 0; }
.site-footer .link-btn { color: var(--paper); opacity: .86; }
.footer-note { opacity: .6; font-size: .8rem; margin-top: .9rem !important; max-width: 52rem; line-height: 1.5; }

/* consent */
.consent { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; max-width: 42rem; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: 6px 6px 0 var(--ink); }
.consent h2 { margin: 0 0 .3rem; font-size: 1.1rem; } .consent p { margin: 0 0 .8rem; font-size: .93rem; }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ================= tool UI ================= */
.tool-wrap { padding-bottom: 2rem; }
.tool-app { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); padding: clamp(.9rem, 2vw, 1.5rem); box-shadow: 6px 6px 0 var(--ink); margin: 1.5rem 0 2rem; }
.tool-app > .notice:first-child { margin-top: 0; }
.tool-info { max-width: 52rem; }
.tool-info .steps { padding-left: 1.3rem; } .tool-info .steps li { margin-bottom: .45rem; }
.tool-info ul li { margin-bottom: .4rem; }
.limits { border-left: 4px solid var(--warn); padding-left: 1rem; background: var(--warn-bg); border-radius: 0 var(--radius) var(--radius) 0; padding-block: .1rem; margin-top: 1.5rem; }
.limits h2 { margin-top: .8rem; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.panel { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--paper); }
.panel > h3 { margin: 0 0 .7rem; font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dropzone { display: grid; place-items: center; text-align: center; gap: .4rem; min-height: 11rem; padding: 1.5rem; border: 2.5px dashed var(--line-2); border-radius: 14px; background: var(--paper); cursor: pointer; transition: border-color .12s, background .12s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dropzone .icon { width: 2.4rem; height: 2.4rem; color: var(--accent); }
.dropzone strong { font: 700 1.15rem var(--serif); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone.compact { min-height: 7rem; padding: 1rem; }
.status { margin: 1rem 0 0; min-height: 1.5rem; }
.status .notice { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.grow { flex: 1 1 10rem; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--ink); padding: .5rem .9rem; font: 600 .95rem var(--sans); cursor: pointer; min-height: 2.5rem; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; }
.range-row label { grid-column: 1; } .range-row output { font-family: var(--mono); font-weight: 700; }
.range-row input[type=range] { grid-column: 1 / -1; width: 100%; }
.num-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: end; }
.num-row .times { padding-bottom: .6rem; color: var(--muted); }
.lock { background: transparent; border: 1.5px solid var(--line-2); border-radius: 8px; padding: .5rem; cursor: pointer; color: var(--ink); min-height: 2.6rem; font-weight: 700; }
.lock[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.file-table { width: 100%; font-size: .93rem; }
.file-table td, .file-table th { padding: .5rem .5rem; }
.file-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-table .name { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-table .thumb { width: 3.2rem; } .file-table .thumb img { width: 2.8rem; height: 2.8rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0/12px 12px; }
.pill { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font: 700 .8rem var(--sans); border: 1.5px solid currentColor; }
.pill-ok { color: var(--ok); background: var(--ok-bg); } .pill-err { color: var(--err); background: var(--err-bg); } .pill-warn { color: var(--warn); background: var(--warn-bg); } .pill-neutral { color: var(--muted); }
.checker { background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.preview-box { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; min-height: 12rem; padding: .5rem; }
.preview-box img, .preview-box canvas { max-height: 28rem; width: auto; height: auto; display: block; }
.compare { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; background: var(--paper); }
.compare-stage { position: relative; line-height: 0; }
.compare img { display: block; width: 100%; height: auto; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare .after img { height: 100%; object-fit: contain; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: var(--accent); pointer-events: none; }
.compare-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 1rem var(--sans); line-height: 1; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input[type=range]:focus-visible + .compare-handle { outline: 3px solid var(--focus); }
.compare-labels { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; padding: .3rem .6rem; background: var(--paper-2); }
.crop-stage { position: relative; display: inline-block; line-height: 0; max-width: 100%; touch-action: none; user-select: none; }
.crop-stage canvas { max-width: 100%; height: auto; display: block; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5), 0 0 0 1px #000 inset; cursor: move; }
.crop-handle { position: absolute; width: 18px; height: 18px; background: #fff; border: 2px solid #000; border-radius: 50%; margin: -9px 0 0 -9px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat-grid > div { border: 1.5px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; background: var(--paper); }
.stat-grid dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.stat-grid dd { margin: .15rem 0 0; font: 700 1.3rem var(--serif); }
.code-out { position: relative; }
.code-out pre { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 18rem; }
.code-out .btn { margin-top: .5rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .7rem; }
.swatch { border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--card); padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.swatch:hover { border-color: var(--ink); }
.swatch-chip { height: 5rem; display: grid; place-items: end start; padding: .4rem .5rem; font: 700 .8rem var(--mono); }
.swatch-label { padding: .4rem .5rem; font: .82rem var(--mono); word-break: break-all; }
.table-wrap { overflow-x: auto; }
.contrast-sample { border-radius: var(--radius); padding: 1.2rem; border: 1.5px solid var(--line-2); }
.contrast-sample .big { font: 700 1.5rem/1.3 var(--serif); margin: 0 0 .3rem; }
.ratio { font: 700 clamp(2.5rem, 6vw, 3.6rem)/1 var(--serif); }
.stop-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.stop { display: grid; grid-template-columns: auto 1fr 5.5rem auto; gap: .5rem; align-items: center; }
.stop input[type=number] { padding: .4rem; }
.live-preview { min-height: 14rem; border-radius: var(--radius); border: 1.5px solid var(--line-2); display: grid; place-items: center; padding: 1.5rem; }
.shadow-box { width: 11rem; height: 7rem; background: #fff; display: grid; place-items: center; color: #333; font: 600 .9rem var(--sans); }
.radius-box { width: min(100%, 16rem); aspect-ratio: 1; background: var(--accent); }
.hint-list { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }

/* admin shared bits */
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-weight: 700; }
@media print { .site-header, .site-footer, .consent, .ad-slot, .skip-link { display: none !important; } body { background: #fff; color: #000; } }

.h-sm { font: 700 .82rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }

/* ================= design polish ================= */
:root { --cat: #b3321a; }
.cat-image { --cat: #b3321a; } .cat-assets { --cat: #1f5fa8; } .cat-css { --cat: #7a3fb3; }
.cat-text { --cat: #2b7a4b; } .cat-documents { --cat: #b0680f; } .cat-seo { --cat: #0f766e; }
@media (prefers-color-scheme: dark) { .cat-image { --cat: #ff8d6e; } .cat-assets { --cat: #7db4f0; } .cat-css { --cat: #c79bf2; } .cat-text { --cat: #7fd39e; } .cat-documents { --cat: #f0b45a; } .cat-seo { --cat: #5fd3c6; } }
.hero { background: radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), radial-gradient(40rem 22rem at -5% 110%, color-mix(in srgb, #1f5fa8 14%, transparent), transparent 70%), linear-gradient(var(--paper-2), var(--paper)); }
.hero h1 { font-size: clamp(2.2rem, 5vw + .6rem, 3.9rem); max-width: 18ch; letter-spacing: -.02em; }
.hero h1 em { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 28%, transparent) 62%); padding-inline: .1em; }
.hero-cats { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-chip { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: .35rem .9rem; background: var(--card); color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.cat-chip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cat); border-color: var(--cat); }
.cat-chip .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--cat); }
.cat-chip .count { background: var(--paper-2); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; color: var(--muted); }
.btn { box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); filter: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { box-shadow: none; } .btn-ghost:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { box-shadow: none; transform: none; }
.tool-group .group-head { border-bottom: 2px solid var(--ink); position: relative; padding-left: 1rem; }
.tool-group .group-head::before { content: ""; position: absolute; left: 0; top: .2rem; bottom: .55rem; width: 6px; border-radius: 3px; background: var(--cat); }
.tool-card { border-width: 2px; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tool-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cat); border-color: var(--ink); }
.tool-card .card-icon { background: color-mix(in srgb, var(--cat) 15%, var(--card)); color: var(--cat); border: 1.5px solid color-mix(in srgb, var(--cat) 45%, var(--card)); }
.tool-card .card-title { color: var(--ink); }
.card:not(.tool-card) { border-width: 2px; }
.tool-wrap .eyebrow { color: var(--cat, var(--accent)); }
.tool-app { background: linear-gradient(180deg, var(--card), var(--paper)); }
.why-grid > div { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: 4px 4px 0 var(--ink); }
.why-grid h3 { color: var(--accent); }
.tool-info section > h2 { display: flex; align-items: center; gap: .6rem; }
.tool-info section > h2::before { content: ""; width: .5rem; height: 1.3rem; border-radius: 3px; background: var(--accent); flex: none; }
.site-nav a { padding-inline: .1rem; }

/* SEO tool bits */
.serp { background: #fff; color: #202124; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 1rem 1.1rem; font-family: Arial, "Liberation Sans", Helvetica, sans-serif; margin-bottom: 1rem; }
.serp-url { font-size: 14px; line-height: 1.3; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: .15rem 0 .2rem; overflow-wrap: anywhere; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.notes { margin: .6rem 0 1rem; display: grid; gap: .4rem; }
.notes li { border-left: 4px solid var(--warn); background: var(--warn-bg); border-radius: 0 8px 8px 0; padding: .45rem .7rem; font-size: .92rem; }
.notes:empty { display: none; }
.stat-grid dd.bad { color: var(--err); }
.faq-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem; margin-bottom: .8rem; padding: .7rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faq-row textarea { grid-column: 1; } .faq-row button { grid-row: 1 / span 2; grid-column: 2; align-self: start; }
