@font-face{font-family:"Antic Didone";src:url("/fonts/anticdidone-v17-RWmPoKKX6u8sp8fIWdnDKqDSroEHJmNjCg.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Albert Sans";src:url("/fonts/albertsans-v4-i7dOIFdwYjGaAMFtZd_QA1ZbYFeQGQyU.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  --ground:#F3EEE4; --ink:#1D1B18; --mute:#5c564c;
  --mix:#8f8a4a; --on-mix:#1D1B18;
  --a:#C58F2E; --b:#1B3552;
  --serif:"Antic Didone","Bodoni Moda",Georgia,serif;
  --sans:"Albert Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box;margin:0}
html{background:var(--ground)}
body{background:var(--ground);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.page{min-height:100svh;display:flex;flex-direction:column;padding:0 clamp(16px,3.2vw,48px)}
.top{display:flex;justify-content:space-between;align-items:center;height:56px}
.brand,.nav{color:var(--ink);text-decoration:none;font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;display:inline-flex;align-items:center;min-height:44px}
.nav{font-weight:500;border-bottom:1px solid transparent}
.nav:hover{border-bottom-color:var(--ink)}
a:focus-visible,button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.hero{flex:1;display:flex;flex-direction:column;padding-bottom:clamp(16px,2.4vw,32px)}
h1{font-family:var(--serif);font-weight:400;font-size:7vw;line-height:1;letter-spacing:-.01em;margin-top:clamp(4px,1vw,16px)}
.lede{margin-top:clamp(10px,1.2vw,18px);font-size:clamp(1rem,1.25vw,1.2rem);max-width:46ch;color:var(--mute)}

/* The swatch is a flat colour clipped by a torn-edge mask, with a fixed grain image over it. Both images are drawn once
   and cached, so dragging repaints only the colour (the old live SVG filter redrew on every move and stuttered). */
.swatch{flex:none;height:clamp(230px,calc(100svh - 540px),640px);width:100%;display:block;margin-top:clamp(14px,2vw,28px);position:relative;background:var(--mix);-webkit-mask:url(shape.svg) 0 0/100% 100% no-repeat;mask:url(shape.svg) 0 0/100% 100% no-repeat}
/* The grain sits on its own GPU layer: without will-change, every colour change re-rasterised texture.svg's noise filters
   (frames up to 74 ms in Chrome, 17 November 2026); with it, the drag holds 9 ms frames. */
.swatch::after{content:"";position:absolute;inset:0;background:url(texture.svg) 0 0/100% 100% no-repeat;will-change:transform}

.mixer{margin-top:clamp(10px,1.4vw,20px)}
.strip{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:clamp(8px,1.4vw,20px)}
.pile{display:block;width:44px;height:30px;align-self:center}
.pile-a{background:radial-gradient(ellipse at 50% 100%,#e0ac52 0,var(--a) 45%,#8c5f14 100%);clip-path:polygon(0 100%,18% 62%,34% 40%,50% 12%,63% 36%,80% 58%,100% 100%)}
.pile-b{background:radial-gradient(ellipse at 50% 100%,#3d5f86 0,var(--b) 45%,#0e1f33 100%);clip-path:polygon(0 100%,14% 66%,30% 44%,47% 16%,66% 40%,84% 64%,100% 100%)}

.track{position:relative;height:44px;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}
.track.dragging{cursor:grabbing}
.track::before{content:"";position:absolute;left:0;right:0;top:50%;height:10px;transform:translateY(-50%);background:linear-gradient(90deg,var(--ramp,var(--a),var(--b)));border-radius:1px}
.ticks{position:absolute;inset:0 22px;pointer-events:none}
.ticks i{position:absolute;top:50%;width:1px;height:20px;margin-top:-10px;background:var(--ink);opacity:.38}
input[type=range]{position:absolute;inset:0;width:100%;height:44px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;pointer-events:none}
/* The range takes no mouse or touch: the browser's own drag fought the script and flung the marker to an end on release.
   .track handles the pointer (app.js); the range stays for the keyboard and screen readers. */
input[type=range]:focus{outline:none}
input[type=range]::-webkit-slider-runnable-track{height:44px;background:transparent}
input[type=range]::-moz-range-track{height:44px;background:transparent}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:44px;height:44px;border:2px solid var(--ink);border-radius:50%;background:var(--mix);box-shadow:inset 0 0 0 4px var(--ground)}
input[type=range]::-moz-range-thumb{width:40px;height:40px;border:2px solid var(--ink);border-radius:50%;background:var(--mix);box-shadow:inset 0 0 0 4px var(--ground)}
input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--ink);outline-offset:3px}
input[type=range]:focus-visible::-moz-range-thumb{outline:2px solid var(--ink);outline-offset:3px}

.pigments{display:flex;justify-content:space-between;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin-top:2px}

.result{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;flex-wrap:wrap;margin-top:clamp(14px,2vw,26px);padding-top:clamp(14px,1.8vw,22px);border-top:1px solid rgba(29,27,24,.22)}
.name{font-family:var(--serif);font-size:clamp(2rem,3.4vw,3.2rem);line-height:1}
.recipe{margin-top:6px;font-size:1rem;color:var(--mute);font-variant-numeric:tabular-nums}
.order{font:600 1rem/1.2 var(--sans);letter-spacing:.02em;min-height:56px;padding:0 28px;border:0;border-radius:3px;cursor:pointer;background:var(--mix);color:var(--on-mix)}
.order:hover{filter:brightness(.94)}

@media (max-width:700px){
  h1{font-size:11vw}
  .swatch{height:clamp(240px,34svh,340px)}
  .result{flex-direction:column;align-items:stretch}
  .order{width:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
