/* Gioielleria Skerlavai — il banco di misura.
   A plate coated in layout blue (the dye a goldsmith scribes on), steel rules along two edges, brass instruments,
   a white jeweller's tag for the service and a kraft job envelope for the request. */
:root {
  --plate: #132A5E; --plate-d: #0D1F4A; --plate-l: #1D3B7E;
  --scribe: #DFE8F8; --scribe-2: #A9B8D6; --hair: rgba(223, 232, 248, .18);
  --steel: #EDF1F8; --steel-d: #B9C5DB;
  --brass: #E2B04A; --brass-h: #F8E2A6; --brass-d: #84601A;
  --paper: #F3F1EA; --ink: #121B33; --ink-2: #4A546E; --line: #D8D4C8;
  --kraft: #D6B88A; --kraft-d: #C2A271; --kink: #2B2014;
  --red: #B8341A; --red-p: #FFA590;
  --disp: 'Gloock', 'Times New Roman', serif; --sans: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.87, 0, .13, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plate-d); color: var(--scribe); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--plate-d); }
:focus-visible { outline: 2px solid var(--brass-h); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.caps { font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; }

/* ---------- the bench ---------- */
.bench { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: 28px; padding: 12px 22px 0; background: var(--plate-d); }
.brand { align-self: center; padding-bottom: 10px; line-height: 0; }
.brand img { display: block; height: 46px; width: auto; }
.tools { display: flex; align-items: flex-end; gap: 2px; min-width: 0; }
.tools button { display: flex; align-items: center; gap: 8px; padding: 11px 13px 12px; border: 0; border-radius: 3px 3px 0 0; background: transparent; color: var(--scribe-2); font: 600 11px/1 var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; transition: color .3s var(--ease), background-color .3s var(--ease); }
.tools svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tools button:hover { color: var(--scribe); }
.tools button[aria-selected="true"] { background: var(--steel); color: var(--plate-d); }
.tools button:focus-visible { outline-offset: -3px; }
.side { display: flex; align-items: center; gap: 16px; padding-bottom: 9px; }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: transparent; padding: 8px 6px; color: var(--scribe-2); font: 600 11px/1 var(--sans); font-stretch: 116%; letter-spacing: .13em; border-bottom: 2px solid transparent; }
.lang button[aria-pressed="true"] { color: var(--scribe); border-bottom-color: var(--brass); }
.envbtn { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 3px; padding: 9px 10px 9px 13px; background: var(--kraft); color: var(--kink); font: 700 11px/1 var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; transition: background-color .3s var(--ease), transform .4s var(--ease); }
.envbtn b { min-width: 20px; height: 20px; border-radius: 2px; background: var(--kink); color: var(--kraft); display: grid; place-items: center; font: 700 11px/1 var(--sans); letter-spacing: 0; }
.envbtn:hover { background: #E3C89C; }
.envbtn.has b { background: var(--red); color: #fff; }

.work { display: grid; grid-template-columns: minmax(0, 1fr) 424px; min-height: 0; }
.plate { position: relative; min-width: 0; display: flex; flex-direction: column;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    radial-gradient(1100px 760px at 26% 12%, var(--plate-l) 0%, var(--plate) 52%, var(--plate-d) 100%); }
.stagebox { position: relative; flex: 1 1 auto; min-height: 420px; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }

/* scribed drawing */
#stage text { font-family: var(--sans); }
.g10 { fill: none; stroke: rgba(223, 232, 248, .14); stroke-width: 1; }
.g5 { fill: none; stroke: rgba(223, 232, 248, .06); stroke-width: 1; }
.rb { fill: url(#gSteel); } .rbx { fill: url(#gSteelX); } .rc { fill: #C9D3E6; }
.re { fill: none; stroke: rgba(13, 31, 74, .55); stroke-width: 1; }
.rt { fill: none; stroke: var(--plate-d); stroke-width: 1; } .rt.mn { stroke-opacity: .5; }
.rn { font: 600 11px var(--sans); font-stretch: 84%; fill: var(--plate-d); }
.rz { fill: var(--red); }
.sc { fill: none; stroke: var(--scribe); stroke-width: 1.6; }
.reg { fill: none; stroke: var(--red-p); stroke-width: 1.2; }
.axis { fill: none; stroke: rgba(223, 232, 248, .4); stroke-width: 1; stroke-dasharray: 2 5; }
.cap { font: 500 12px var(--sans); letter-spacing: .03em; fill: var(--scribe-2); }
.cap.warn { fill: var(--red-p); font-weight: 600; }
.dim line, .dim path { fill: none; stroke: var(--brass-h); stroke-width: 1; }
.dim text, .dimt { font: 600 13px var(--sans); fill: var(--brass-h); letter-spacing: .02em; }
.ext, .proj { fill: none; stroke: var(--red-p); stroke-width: 1; stroke-dasharray: 3 3; }
.stem { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.card { fill: rgba(223, 232, 248, .07); }
.cardd rect, .cardd path { fill: none; stroke: rgba(223, 232, 248, .3); stroke-width: 1.2; }
.cardd path { stroke-width: 3; stroke-linecap: round; }
.band { fill: url(#gBrass); }
.bore { fill: var(--plate-d); }
.mand, .beam, .stop { fill: url(#gBrass); stroke: #6C4E12; stroke-width: 1; }
.mt { fill: none; stroke: #4A3508; stroke-width: 1; }
.mn { font: 600 10.5px var(--sans); font-stretch: 84%; fill: #3A2A06; }
.slice { fill: url(#gSteelX); stroke: var(--plate-d); stroke-width: 1; }
.flag { font: 400 19px var(--disp); fill: var(--scribe); }
.bl { fill: none; stroke: var(--scribe-2); stroke-width: 1; }
.tick { fill: none; stroke: var(--scribe-2); stroke-width: 1; }
.usual { cursor: pointer; } .usual path { fill: none; stroke: var(--brass-h); stroke-width: 1; stroke-dasharray: 2 3; } .usual text { font: 400 19px var(--disp); fill: var(--brass-h); } .usual.on path { stroke-dasharray: none; stroke-width: 1.5; } .usual:hover text, .usual:focus-visible text { fill: #fff; }
.thread { fill: none; stroke: rgba(223, 232, 248, .5); stroke-width: 1; }
.pearl { fill: url(#gPearl); }
.chain { fill: none; stroke: var(--brass); stroke-width: 3.4; stroke-dasharray: 6 2.6; stroke-linecap: round; }
.chain-u { fill: none; stroke: var(--brass-d); stroke-width: 1.2; }
.jaw, .jawp, .cur { fill: url(#gSteel); stroke: var(--plate-d); stroke-width: 1; }
.idx { stroke: var(--red); stroke-width: 1.5; }
.brk { fill: none; stroke: var(--red-p); stroke-width: 1.5; }
.bar { fill: var(--steel); }
.leather { fill: #5A3826; stroke: #2C190F; stroke-width: 1; }
.stitch { fill: none; stroke: #E6D3AE; stroke-width: 1; stroke-dasharray: 4 3; }
.hole { fill: #2C190F; }
.um { fill: var(--brass-h); }
.photo { fill: rgba(223, 232, 248, .06); }
.ghost { font-family: var(--disp); fill: none; stroke: rgba(223, 232, 248, .34); stroke-width: 1; }
#stage .ghost { font-family: var(--disp); } .ghost.big { stroke: rgba(223, 232, 248, .2); pointer-events: none; }
.preset { cursor: pointer; } .preset rect { fill: transparent; stroke: rgba(248, 226, 166, .6); stroke-width: 1; stroke-dasharray: 5 4; } .preset text { font: 600 11px var(--sans); fill: var(--brass-h); letter-spacing: .06em; } .preset:hover rect, .preset:focus-visible rect { stroke: #fff; }
.obj.gold { fill: url(#gGold); } .obj.silver { fill: url(#gSilver); } .obj { stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.etx { fill: #3B2A08; font-stretch: 100%; } .silver + .etx { fill: #2A3042; } .etx.over { fill: var(--red); }
/* handles */
.h { cursor: grab; outline: none; touch-action: none; }
.h .hit, .usual .hit { fill: transparent; }
.h .kn { fill: url(#gKnob); stroke: #4E380B; stroke-width: 1; transition: stroke .2s var(--ease); }
.h .kd { fill: var(--plate-d); }
.h:hover .kn, .h:focus-visible .kn { stroke: #fff; stroke-width: 2; }
.h:focus-visible .hit { fill: rgba(255, 255, 255, .07); stroke: var(--scribe); stroke-width: 1; stroke-dasharray: 3 3; }
.h .halo { fill: none; stroke: var(--brass-h); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease) infinite; }
html.touched .h .halo { animation: none; }
html.dragging, html.dragging .h { cursor: grabbing; }
.ph { stroke: var(--red); stroke-width: 1.5; }

/* notes scribed in the corner of the plate */
.info { position: absolute; right: 22px; bottom: 18px; width: 336px; padding: 14px 16px 14px 18px; background: rgba(13, 31, 74, .78); border-left: 2px solid var(--brass); pointer-events: none; }
.how { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: how; font-size: 13px; line-height: 1.45; }
.how li { counter-increment: how; display: grid; grid-template-columns: 22px minmax(0, 1fr); margin-bottom: 6px; }
.how li::before { content: counter(how); font: 400 17px/1.1 var(--disp); color: var(--brass-h); }
.honest { margin: 0; font-weight: 600; font-size: 12.5px; line-height: 1.4; color: var(--brass-h); }
.calstat { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--scribe-2); }
.calstat button { pointer-events: auto; border: 0; background: none; padding: 0 0 0 4px; color: var(--scribe); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.plate[data-tool="list"] .info { position: static; width: auto; margin: 0 40px 28px 76px; background: none; padding: 0 0 0 16px; }
.plate[data-tool="cal"] .calstat button { display: none; }
.calsave { display: none; width: 100%; margin-top: 12px; pointer-events: auto; }

/* ---------- the reading ---------- */
.read { background: var(--plate-d); border-left: 1px solid var(--hair); min-width: 0; }
.xy { margin: 0; height: 30px; padding: 0 26px; background: linear-gradient(var(--steel), var(--steel-d)); color: var(--plate-d); font: 600 10.5px/30px var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; overflow: hidden; border-bottom: 1px solid rgba(13, 31, 74, .55); }
.read-in { padding: 22px 26px 28px; }
.r-k { margin: 0 0 6px; font: 600 11px/1.2 var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-h); display: flex; align-items: center; gap: 12px; }
.r-k::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.r-val { overflow: hidden; }
.r-val .n { display: block; font: 400 124px/.9 var(--disp); letter-spacing: 0; color: #fff; white-space: nowrap; padding-top: 4px; }
.r-val .n.lg { font-size: 88px; } .r-val .n.md { font-size: 55px; line-height: 1.05; }
.r-val .n a { text-decoration: none; }
.r-val .u { display: block; margin-top: 8px; font: 600 11px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; color: var(--scribe-2); }
.r-sub { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 13px; color: var(--scribe-2); }
.r-sub b { font: 400 34px/1 var(--disp); color: var(--brass); }
.r-sub b.no { color: var(--red-p); }
.r-intro { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--scribe); max-width: 42ch; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stp, .fld { display: inline-flex; align-items: center; height: 40px; border: 1px solid rgba(223, 232, 248, .34); border-radius: 3px; }
.lb { padding: 0 4px 0 10px; font: 600 10px/1 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; color: var(--scribe-2); white-space: nowrap; }
.stp button { width: 32px; height: 38px; border: 0; background: transparent; color: var(--scribe); font: 400 20px/1 var(--sans); transition: background-color .2s var(--ease); }
.stp button:hover { background: rgba(223, 232, 248, .12); }
.stp output { min-width: 36px; text-align: center; font: 400 20px/1 var(--disp); color: #fff; }
.fld input { width: 54px; height: 38px; border: 0; background: transparent; padding: 0 10px 0 4px; text-align: right; font: 400 20px/1 var(--disp); color: #fff; outline: none; }
.fld:focus-within { border-color: var(--brass-h); }
.fld.wide { display: flex; width: 100%; } .fld.wide input { flex: 1; min-width: 0; width: auto; text-align: left; padding-left: 8px; font: 500 16px/1 var(--sans); }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chips button, .tog button { height: 40px; min-width: 36px; padding: 0 8px; border: 1px solid rgba(223, 232, 248, .34); border-radius: 3px; background: transparent; color: var(--scribe); font: 400 17px/1 var(--disp); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.tog { display: inline-flex; } .tog button { font: 600 10.5px/1 var(--sans); font-stretch: 110%; letter-spacing: .1em; text-transform: uppercase; } .tog button + button { margin-left: -1px; border-radius: 0 3px 3px 0; } .tog button:first-child { border-radius: 3px 0 0 3px; }
.chips button:hover, .tog button:hover { border-color: var(--scribe); }
.chips button[aria-pressed="true"], .tog button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--plate-d); }
.calgo { display: grid; gap: 8px; margin-top: 16px; }
.pri { border: 0; border-radius: 3px; padding: 14px 16px; background: var(--brass); color: var(--plate-d); font: 700 12px/1.2 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; text-align: left; transition: background-color .25s var(--ease); }
.pri:hover { background: var(--brass-h); }
.sec { border: 0; background: none; padding: 6px 0; color: var(--scribe-2); font-size: 13px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.sec:hover { color: var(--scribe); }

/* the tag: a jeweller's ticket tied to the reading */
.tagwrap { position: relative; margin-top: 26px; }
.tagwrap::before { content: ''; position: absolute; left: 19px; top: -24px; width: 1.5px; height: 40px; background: #CDB98E; transform: rotate(16deg); transform-origin: 50% 100%; z-index: 1; }
.tag { position: relative; background: var(--paper); color: var(--ink); padding: 16px 20px 20px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px); }
.tag::before { content: ''; position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--plate-d) 0 3.5px, var(--brass) 3.8px 6.4px, transparent 6.8px); }
.tag h2 { margin: 0 0 10px 22px; font: 400 22px/1.12 var(--disp); }
.tag dl { margin: 0; }
.tag dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.tag dt { padding-top: 3px; font: 600 9.5px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tag dd { margin: 0; font-size: 13.5px; line-height: 1.42; }
.tag .r-price dd b { font: 400 27px/1 var(--disp); margin-right: 6px; }
.tag .r-price dd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.dc { display: inline-block; vertical-align: middle; font: 700 9px/1 var(--sans); font-style: normal; font-stretch: 110%; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--red); border: 1px solid currentColor; border-radius: 2px; padding: 3px 5px 2px; transform: rotate(-2deg); }
.seg { display: flex; margin: 0 0 12px 22px; }
.seg button { flex: 1; padding: 8px 6px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 10px/1.1 var(--sans); font-stretch: 110%; letter-spacing: .1em; text-transform: uppercase; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ask { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 12px; padding: 13px 16px; border: 0; border-radius: 3px; background: var(--ink); color: var(--paper); font: 700 11.5px/1.2 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; text-align: left; transition: background-color .25s var(--ease); }
.ask::after { content: '→'; font: 400 18px/1 var(--sans); transition: transform .4s var(--ease); }
.ask:hover { background: var(--plate-l); } .ask:hover::after { transform: translateX(5px); }
.also { margin-top: 14px; border-top: 1px solid var(--ink); }
.also-k { margin: 8px 0 0; font: 600 9.5px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.also-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; line-height: 1.4; }
.also-r:last-child { border-bottom: 0; padding-bottom: 0; }
.also-r p { margin: 0; } .also-r b { display: block; font: 400 16px/1.2 var(--disp); }
.also-r button { border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); padding: 7px 10px; font: 700 10px/1 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; }
.also-r button:hover { background: var(--ink); color: var(--paper); }
.tag-p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.42; }
.tag .ctl { margin-top: 10px; flex-wrap: nowrap; }
.tag .fld { border-color: var(--ink); flex: none; } .tag .fld .lb { color: var(--ink-2); } .tag .fld input { color: var(--ink); }
.tag .fld input::placeholder { color: #6B7389; opacity: 1; }
.tag .ctl .ask { margin-top: 0; height: 40px; padding: 0 14px; }
.tag .shop-a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* ---------- the price list, scribed on the plate ---------- */
.ledger { position: relative; padding: 74px 40px 26px 76px; max-width: 1080px; }
.ledger h2 { margin: 0 0 6px; font: 400 clamp(34px, 4.2vw, 58px)/1 var(--disp); letter-spacing: -.015em; color: #fff; }
.lg-rule { margin: 0 0 20px; max-width: 60ch; font-size: 13.5px; color: var(--brass-h); font-weight: 600; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger thead th { padding: 0 12px 8px 0; text-align: left; font: 600 10px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; color: var(--scribe-2); border-bottom: 1px solid var(--scribe-2); }
.ledger tbody th { padding: 9px 14px 8px 0; text-align: left; vertical-align: top; font: 400 17.5px/1.2 var(--disp); color: #fff; width: 29%; }
.ledger td { padding: 10px 14px 8px 0; vertical-align: top; font-size: 13px; line-height: 1.4; color: var(--scribe); }
.ledger td:nth-child(2) { color: var(--scribe-2); width: 25%; }
.ledger td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.ledger tbody tr { border-bottom: 1px dashed rgba(223, 232, 248, .24); }
.ledger td b { font: 400 21px/1 var(--disp); color: var(--brass-h); margin-right: 4px; white-space: nowrap; }
.ledger .dc { color: var(--red-p); }
.ledger td button { border: 1px solid var(--scribe-2); border-radius: 3px; background: transparent; color: var(--scribe); padding: 8px 12px; font: 700 10px/1 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ledger td button:hover { background: var(--scribe); color: var(--plate-d); }

/* without scripts the price list is still on the plate */
html:not(.js) .ledger[hidden] { display: block !important; } html:not(.js) #stage, html:not(.js) .info { display: none; }

/* ---------- base strip ---------- */
.base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 28px; padding: 11px 22px 12px; background: var(--plate-d); border-top: 1px solid var(--hair); font-size: 12px; line-height: 1.5; color: var(--scribe-2); }
.base p { margin: 0; } .base a { color: var(--scribe); text-underline-offset: 3px; }

/* ---------- the job envelope ---------- */
.env { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(470px, 100%); overflow-y: auto; overscroll-behavior: contain; background-color: var(--kraft); background-image: repeating-linear-gradient(0deg, rgba(43, 32, 20, .028) 0 1px, transparent 1px 3px); color: var(--kink); box-shadow: inset 10px 0 16px -10px rgba(43, 32, 20, .5); clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.env-open .env { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.env::before { content: ''; display: block; height: 44px; background: linear-gradient(to bottom right, var(--kraft-d) 49.4%, rgba(43, 32, 20, .5) 49.6% 50.3%, transparent 50.5%) left / 50.1% 100% no-repeat, linear-gradient(to bottom left, var(--kraft-d) 49.4%, rgba(43, 32, 20, .5) 49.6% 50.3%, transparent 50.5%) right / 50.1% 100% no-repeat; }
.env-in { position: relative; padding: 6px 30px 34px; transform: translateY(18px); opacity: 0; transition: transform .8s var(--ease) .05s, opacity .5s var(--ease) .1s; }
.env-open .env-in { transform: none; opacity: 1; }
.env-x { position: absolute; right: 26px; top: 0; border: 0; background: none; padding: 6px 4px; font: 700 10.5px/1 var(--sans); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.env-k { margin: 0 0 4px; font: 700 10.5px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; }
.env h2 { margin: 0 0 18px; font: 400 34px/1.04 var(--disp); letter-spacing: -.01em; max-width: 12ch; }
.env-lab { margin: 0; padding-bottom: 5px; border-bottom: 1.5px solid var(--kink); font: 700 10px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; }
.env-lines ul { margin: 0; padding: 0; list-style: none; }
.env-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px dotted rgba(43, 32, 20, .6); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.env-lines li button { border: 0; background: none; padding: 0 4px; font-size: 20px; line-height: 1; }
.env-empty { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; }
.env form { margin-top: 18px; }
.env label { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: end; column-gap: 10px; padding: 9px 0 3px; border-bottom: 1.5px solid rgba(43, 32, 20, .62); transition: background-color .25s var(--ease); }
.env label:focus-within { background: rgba(255, 255, 255, .22); border-bottom-color: var(--kink); }
.env label:has(textarea) { align-items: start; } .env label:has(textarea) span { padding-top: 8px; }
.env label span { padding-bottom: 6px; font: 700 10px/1.2 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; }
.env input, .env textarea { width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 4px 0; font: 500 16px/1.35 var(--sans); color: var(--kink); outline: none; resize: vertical; }
.env ::placeholder { color: rgba(43, 32, 20, .68); opacity: 1; }
.env-go { display: grid; gap: 8px; margin: 18px 0 12px; }
.go { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-radius: 3px; padding: 13px 16px; font: 700 11.5px/1.2 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; text-align: left; transition: background-color .25s var(--ease), color .25s var(--ease); }
.go-tel { border: 1.5px solid var(--kink); background: var(--kink); color: #F6EAD3; } .go-tel b { font: 400 19px/1 var(--disp); letter-spacing: 0; white-space: nowrap; }
.go-tel:hover { background: #46351F; }
.go-mail { border: 1.5px solid var(--kink); background: transparent; color: var(--kink); } .go-mail:hover { background: rgba(255, 255, 255, .3); }
.env-ok { margin: 14px 0 0; padding: 10px 12px; background: rgba(255, 255, 255, .42); border-left: 3px solid var(--kink); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.env-ok:empty { display: none; } .env-ok.err { border-left-color: #8E2410; color: #6E1B0B; }
.env-shop { margin: 20px 0 0; border-top: 1.5px solid var(--kink); }
.env-shop > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; border-bottom: 1px dotted rgba(43, 32, 20, .6); font-size: 13.5px; line-height: 1.4; }
.env-shop dt { padding-top: 2px; font: 700 10px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; } .env-shop dd { margin: 0; overflow-wrap: anywhere; }
.env-rule { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; }

/* ---------- motion ---------- */
@keyframes scribe { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(34%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lift { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
.enter #gTool .sc { stroke-dasharray: 1; animation: scribe 1s var(--ease) both; }
.enter #gTool .fd { animation: fade .7s var(--ease) .2s both; }
.enter #gTool .h { animation: fade .5s var(--ease) .45s both; }
.enter .r-k { animation: fade .5s var(--ease) both; }
.enter .r-val .n { animation: rise .8s var(--ease) both; }
.enter .r-val .u { animation: fade .6s var(--ease) .12s both; }
.enter .r-sub { animation: lift .7s var(--ease) .16s both; }
.enter .ctl, .enter .r-intro, .enter .calgo { animation: lift .7s var(--ease) .22s both; }
.enter .tagwrap { animation: lift .8s var(--ease) .3s both; }
.enter .ledger tbody tr { animation: lift .6s var(--ease) both; } .enter .ledger tbody tr:nth-child(n+2) { animation-delay: .04s; } .enter .ledger tbody tr:nth-child(n+4) { animation-delay: .08s; } .enter .ledger tbody tr:nth-child(n+6) { animation-delay: .12s; } .enter .ledger tbody tr:nth-child(n+8) { animation-delay: .16s; }
html.js .brand, html.js .side { animation: fade .8s var(--ease) both; }
html.js .tools button { animation: lift .7s var(--ease) both; }
html.js .tools button:nth-child(2) { animation-delay: .04s; } html.js .tools button:nth-child(3) { animation-delay: .08s; } html.js .tools button:nth-child(4) { animation-delay: .12s; } html.js .tools button:nth-child(5) { animation-delay: .16s; } html.js .tools button:nth-child(6) { animation-delay: .2s; } html.js .tools button:nth-child(7) { animation-delay: .24s; }
html.js #gRul { animation: fade 1.1s var(--ease) both; }
html.static *, html.static *::before, html.static *::after { transition: none !important; animation: none !important; }
/* review renders: the bench does not stretch with a taller window, so a full-page screenshot ends with the seller block */
html.static .bench { min-height: min(100dvh, 805px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- legal pages ---------- */
.docbody { background: var(--plate-d); }
.dochead { padding: 16px 22px 0; }
.dochead::after { content: ''; display: block; height: 30px; margin: 14px -22px 0; background: repeating-linear-gradient(90deg, rgba(13, 31, 74, .8) 0 1px, transparent 1px 8px) left bottom / 100% 9px no-repeat, linear-gradient(var(--steel), var(--steel-d)); }
.dochead img { display: block; height: 38px; width: auto; }
.doc { max-width: 880px; margin: 36px auto 64px; padding: 40px 46px 56px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.65; clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px); }
.doc h1 { margin: 6px 0 16px; font: 400 clamp(32px, 5vw, 50px)/1.02 var(--disp); letter-spacing: -.015em; }
.doc h2 { margin: 2em 0 .5em; font: 400 22px/1.2 var(--disp); }
.doc a { color: #1F3F8F; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .9em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 7px 9px 7px 0; border-bottom: 1px solid var(--line); }
.doc th { font: 600 10px/1.3 var(--sans); font-stretch: 116%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.doc code { font-size: .9em; overflow-wrap: anywhere; }
.doc .ck-page button, .ck-page button { border-radius: 3px; }

/* ---------- narrow screens ---------- */
@media (max-width: 1400px) {
  .rail { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .side { grid-row: 1; grid-column: 2; padding-bottom: 0; }
  .brand { padding-bottom: 0; }
  .tools { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 1020px) and (min-width: 861px) { .tools button { padding: 10px 10px 11px; gap: 6px; letter-spacing: .1em; } .work { grid-template-columns: minmax(0, 1fr) 372px; } .read-in { padding: 20px 20px 24px; } }
@media (max-width: 860px) {
  .rail { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px 0; row-gap: 6px; }
  .brand { padding-bottom: 0; } .brand img { height: 30px; }
  .side { padding-bottom: 0; gap: 8px; grid-row: 1; grid-column: 2; }
  .plate[data-tool="cal"] .calsave { display: block; }
  .tools { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
  .tools button { flex-direction: column; gap: 5px; padding: 8px 0 7px; font-size: 8.5px; font-stretch: 78%; letter-spacing: .04em; }
  .tools svg { width: 22px; height: 22px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .stagebox { flex: none; min-height: 300px; }
  .info { position: static; width: auto; margin: 0; padding: 14px 16px 16px; background: var(--plate-d); border-left: 0; border-top: 1px solid var(--hair); pointer-events: auto; }
  .plate[data-tool="list"] .info { margin: 0; padding: 14px 16px 16px; }
  .read { border-left: 0; border-top: 1px solid var(--hair); }
  .xy { display: none; }
  .read-in { padding: 20px 16px 26px; }
  .r-val .n { font-size: 112px; } .r-val .n.lg { font-size: 84px; } .r-val .n.md { font-size: 50px; }
  .ledger { padding: 52px 16px 22px; }
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; }
  .ledger tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 2px; font-size: 20px; }
  .ledger td { padding: 2px 0; min-width: 0; } .ledger td:nth-child(2) { grid-column: 1 / -1; width: auto; }
  .ledger td:nth-child(3), .ledger td:nth-child(4) { grid-column: 1; }
  .ledger td:last-child { grid-column: 2; grid-row: 3 / span 2; align-self: end; }
  .ledger td.na { display: none; }
  .base { padding: 12px 16px 14px; }
  .env-in { padding: 6px 20px 30px; } .env-x { right: 16px; } .env h2 { font-size: 30px; }
  .dochead { padding: 12px 16px 0; } .dochead::after { margin: 12px -16px 0; } .dochead img { height: 30px; }
  .doc { margin: 18px 10px 40px; padding: 30px 20px 40px; }
}

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: gioielleria-skerlavai */
.ck { --ck-bottom: 12px; left: 52px; bottom: 60px; width: 372px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: end; padding: 38px 20px 18px; color: var(--scribe); font-family: var(--sans); border: 1px solid rgba(223, 232, 248, .4); border-top: 0; box-shadow: 0 22px 44px -14px rgba(2, 8, 26, .85); background: linear-gradient(rgba(223, 232, 248, .06) 1px, transparent 1px) 0 22px / 100% 19px, linear-gradient(90deg, rgba(223, 232, 248, .06) 1px, transparent 1px) 20px 0 / 19px 100%, var(--plate-d); }
.ck::after { content: ''; position: absolute; left: -1px; right: -1px; top: 0; height: 22px; background: linear-gradient(var(--red), var(--red)) 20px 100% / 1.5px 100% no-repeat, repeating-linear-gradient(90deg, rgba(13, 31, 74, .95) 0 1px, transparent 1px 25px) 20px 100% / 100% 11px no-repeat, repeating-linear-gradient(90deg, rgba(13, 31, 74, .6) 0 1px, transparent 1px 5px) 20px 100% / 100% 6px no-repeat, linear-gradient(var(--steel), var(--steel-d)); border-bottom: 1px solid rgba(13, 31, 74, .6); }
.ck::before { content: '0'; grid-column: 1; grid-row: 1; font: 400 76px/.8 var(--disp); color: #fff; }
.ck .ck-k { grid-column: 2; grid-row: 1; padding-bottom: 2px; font: 600 10px/1.4 var(--sans); font-stretch: 116%; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-h); }
.ck .ck-t, .ck .ck-p, .ck .b { grid-column: 1 / -1; }
.ck .ck-t b { display: block; margin: 14px 0 6px; font: 400 23px/1.1 var(--disp); color: #fff; }
.ck .ck-p { font-size: 12.5px; line-height: 1.45; color: var(--scribe-2); }
.ck .b { margin-top: 14px; gap: 8px; }
.ck button { border-radius: 3px; padding: 10px 13px; font: 700 10.5px/1 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; }
.ck .ok { border: 1.5px solid var(--brass); background: var(--brass); color: var(--plate-d); } .ck .ok:hover { background: var(--brass-h); border-color: var(--brass-h); }
.ck .no { border: 1.5px solid var(--scribe-2); background: transparent; color: var(--scribe); } .ck .no:hover { background: rgba(223, 232, 248, .12); }
.ck .more { margin-left: 4px; font: 600 12px/1.2 var(--sans); color: var(--scribe); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .ck { left: 12px; bottom: 12px; } }
/* seller block: the maker's plate under the bench, scribe silver on the same blue */
footer.seller { background: var(--plate-d); color: var(--scribe); border-top: 1px solid var(--hair); padding: 22px 22px 30px; }
footer.seller .seller-in { max-width: none; }
footer.seller b { opacity: 1; color: var(--brass-h); font-stretch: 116%; }
footer.seller strong { font: 400 17px/1.3 var(--disp); }
@media (max-width: 860px) { footer.seller { padding: 20px 16px 28px; } }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }
