@font-face { font-family: Literata; font-weight: 400 700; font-style: normal; font-display: swap; src: url('fonts/literata.woff2') format('woff2'); }

:root {
  --paper: #e8ebe6; --card: #f3f5f1; --ink: #14211f; --ink2: #3d4a46; --cloth: #24403a; --edge: #9aa59f; --stamp: #7a2828; --mark: #dfe6df;
  --serif: Literata, Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gut: clamp(1.1rem, 4vw, 5rem); --hh: 4.2rem; --u: 3.4px;
}
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--hh) + 1rem); }
@media (min-width: 80em) { html { font-size: 112.5%; --u: 4.6px; } }
@media (min-width: 120em) { html { font-size: 125%; --u: 6px; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font: 400 1rem/1.62 var(--serif); color: var(--ink); background: var(--paper) url('paper.png'); overflow-wrap: break-word; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
main { flex: 1 0 auto; }
.wrap { width: min(100% - 2 * var(--gut), 112rem); margin-inline: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-skip-ink: none; text-underline-offset: .2em; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 4px; } }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.top :focus-visible, .band :focus-visible, .foot :focus-visible { outline-color: var(--paper); }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 1.1rem + 4.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); max-width: 38rem; color: var(--ink2); }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 50; background: var(--paper); padding: .75rem 1rem; border: 3px solid var(--ink); }
.skip:focus { top: .5rem; }
.ph { font-weight: 600; background: var(--mark); padding: 0 .25em; white-space: nowrap; }
.fact { font-weight: 700; white-space: nowrap; }
.sect { padding-block: clamp(3rem, 6vw, 6rem); }
.sect > .wrap > h2 { margin-bottom: 1.5rem; }

/* header: bookbinder's cloth, sticky; the real height is written to --hh by site.js */
.top { position: sticky; top: 0; z-index: 30; background: var(--cloth) url('cloth.png'); color: var(--paper); border-bottom: 4px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: .4rem 1rem; padding-block: .55rem; flex-wrap: wrap; }
.top a { color: var(--paper); }
.mark { font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; margin-right: auto; line-height: 1.2; }
.top .mail { font-size: .95rem; }
.nav { display: none; gap: 1.6rem; margin-inline: 1rem; }
.nav a { font-size: 1.02rem; }
.nav a[aria-current] { text-decoration-thickness: 4px; }
.menu-btn { font: inherit; font-weight: 600; font-size: .95rem; color: var(--paper); background: transparent; border: 3px solid var(--paper); border-radius: 3px; padding: .3rem .8rem; min-height: 44px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(.97); }
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-bottom: 4px solid var(--ink); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 220ms var(--ease-out), visibility 0s linear 220ms; }
.panel.open { visibility: visible; clip-path: inset(0); transition: clip-path 220ms var(--ease-out), visibility 0s; }
.panel a { display: block; padding: .85rem var(--gut); color: var(--ink); font-size: 1.15rem; font-weight: 600; text-decoration: none; border-top: 2px solid var(--edge); }
.panel a:first-child { border-top: 0; }
@media (min-width: 56em) { .nav { display: flex; } .menu-btn, .panel { display: none; } .top .mail { font-size: 1.02rem; } }
@media (max-width: 23em) { .top .mail { flex-basis: 100%; order: 3; } }

/* buttons: a ledger slip with a solid stamp-block shadow; the face never changes colour */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem; font: 600 1.05rem/1.2 var(--serif); text-decoration: none; color: var(--paper); background: var(--cloth) url('cloth.png'); border: 3px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.btn.alt { color: var(--ink); background: var(--card) url('paper.png'); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; } }
.btn:active { transform: translate(3px, 3px) scale(.985); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.band .btn, .band .btn.alt { border-color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }

/* hero */
.hero { padding-block: clamp(2rem, 4vw, 4.5rem) clamp(2.5rem, 5vw, 5rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 62em) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); } }
.hero h1 { margin-bottom: 1.2rem; }
.hero .fine { margin: 1.6rem 0 0; color: var(--ink2); font-size: .98rem; max-width: 36rem; }
.hero .plate img { width: 100%; height: auto; display: block; box-shadow: 0 .9rem 2rem rgba(20, 33, 31, .35); }
.js .hero .rise { animation: rise 420ms var(--ease-out) both; }
.js .hero .rise:nth-child(2) { animation-delay: 60ms; } .js .hero .rise:nth-child(3) { animation-delay: 120ms; } .js .hero .rise:nth-child(4) { animation-delay: 190ms; }
.js .hero .plate { animation: rise 520ms var(--ease-out) 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* services ledger */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 62em) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: start; } .split > .stick { position: sticky; top: calc(var(--hh) + 1.5rem); } }
.free { background: var(--card) url('paper.png'); border: 3px solid var(--ink); border-radius: 3px; padding: 1.3rem 1.4rem; margin-top: 1.6rem; }
.free h3 { margin-bottom: .6rem; }
.free ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.free li { margin-bottom: .35rem; }
.free p:last-child { margin: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--ink); }
.ledger li { border-bottom: 2px solid var(--ink); }
.ledger a.row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.15rem .4rem; text-decoration: none; color: var(--ink); transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ledger a.row:hover { transform: translateX(6px); } .ledger a.row:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-skip-ink: none; } }
.ledger a.row:active { transform: translateX(2px); }
.ledger .no { font-size: 1.5rem; font-weight: 700; color: var(--cloth); grid-row: span 2; line-height: 1.2; }
.ledger h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.6rem); }
.ledger p { margin: 0; color: var(--ink2); }
.ledger .ask { margin-top: .5rem; font-weight: 600; }
.ledger .ask a { display: inline-block; padding-block: .2rem; }

/* the price band */
.band { background: var(--cloth) url('cloth.png'); color: var(--paper); border-block: 4px solid var(--ink); }
.band h2, .band .lede { color: var(--paper); }
.band .lede { margin-bottom: 2rem; }
.band a:not(.btn) { color: var(--paper); }
.tool { display: grid; gap: 1.5rem; }
@media (min-width: 62em) { .tool { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 3rem); } .tool .share { grid-column: 1 / -1; } }
.slip { background: var(--card) url('paper.png'); color: var(--ink); border: 3px solid var(--ink); border-radius: 3px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); padding: 1.3rem 1.2rem 1.4rem; }
@media (min-width: 62em) { .slip { padding: 1.8rem 2rem 2rem; } }
.slip h3 { margin-bottom: .3rem; }
.slip .sub { color: var(--ink2); margin: 0 0 1rem; font-size: .98rem; }
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .3rem; align-items: end; height: calc(30 * var(--u) + 2.3rem); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.chart button { appearance: none; font: 600 .8rem/1 var(--serif); padding: 0; margin: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; height: calc(var(--r) * var(--u) + 2.3rem); background: transparent; color: var(--ink); border: 0; cursor: inherit; touch-action: pan-y; }
.chart .strip { display: flex; align-items: flex-start; justify-content: center; width: 100%; flex: 1; padding-top: .35rem; background: var(--card) url('paper.png'); border: 3px solid var(--edge); border-radius: 3px 3px 0 0; color: var(--ink2); transition: transform 160ms var(--ease-out); transform-origin: bottom; }
.chart button.on .strip { background: var(--cloth) url('cloth.png'); border-color: var(--ink); color: var(--paper); }
.chart button.on.last .strip { transform: scaleY(1.03); }
.chart .h { padding-top: .45rem; font-size: .82rem; color: var(--ink2); }
.chart button.on .h { color: var(--ink); font-weight: 700; }
@media (max-width: 30em) { .chart { gap: .15rem; } .chart button { font-size: .68rem; } .chart .h { font-size: .7rem; } .chart .strip { border-width: 2px; } }
.range { margin: 1.1rem 0 0; display: flex; align-items: center; gap: 1rem; }
.range input { flex: 1; min-width: 0; height: 44px; accent-color: var(--cloth); }
.range label { font-weight: 600; white-space: nowrap; }
.presets { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pre { font: 600 .98rem/1.2 var(--serif); color: var(--ink); background: var(--paper) url('paper.png'); border: 3px solid var(--edge); border-radius: 3px; padding: .55rem .8rem; min-height: 44px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.pre:active { transform: scale(.97); }
.pre[aria-pressed="true"] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .pre:hover { transform: translateY(-2px); } .chart button:hover .strip { transform: translateY(-3px); } }
.total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.total .n { font-size: clamp(3.2rem, 2.2rem + 4vw, 5.6rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--cloth); }
.total .l { color: var(--ink2); }
.avg { font-size: 1.15rem; margin: .5rem 0 1rem; }
.avg b { font-variant-numeric: tabular-nums lining-nums; }
.parts { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 3px solid var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.parts li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 2px solid var(--edge); }
.parts li[hidden] { display: none; }
.save { margin: 0; color: var(--ink2); font-size: .98rem; }
.static-ex { margin: 1rem 0 0; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
.static-ex th, .static-ex td { text-align: left; padding: .4rem .2rem; border-bottom: 2px solid var(--edge); font-weight: 400; }
.js .static-ex { display: none; }
.share { display: grid; gap: 1.2rem; }
@media (min-width: 62em) { .share { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; } }
.amt { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.amt input { font: 600 1.4rem var(--serif); width: min(10rem, 55%); padding: .5rem .7rem; min-height: 52px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink2); border-radius: 3px; font-variant-numeric: lining-nums; }
.amt label { font-weight: 600; }
.cut { font-size: 1.15rem; margin: 0 0 .6rem; }
.cut b { font-variant-numeric: tabular-nums lining-nums; }
.keep { margin: .8rem 0 0; padding: .9rem 1rem; background: var(--mark); border-radius: 3px; }
.keep b { font-variant-numeric: tabular-nums lining-nums; }
.notes { margin: 1.2rem 0 0; padding: 0; list-style: none; color: var(--ink2); font-size: .98rem; }
.notes li { margin-bottom: .4rem; }

/* how it goes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; } }
.steps li { counter-increment: s; position: relative; background: var(--card) url('paper.png'); border: 3px solid var(--edge); border-radius: 3px; padding: 3.3rem 1.1rem 1.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; color: var(--paper); background: var(--cloth); border-bottom-right-radius: 3px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { margin: 0; font-size: .98rem; color: var(--ink2); }
.limit { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 48em) { .limit { grid-template-columns: 1fr 1fr; } }
.limit > div { padding: 1.2rem 1.4rem; border: 3px solid var(--ink); border-radius: 3px; background: var(--card) url('paper.png'); }
.limit h3 { margin-bottom: .4rem; }
.limit p { margin: 0; }

/* closing call, footer */
.close { text-align: left; }
.close .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 62em) { .close .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.foot { background: var(--cloth) url('cloth.png'); color: var(--paper); border-top: 4px solid var(--ink); padding-block: 2.2rem; }
.foot a { color: var(--paper); }
.foot .wrap { display: grid; gap: 1.6rem; }
@media (min-width: 62em) { .foot .wrap { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4rem; align-items: start; } }
.foot .mark { display: inline-block; margin: 0 0 .5rem; }
.foot p { margin: 0 0 .3rem; font-size: .98rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.foot nav a { padding-block: .3rem; }
.foot .seal { width: 5rem; height: 5rem; display: block; }

/* intake */
.crumb { padding-block: 1.4rem 0; color: var(--ink2); font-size: .98rem; }
.intake { padding-block: 1.2rem 4rem; }
.intake .wrap { display: grid; gap: 2rem; }
@media (min-width: 62em) { .intake .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; } }
.intake h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); margin-bottom: 1.2rem; }
.prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.6rem; padding: 0; list-style: none; }
.prog li { margin: 0; }
.prog button { appearance: none; width: 100%; text-align: left; font: 600 .9rem/1.25 var(--serif); color: var(--ink2); background: none; border: 0; border-top: 8px solid var(--edge); padding: .5rem 0 0; min-height: 44px; cursor: pointer; }
.prog .done button, .prog .now button { border-top-color: var(--cloth); color: var(--ink); }
.prog .now button { border-top-color: var(--ink); }
@media (max-width: 30em) { .prog button { font-size: .8rem; } }
.js .step { display: none; }
.js .step.now { display: block; animation: stepin 220ms var(--ease-out) both; }
@keyframes stepin { from { opacity: 0; transform: translateX(10px); } }
fieldset.step { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
fieldset.step > legend { padding: 0; font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; margin-bottom: 1rem; }
.nojs-h { margin: 1.6rem 0 .6rem; }
.js .nojs-h { display: none; }
.tiles { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-bottom: 1.4rem; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: block; cursor: pointer; transition: transform 160ms var(--ease-out); }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile .face { display: block; height: 100%; padding: .95rem 1rem; min-height: 56px; background: var(--card) url('paper.png'); border: 3px solid var(--edge); border-radius: 3px; }
.tile b { display: block; font-size: 1.08rem; line-height: 1.25; }
.tile small { display: block; margin-top: .2rem; color: var(--ink2); font-size: .9rem; line-height: 1.35; }
.tile:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-2px); } }
.tile input:checked + .face { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tile input:checked + .face::after { content: ''; position: absolute; right: 0; top: 0; width: 1.6rem; height: 1.6rem; background: linear-gradient(225deg, var(--paper) 50%, var(--cloth) 50%); }
.tile input:focus-visible + .face { outline: 3px solid var(--ink); outline-offset: 3px; }
.field { margin-bottom: 1.1rem; }
.field label, .lab { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--ink2); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea { width: 100%; font: 400 1.1rem var(--serif); padding: .7rem .8rem; min-height: 52px; color: var(--ink); background: var(--card); border: 3px solid var(--ink2); border-radius: 3px; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
details.fold { margin-bottom: 1rem; border: 3px solid var(--edge); border-radius: 3px; background: var(--card); }
details.fold summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; min-height: 48px; }
details.fold > div { padding: 0 1rem 1rem; }
.acts { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; align-items: center; }
.js .acts .nojs { display: none; }
.nojs-note { margin: 1rem 0 0; }
.js .nojs-note { display: none; }
.summary { margin: 0 0 1.4rem; display: grid; gap: .3rem 1rem; grid-template-columns: max-content 1fr; padding: 1rem 1.2rem; background: var(--card) url('paper.png'); border: 3px solid var(--ink); border-radius: 3px; }
.summary dt { color: var(--ink2); }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rules { margin: 0 0 1.4rem; padding: 1.1rem 1.2rem; background: var(--mark); border: 3px solid var(--ink); border-radius: 3px; }
.rules h3 { margin-bottom: .6rem; }
.rules ul { margin: 0; padding-left: 1.2rem; }
.rules li { margin-bottom: .35rem; }
.check { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; cursor: pointer; }
.check input { flex: none; width: 1.7rem; height: 1.7rem; margin: .1rem 0 0; accent-color: var(--cloth); cursor: pointer; }
.check span { min-width: 0; }
.side { padding: 1.3rem 1.4rem; background: var(--card) url('paper.png'); border: 3px solid var(--ink); border-radius: 3px; }
@media (min-width: 62em) { .side { position: sticky; top: calc(var(--hh) + 1.5rem); } }
.side h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.side .big { display: block; font-size: 1.35rem; font-weight: 700; margin: .2rem 0 .9rem; overflow-wrap: anywhere; }
.side ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.done-card { padding: 1.6rem; background: var(--card) url('paper.png'); border: 3px solid var(--ink); border-radius: 3px; animation: stepin 300ms var(--ease-out) both; }
.done-card img { width: 9rem; height: 9rem; display: block; margin-bottom: 1rem; animation: settle 420ms var(--ease-out) both; }
@keyframes settle { from { opacity: 0; transform: scale(.94) rotate(-6deg); } }
[hidden] { display: none !important; }

/* service page */
.svc { padding-block: 1.6rem 3rem; }
.svc .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 62em) { .svc .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; } }
.svc h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem); margin-bottom: 1.1rem; }
.svc h2 { margin: 3rem 0 1rem; }
.letter { display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .letter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.sheet { position: relative; padding: 1.8rem 1.6rem 6rem; background: #f6f7f3 url('paper.png'); color: var(--ink); box-shadow: 0 .8rem 1.8rem rgba(20, 33, 31, .3); border-radius: 2px; min-height: 21rem; }
.sheet h3 { font-size: 1.25rem; }
.sheet p { margin: .6rem 0; font-size: .98rem; }
.sheet .rq { transition: opacity 180ms var(--ease-out); }
.sheet .seal { position: absolute; right: 1rem; bottom: 1rem; width: 4.5rem; height: 4.5rem; }
.sheet.swap .rq { opacity: 0; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: c; }
.chain li { counter-increment: c; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; }
.chain li::before { content: counter(c); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; font-weight: 700; color: var(--paper); background: var(--cloth); border-radius: 3px; }
.chain p { margin: 0; }
details.q { border-top: 4px solid var(--ink); }
details.q:last-of-type { border-bottom: 4px solid var(--ink); }
details.q summary { cursor: pointer; padding: 1rem .2rem; font-weight: 600; font-size: 1.1rem; min-height: 48px; }
details.q p { padding: 0 .2rem 1rem; margin: 0; }
.mini { margin-top: 1.6rem; }
.mini .tool { display: block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
.ph { color: var(--ink); }
.menu-btn { display: none; } .js .menu-btn { display: inline-block; } @media (min-width: 56em) { .js .menu-btn { display: none; } }
html:not(.js) [data-next], html:not(.js) [data-back], html:not(.js) .prog { display: none; }
.crumb { padding-block: 1.4rem 0; }
.svc .side .btn { width: 100%; }
.ph { white-space: normal; }
.tool, .split, .hero .wrap, .intake .wrap, .svc .wrap, .share, .limit, .letter, .close .wrap, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62em) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); } .tool { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .share { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .intake .wrap, .svc .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } .close .wrap { grid-template-columns: minmax(0, 1fr) auto; } .foot .wrap { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (min-width: 48em) { .limit { grid-template-columns: 1fr 1fr; } .letter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
/* no JS: the tool is its static example list; the nav is a plain row; steps hide their JS-only controls */
html:not(.js) .chart, html:not(.js) .hint, html:not(.js) .range, html:not(.js) .presets, html:not(.js) .total, html:not(.js) .avg, html:not(.js) .parts, html:not(.js) [data-flat], html:not(.js) .amt, html:not(.js) .cut, html:not(.js) .keep { display: none; }
html:not(.js) .nav { display: flex; flex-wrap: wrap; flex-basis: 100%; order: 4; margin: 0; gap: .2rem 1.3rem; }
.tel { display: none; font-size: .95rem; white-space: nowrap; }
@media (min-width: 62em) { .tel { display: inline; } }
.tel-p { display: block; padding: .85rem var(--gut); border-top: 2px solid var(--edge); color: var(--ink2); }
.prog button b { display: block; font-size: 1.1rem; }
.sheet .seal { width: 5.5rem; height: 5.5rem; }
/* a hero fits under the sticky header at every desktop size */
@media (min-width: 62em) {
  .hero h1 { font-size: clamp(2.2rem, min(1.1rem + 4.2vw, 9vh), 4.6rem); }
  .hero { padding-block: clamp(1rem, 3vh, 4.5rem) clamp(1.2rem, 4vh, 5rem); }
  .hero .plate img { max-height: calc(100dvh - var(--hh) - 4.5rem); object-fit: cover; }
}
.btn { white-space: normal; text-align: center; }
