:root{--accent:#354e46;--paper:#f3f2e8;--tint:#d0dfb4;--ink:#1d302c}

*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:1rem}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 'Helvetica Neue',Arial,sans-serif}a{color:var(--accent);text-underline-offset:.18em}button,input,textarea,select{font:inherit}input,select,textarea{min-width:0;width:100%;padding:.66rem .75rem;color:var(--ink);background:#fffefb;border:1px solid #9eaa9d;border-radius:5px}textarea{resize:vertical;font:0.94rem/1.65 ui-monospace,monospace}label{display:block;font-weight:650;font-size:.91rem}label input,label select,label textarea{display:block;margin-top:.3rem}small{display:block;color:#49514a;line-height:1.4}.wrap{max-width:1170px;margin:auto;padding:0 clamp(1rem,4vw,3.2rem)}header{border-bottom:1px solid color-mix(in srgb,var(--accent) 32%,transparent)}.head{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:74px}.brand{display:inline-flex;align-items:center;gap:.55rem;color:var(--ink);font-family:Georgia,serif;font-weight:700;font-size:clamp(1.05rem,2.3vw,1.5rem);text-decoration:none;letter-spacing:-.04em}.brand:before{content:'';width:34px;height:34px;background:url(assets/favicon.svg) center / contain no-repeat;flex-shrink:0}nav{display:flex;gap:clamp(.6rem,2vw,1.5rem);align-items:center}nav a{font-size:.88rem;font-weight:650;color:var(--ink);text-decoration:none}nav a:hover,.card a:hover{text-decoration:underline}.hero{display:grid;grid-template-columns:1.06fr 1fr;align-items:center;gap:clamp(2rem,5vw,5rem);padding-block:clamp(2.5rem,6vw,5rem)}.hero h1,.article h1{font-size:clamp(2.7rem,6.6vw,5.85rem);max-width:13ch;letter-spacing:-.065em;line-height:.98;margin:.6rem 0 1rem;font-family:Georgia,serif;font-weight:500}.kicker{font:700 .72rem/1.4 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--accent)}.hero p,.lede{font-size:clamp(1rem,1.6vw,1.17rem);max-width:46ch}.hero img{display:block;object-fit:cover;width:100%;height:clamp(250px,29vw,365px);border-radius:18px}.cta,button{display:inline-block;align-self:flex-start;background:var(--accent);color:#fff;border:1px solid var(--accent);text-decoration:none;font-weight:650;border-radius:5px;font-size:.9rem;padding:.65rem 1rem;cursor:pointer}.cta{margin-top:.55rem}.cta:hover,button:hover{filter:brightness(.9)}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #3679b4;outline-offset:3px}.bench{display:grid;grid-template-columns:1.08fr 1fr;gap:clamp(1rem,3vw,2rem);align-items:start}.form,.result{min-width:0;background:#fffcf6;border:1px solid color-mix(in srgb,var(--accent) 34%,white);padding:clamp(1.1rem,3vw,2.2rem);border-radius:14px}.result{background:var(--tint)}.result h2,.form h2,.guides h2,.article h2{font:500 clamp(1.5rem,3vw,2rem)/1.14 Georgia,serif;letter-spacing:-.035em;margin:0 0 .65rem}.form p,.result p{margin:.45rem 0 1rem}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.86rem;margin:1.1rem 0}.fields>div>label{height:100%}.actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.1rem}.actions button+button{background:transparent;color:var(--accent)}.metric{font:500 clamp(2.35rem,5vw,3.55rem)/1.05 Georgia,serif;letter-spacing:-.055em;margin:.4rem 0}.scroll{max-width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.91rem;margin:.6rem 0 1rem;line-height:1.45}th,td{padding:.5rem .55rem;border-bottom:1px solid #0002;vertical-align:top}th{font-weight:700}th:first-child,td:first-child{padding-left:0}.guides{padding-block:clamp(3rem,7vw,5rem)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;margin-top:1.3rem}.card{padding-top:1rem;border-top:3px solid var(--accent)}.card a{font:600 1.15rem/1.25 Georgia,serif;color:var(--ink);text-decoration:none}.card p{font-size:.95rem;line-height:1.5;margin:.55rem 0}.article{max-width:790px;padding-block:clamp(2rem,6vw,4.5rem);margin:auto}.article h1{font-size:clamp(2.4rem,6vw,4rem);max-width:20ch}.article .lede{max-width:60ch;margin-bottom:2.4rem}.article h2{margin:2rem 0 .7rem}.article p{max-width:73ch}.article table{background:#ffffff70}footer{border-top:1px solid #0002}.foot{padding-block:1.6rem;display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap}footer a{font-size:.9rem}.warn{font-weight:650}.tag{display:inline-block;font:700 .74rem/1.2 ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}.result h3{font:600 1.12rem/1.3 Georgia,serif;margin:1.3rem 0 .4rem}.print-only{display:none}.figure{max-width:100%;width:100%;height:auto;display:block}.palette{display:flex;flex-wrap:wrap;gap:.45rem}.swatch{display:inline-block;width:1em;height:1em;border:1px solid #0004;vertical-align:-.08em;margin-right:.33em}.orderline{padding:.65rem 0;border-top:1px solid #0003}.orderline strong{display:block}.strip{display:flex;height:27px;background:#fff;overflow:hidden;border:1px solid #0004;margin:.65rem 0}.strip i{height:100%;background:var(--accent);border-right:1px solid white}.strip i:last-child{background:#c58051}.ruler{max-height:250px;overflow:auto}.tank-picture{display:block;width:100%;height:90px;margin:0 0 1rem}.sample-note{font-size:.87rem}.pattern-preview{background:white;border:1px solid #0003;display:block;width:100%;max-height:420px;object-fit:contain}.legend-row{font:500 .84rem/1.5 ui-monospace,monospace;padding:.2rem .48rem;background:#fff9;border-radius:3px}.skip{position:absolute;left:-5000px}.skip:focus{left:1rem;top:.5rem;background:white;padding:.5rem;z-index:2}
body.pizza .hero img{border-radius:46% 46% 8% 8%}body.pizza .hero h1{font-weight:700}body.pizza .result{border:1px dashed var(--accent);border-radius:4px}body.tile .hero h1,body.tile .article h1{font-family:Arial,sans-serif;font-weight:750;letter-spacing:-.075em}body.tile .hero img,body.tile .form,body.tile .result{border-radius:0}body.tile .result{background-image:linear-gradient(#47652a0a 1px,transparent 1px),linear-gradient(90deg,#47652a0a 1px,transparent 1px);background-size:16px 16px}body.aquarium .hero img{border-radius:80px 14px 80px 14px}body.aquarium header{background:#e2eee2}body.stitch .hero img{border-radius:110px 110px 8px 8px}body.stitch .hero h1{font-style:italic}body.stitch .result{border-style:dashed}
@media(max-width:740px){.hero{grid-template-columns:1fr .85fr;gap:1rem}.hero img{height:220px}.bench{grid-template-columns:1fr}.cards{grid-template-columns:1fr;gap:1rem}.head{min-height:60px}.cards .card{border-top-width:1px}.hero h1{font-size:clamp(2.35rem,7vw,3.4rem)}}
@media(max-width:490px){.hero{grid-template-columns:1fr;padding-block:1.65rem;gap:1.25rem}.hero h1{font-size:3.15rem}.hero img{height:150px!important;border-radius:7px!important}.hero p{margin-bottom:.4rem}.head nav a:first-child{display:none}.fields{gap:.65rem}.brand:before{width:29px;height:29px}.form,.result{padding:1.1rem}.cards{gap:.75rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{body{color:#111;background:white;font:11pt/1.35 Arial,sans-serif}.head,.hero,.guides,.form,footer,.skip,.actions,.no-print{display:none!important}.wrap,.bench{display:block;padding:0;max-width:none}.result{background:white!important;border:0!important;padding:0}.print-only{display:block}.ruler,.scroll{max-height:none;overflow:visible}.slip{break-inside:avoid;border-top:1px dashed #777;padding:1em 0}.pattern-preview{max-height:none}.swatch{print-color-adjust:exact}tr{break-inside:avoid}}

footer .publisher-links {
  display: inline-flex; flex-flow: row wrap; align-items: baseline;
  max-width: 100%; gap: .2rem .85rem; vertical-align: baseline;
}
footer .publisher-links a { display: inline-block; margin: 0; padding: .35rem 0; }
