/* Oreficeria e Gioielleria Bergamini — the ring bench.
   Left: a sheet of grey drawing paper (white chalk, sanguine for what is settled in the workshop, the metal in gouache).
   Right: the steps on light bench paper. Bottom: the bar that says the composition in words.
   The accent colour is the metal chosen: --metal is set from main.js. */
:root {
  --sheet: #454D53; --chalk: #F1EFE8; --chalk-2: rgba(241, 239, 232, .8); --sang: #FFB09F;
  --paper: #D9DCD8; --paper-hi: #E9EBE7; --ink: #171C1F; --ink-2: #454D53; --red: #A5321F; --bar: #14181B;
  --metal: #DDAE3F; --metal-hi: #F8E3A0; --metal-lo: #8E661A; --metal-ln: #5A3F0C;
  --disp: 'Piazzolla', Georgia, 'Times New Roman', serif; --sans: 'Sofia Sans Condensed', 'Arial Narrow', Arial, sans-serif; --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --e1: cubic-bezier(.16, 1, .3, 1); --e2: cubic-bezier(.87, 0, .13, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; height: 100%; background: var(--bar); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--metal); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sheet :focus-visible, .bar :focus-visible, .cart :focus-visible { outline-color: var(--chalk); }
[hidden] { display: none !important; }
.k, .notes-k, .tag-k { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
small { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.dc { font: italic 400 .88em/1 var(--disp); letter-spacing: 0; text-transform: none; color: var(--red); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.sheet .dc, .bar .dc, .cart .dc { color: var(--sang); }

/* ---------- the bench ---------- */
.bench { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "sheet steps" "cart steps" "bar bar"; height: 100vh; height: 100dvh; }

/* ---------- the sheet ---------- */
.sheet, .cart { background-color: var(--sheet); background-image: var(--grain), radial-gradient(110% 80% at 38% 34%, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 62%); color: var(--chalk); }
.sheet { grid-area: sheet; position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sheet-top { position: absolute; z-index: 2; top: 22px; left: 28px; right: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; pointer-events: none; }
.sheet-top a, .sheet-top button { pointer-events: auto; }
.brand { display: block; } .brand img { display: block; height: 54px; width: auto; }
.sheet-h { margin: 9px 0 0; font: 600 11.5px/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--chalk-2); }
.lang { display: flex; gap: 2px; }
.lang button { padding: 7px 8px 6px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; color: var(--chalk-2); border-bottom: 2px solid transparent; transition: color .4s var(--e1), border-color .4s var(--e1); }
.lang button:hover { color: var(--chalk); } .lang button[aria-pressed="true"] { color: var(--chalk); border-color: var(--metal); }
.draw { position: relative; flex: 1; min-height: 0; container-type: size; }
.draw svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.draw .cap { font-family: var(--sans); font-weight: 600; letter-spacing: .17em; fill: var(--chalk); opacity: .84; }
.draw .lb { font-family: var(--disp); font-style: italic; fill: var(--chalk); }
.draw .nt { font-family: var(--disp); font-style: italic; fill: var(--chalk); opacity: .86; }
.draw .sang { fill: var(--sang); opacity: 1; }
.draw .cl { fill: none; stroke: var(--chalk); stroke-width: .8; stroke-dasharray: 16 4 2 4; opacity: .42; }
.draw .pj { fill: none; stroke: var(--chalk); stroke-width: .8; stroke-dasharray: 3 5; opacity: .4; }
.draw .dm { fill: none; stroke: var(--chalk); stroke-width: 1; opacity: .85; }
.draw .eng-t { fill: var(--chalk); } .draw .eng-t.corsivo { font-family: var(--script); } .draw .eng-t.stampatello { font-family: var(--disp); font-weight: 500; letter-spacing: .13em; }
.draw .hit { cursor: pointer; outline: none; }
.draw .hit:hover .lb, .draw .hit:hover .cap, .draw .hit:focus-visible .lb, .draw .hit:focus-visible .cap { fill: var(--metal-hi); opacity: 1; }
.draw .hit:hover .dm, .draw .hit:focus-visible .dm { stroke: var(--metal-hi); opacity: 1; }
.draw .hit:hover .eng-t, .draw .hit:focus-visible .eng-t { fill: var(--metal-hi); }
.honest { margin: 0; padding: 8px 28px 13px; font: italic 400 14.5px/1.4 var(--disp); color: var(--sang); }
/* the sketch sheet of the question jobs: drawing on the left, the visitor's notes on the right */
/* the notes are sized on the sheet itself (container units), so on a small sheet they shrink instead of running into the line below */
.notes { position: absolute; left: 57%; right: 30px; top: max(62px, 21%); max-height: calc(100% - max(62px, 21%)); overflow: hidden; }
.notes-k { margin: 0 0 14px; margin-bottom: clamp(6px, 2.1cqh, 14px); color: var(--chalk-2); }
.note { margin: 0 0 13px; padding-bottom: 12px; border-bottom: 1px dashed rgba(241, 239, 232, .34); font: italic 400 20px/1.3 var(--disp); overflow-wrap: anywhere; }
.note .nv { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; font-style: inherit; }   /* the clamp sits on the value alone: on the padded row the next line showed through */
.note span { display: block; margin-bottom: 4px; font: 600 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--chalk-2); }
.note.void { color: var(--chalk-2); }
@supports (width: 1cqh) { .note { margin-bottom: clamp(6px, 1.9cqh, 13px); padding-bottom: clamp(5px, 1.8cqh, 12px); font-size: clamp(14.5px, 3.3cqh, 20px); } }
@container (max-height: 520px) { .note .nv { -webkit-line-clamp: 3; } }
@container (max-height: 380px) { .note .nv { -webkit-line-clamp: 2; } .note span { margin-bottom: 2px; font-size: 10px; } }

/* ---------- the title block of the sheet ---------- */
.cart { grid-area: cart; display: grid; grid-template-columns: 1fr 1.36fr 1.46fr 1.5fr; border-top: 1px solid rgba(241, 239, 232, .55); font-size: 13.5px; line-height: 1.42; }
.cart .cell { min-width: 0; padding: 10px 12px 11px 14px; border-right: 1px solid rgba(241, 239, 232, .28); } .cart .cell:first-child { padding-left: 28px; } .cart .cell.rule { border-right: 0; }
.cart b { display: block; margin-bottom: 4px; font: 600 10.5px/1.2 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--chalk-2); }
.cart p { margin: 0; } .cart a { color: inherit; text-decoration-color: rgba(241, 239, 232, .5); text-underline-offset: 3px; } .cart a:hover { text-decoration-color: var(--metal); }
.cart .rule p { text-wrap: balance; }
.cart-legal { grid-column: 1 / -1; padding: 6px 28px 7px; border-top: 1px solid rgba(241, 239, 232, .28); font-size: 12.5px; color: var(--chalk-2); }

/* ---------- the steps ---------- */
.steps { grid-area: steps; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background-color: var(--paper); background-image: var(--grain-d); }
.rail { flex: none; display: flex; gap: 18px; padding: 0 40px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(23, 28, 31, .24); }
.rail::-webkit-scrollbar { display: none; }
.rl { flex: none; padding: 24px 0 12px; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); border-bottom: 3px solid transparent; transition: color .4s var(--e1), border-color .4s var(--e1); }
.rl:hover, .rl.done { color: var(--ink); } .rl.on { color: var(--ink); border-color: var(--ink); }
.panel, .req { flex: 1; min-height: 0; overflow-y: auto; padding: 34px 40px 44px; outline: none; scrollbar-width: thin; scrollbar-color: rgba(23, 28, 31, .35) transparent; }
.nojs { font-size: 18px; max-width: 46ch; }
/* the step number sits in the corner like the folio of a sheet */
.panel, .req { position: relative; }
.st-no { position: absolute; top: 40px; right: 40px; margin: 0; font: italic 400 17px/1 var(--disp); color: var(--ink-2); animation: none !important; } .st-no b { font: 500 26px/1 var(--disp); font-style: normal; color: var(--ink); }
.st-h { margin: 0 0 14px; padding-right: 84px; font: 300 clamp(40px, 4.4vw, 66px)/.98 var(--disp); letter-spacing: -.028em; text-wrap: balance; } .st-h i { font-weight: 400; }
.st-p { margin: 0 0 26px; max-width: 56ch; font-size: 17px; line-height: 1.48; color: var(--ink-2); }
.fine { margin: 26px 0 0; max-width: 58ch; padding-top: 12px; border-top: 1px solid rgba(23, 28, 31, .22); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.grp { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); } .grp b { margin-right: 8px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.jobs + .grp { margin-top: 28px; }
/* the mark of a chosen option: a small punch, like a hallmark struck into the metal */
.on > b::before, .job.on .job-n::before { content: ''; display: inline-block; width: 9px; height: 9px; margin: 0 10px 3px 1px; background: var(--ink); transform: rotate(45deg); vertical-align: middle; }

/* jobs (step 1) */
.jobs { border-top: 1.5px solid var(--ink); }
.job { border-bottom: 1px solid rgba(23, 28, 31, .25); transition: background .5s var(--e1); } .job.on { background: var(--paper-hi); }
.job-b { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "g n t" "g w t"; column-gap: 16px; align-items: center; width: 100%; padding: 11px 12px 11px 8px; }
.job-g { grid-area: g; display: block; width: 44px; height: 44px; }
.g-m { fill: var(--metal); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; } .g-s { fill: #fff; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; } .g-l { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.job-n { grid-area: n; align-self: end; font: 500 22px/1.15 var(--disp); letter-spacing: -.01em; }
.job-w { grid-area: w; align-self: start; font-size: 14.5px; color: var(--ink-2); }
.job-t { grid-area: t; max-width: 170px; text-align: right; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.job-b:hover .job-n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.spec { display: grid; gap: 9px; margin: 0; padding: 4px 18px 20px 68px; }
.spec div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; }
.spec dt { padding-top: 3px; font: 600 11.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.spec dd { margin: 0; font-size: 16px; line-height: 1.42; }

/* metals: four strips of stock */
.metals { display: grid; gap: 12px; }
.metal { display: grid; grid-template-columns: var(--len, 44%) minmax(0, 1fr); grid-template-areas: "s n" "s d"; column-gap: 20px; width: 100%; transition: grid-template-columns .7s var(--e1); }
.metal.on { --len: 62%; }
.metal .strip { grid-area: s; position: relative; display: block; height: 60px; background: var(--d); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
.metal .strip::before { content: ''; position: absolute; inset: 1.5px; background: linear-gradient(100deg, var(--c) 0%, var(--b) 12%, var(--a) 36%, var(--b) 58%, var(--c) 100%); clip-path: polygon(0 0, calc(100% - 1.5px) 0, calc(100% - 20px) 100%, 0 100%); }
.metal b { grid-area: n; align-self: end; display: block; font: 500 23px/1.15 var(--disp); letter-spacing: -.01em; }
.metal small { grid-area: d; align-self: start; }
.metal:hover .strip::before { filter: brightness(1.06); }

/* width and size: a caliper and a ring stick, moved by a range input laid over them */
.big { display: flex; align-items: baseline; gap: 14px; margin: 0 0 4px; font: 300 clamp(112px, 13.5vw, 196px)/.84 var(--disp); letter-spacing: -.055em; }
.big span { font: italic 400 30px/1 var(--disp); letter-spacing: 0; color: var(--ink-2); }
.slide { position: relative; margin: 14px 0 0; } .slide svg { display: block; width: 100%; height: auto; overflow: visible; }
.slide input { position: absolute; top: 0; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cal input { left: calc(24% - 8px); width: calc(52% + 16px); } .man input { left: calc(3.333% - 8px); width: calc(93.334% + 16px); }
.slide:focus-within { outline: 2px solid var(--red); outline-offset: 8px; }
.c-b { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; } .c-t { fill: none; stroke: var(--ink); stroke-width: 1.2; } .c-z { fill: none; stroke: var(--red); stroke-width: 3; }
.c-n { font: 600 15px var(--sans); fill: var(--ink); text-anchor: middle; } .c-n.off { fill: var(--ink-2); font-weight: 400; }
.c-w { fill: var(--metal); stroke: var(--ink); stroke-width: 1.3; } .c-j { fill: var(--ink); } .c-i { fill: none; stroke: var(--red); stroke-width: 2.6; } .c-p { fill: var(--red); } .c-n.cur { fill: var(--red); font-weight: 700; }
.m-b { fill: #B3B9BC; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; } .m-t { fill: none; stroke: var(--ink); stroke-width: .9; opacity: .5; } .m-t.b { stroke-width: 1.2; opacity: 1; }
.m-r { fill: none; stroke: var(--ink); stroke-width: 7; } .m-r2 { fill: none; stroke: var(--metal); stroke-width: 4; }
.read { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 6px; }
.read b { font: 300 clamp(90px, 10vw, 148px)/.86 var(--disp); letter-spacing: -.05em; }
.read b.lab { font: italic 300 clamp(40px, 4.2vw, 60px)/1.1 var(--disp); letter-spacing: -.025em; color: var(--red); }
.read small { font-size: 15.5px; }
.sbox.two { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(23, 28, 31, .25); } .row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.tick { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font-size: 16px; line-height: 1.4; }
.tick > i { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.tick.on > i::after { content: ''; position: absolute; inset: 4px; background: var(--ink); transform: rotate(45deg) scale(.82); }

/* profiles, finishes, stones */
.profs { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; border-top: 1.5px solid rgba(23, 28, 31, .25); }
.prof { display: block; margin-top: -1.5px; padding: 20px 0 6px; border-top: 3px solid transparent; transition: border-color .4s var(--e1); } .prof.on { border-top-color: var(--ink); }
.prof svg { display: block; width: 100%; height: auto; margin-bottom: 14px; }
.p-o { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; } .p-f { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 5 5; } .p-n { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 6 6; }
.prof b, .fin b, .gem b, .ch b { display: block; font: 500 21px/1.15 var(--disp); letter-spacing: -.01em; }
.prof small, .fin small, .gem small, .ch small { margin-top: 3px; }
.fins, .gems { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 26px 30px; }
.fin, .gem { display: block; width: 158px; }
.fin svg, .gem svg { display: block; width: 128px; height: 128px; margin: 6px 0 16px 6px; border-radius: 50%; outline: 2px solid transparent; outline-offset: 6px; transition: outline-color .4s var(--e1), transform .6s var(--e1); }
.fin.on svg, .gem.on svg { outline-color: var(--ink); } .fin:hover svg, .gem:hover svg { transform: rotate(-8deg) scale(1.03); }
.hues { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; } .hues .k { margin-right: 6px; }
.hue { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px 6px 8px; border: 1.5px solid rgba(23, 28, 31, .32); border-radius: 2px; font-weight: 600; font-size: 15.5px; transition: border-color .4s var(--e1), background .4s var(--e1); }
.hue svg { width: 26px; height: 26px; } .hue.on { border-color: var(--ink); background: var(--paper-hi); }

/* engraving */
.eng { position: relative; margin-top: 4px; border-bottom: 2px solid var(--ink); transition: border-color .4s var(--e1); } .eng:focus-within { border-color: var(--red); }
.eng-in { display: block; width: 100%; padding: 4px 74px 6px 0; border: 0; border-radius: 0; background: none; color: var(--ink); outline: none; }
.eng-in.corsivo { font: 400 54px/1.2 var(--script); } .eng-in.stampatello { font: 500 30px/2.16 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.eng-in::placeholder { color: #596166; opacity: 1; }
.eng-c { position: absolute; right: 0; bottom: 10px; margin: 0; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; color: var(--ink-2); }
.seg { display: flex; align-items: center; gap: 8px; margin-top: 24px; } .seg .k { margin-right: 8px; }
.sg { padding: 6px 16px 7px; border: 1.5px solid rgba(23, 28, 31, .32); border-radius: 2px; transition: border-color .4s var(--e1), background .4s var(--e1); }
.sg.corsivo { font: 400 27px/1 var(--script); } .sg.stampatello { font: 500 14px/1.94 var(--disp); letter-spacing: .14em; text-transform: uppercase; } .sg.on { border-color: var(--ink); background: var(--paper-hi); }

/* questions: rows to pick, lines to write */
.chs { display: grid; border-top: 1.5px solid var(--ink); }
.ch { display: block; width: 100%; padding: 15px 12px 15px 8px; border-bottom: 1px solid rgba(23, 28, 31, .25); transition: background .5s var(--e1), padding .5s var(--e1); }
.ch:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } .ch.on { background: var(--paper-hi); }
.chs.pic { align-items: start; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; border-top: 1.5px solid rgba(23, 28, 31, .25); }
.chs.pic .ch { margin-top: -1.5px; padding: 14px 0 6px; border: 0; border-top: 3px solid transparent; background: none; } .chs.pic .ch.on { border-top-color: var(--ink); }
.chs.pic svg { display: block; width: 100%; height: auto; margin-bottom: 8px; color: var(--ink); } .chs.pic b { font-size: 19px; }
.fld { display: block; margin: 0 0 18px; min-width: 0; }
.fld span { display: block; margin-bottom: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.fld em { margin-left: 6px; font: italic 400 14px/1 var(--disp); letter-spacing: 0; text-transform: none; }
.fld input, .fld textarea { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--paper-hi); color: var(--ink); font: 400 18px/1.4 var(--sans); outline: none; transition: border-color .4s var(--e1), background .4s var(--e1); }
.fld textarea { min-height: 96px; resize: vertical; } .fld.ta textarea { min-height: 150px; font: italic 400 20px/1.4 var(--disp); }
.fld input:focus, .fld textarea:focus { border-color: var(--red); background: #F3F4F1; }
.fld ::placeholder { color: #596166; opacity: 1; }
.panel .lead-note { color: var(--ink-2); }

/* the request */
.tag { position: relative; margin: 0 0 28px; padding: 18px 24px 18px 62px; background: var(--paper-hi); clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px), 0 24px); }
.tag::before { content: ''; position: absolute; left: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag p { margin: 0; } .tag-t { padding: 6px 0 9px; font: italic 400 22px/1.3 var(--disp); letter-spacing: -.005em; overflow-wrap: anywhere; } .tag-i, .tag-r { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); } .tag-i { padding-bottom: 6px; }
.req-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.req-f .wide, .req-f .btn, .req-f .lead-note, .req-err { grid-column: 1 / -1; }
.req-f .btn { justify-self: start; margin: 4px 0 14px; }
.req-f .lead-note { color: var(--ink-2); }
.req-err { margin: 0 0 12px; font-weight: 600; color: var(--red); }
.req-ok { margin: 18px 0 0; padding: 12px 16px; border-left: 4px solid var(--ink); background: var(--paper-hi); font-size: 16px; }
.req-alt { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(23, 28, 31, .25); font-size: 16px; } .req-alt p { margin: 0 0 6px; } .req-alt a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--red); }
.req-h b { margin-right: 8px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* buttons: a chamfered corner, like a cut */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 26px 16px; font: 700 14.5px/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: center; clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px); transition: background .5s var(--e1), color .5s var(--e1); }
.btn.ink { background: var(--ink); color: var(--chalk); } .btn.ink:hover { background: var(--red); }
.btn.metal { background: var(--metal); color: var(--bar); } .btn.metal:hover { background: var(--metal-hi); }
.btn.line { clip-path: none; white-space: nowrap; color: var(--chalk); box-shadow: inset 0 0 0 1.5px rgba(241, 239, 232, .7); } .btn.line:hover { background: rgba(241, 239, 232, .1); box-shadow: inset 0 0 0 1.5px var(--chalk); }
.btn.ink:focus-visible, .btn.metal:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--ink); }

/* ---------- the bar ---------- */
.bar { grid-area: bar; display: flex; align-items: center; gap: 30px; min-height: 90px; padding: 14px 28px; background: var(--bar); color: var(--chalk); border-top: 1px solid rgba(241, 239, 232, .18); }
.comp { flex: 1; min-width: 0; margin: 0; font: italic 300 clamp(19px, 1.72vw, 26px)/1.24 var(--disp); letter-spacing: -.008em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.frag { background: linear-gradient(var(--metal), var(--metal)) no-repeat 0 100% / 100% 0; } .frag.first { font-style: normal; font-weight: 500; }
.frag.new { animation: fragnew 1.6s var(--e1); }
.bar-act { flex: none; display: flex; gap: 12px; }
.np { padding-right: 14px; border-right: 1px solid rgba(241, 239, 232, .45); font-weight: 500; letter-spacing: .05em; text-transform: none; font-size: 15px; color: var(--chalk-2); }
.nx::after { content: '→'; margin-left: 10px; } .back .np { display: none; } .back .nx::after { content: none; } .back .nx::before { content: '←'; margin-right: 10px; }

/* ---------- motion: the sheet is drawn once, then only what changes moves ---------- */
@keyframes stepin { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes paint { from { opacity: 0; transform: translateY(12px); } }
@keyframes drawln { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes glint { 0% { filter: brightness(1.85) saturate(.5); } 100% { filter: brightness(1) saturate(1); } }
@keyframes setst { from { opacity: 0; transform: translateY(-16px); } }
@keyframes loupe { from { opacity: .2; transform: scale(.78); } }
@keyframes fragnew { 0% { color: var(--metal-hi); background-size: 0 2px; } 28% { background-size: 100% 2px; } 70% { color: var(--metal-hi); background-size: 100% 2px; } 100% { color: inherit; background-size: 100% 0; } }
.in > * { animation: stepin .75s var(--e1) both; }
.in > :nth-child(2) { animation-delay: .05s; } .in > :nth-child(3) { animation-delay: .1s; } .in > :nth-child(4) { animation-delay: .16s; } .in > :nth-child(5) { animation-delay: .22s; } .in > :nth-child(n+6) { animation-delay: .28s; }
.draw.boot .paint { animation: paint 1.2s var(--e1) .3s both; }
.draw.boot .dm { stroke-dasharray: 900; animation: drawln 1.6s var(--e2) .2s both; }
.draw.boot .cl, .draw.boot .pj { animation: fadein 1.2s var(--e1) both; }
.draw.boot .cap, .draw.boot .lb, .draw.boot .nt, .draw.boot .notes { animation: fadein 1s var(--e1) .8s both; }
.fx-metal .g-metal, .fx-metal .g-loupe { animation: glint .9s var(--e1); }
.fx-stone .g-stone { animation: setst .7s var(--e1); }
.fx-finish .g-loupe { transform-box: fill-box; transform-origin: center; animation: loupe .7s var(--e1); } .fx-finish .g-metal { animation: glint .7s var(--e1); }
.fx-text .g-eng { animation: fadein .7s var(--e1); }
.fx-note .note { animation: fadein .6s var(--e1); }
html.js .bar-act, html.js .comp, html.js .cart .cell, html.js .sheet-top { animation: fadein 1s var(--e1) .35s both; }
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- the legal pages (privacy, terms, cookie, impressum) ---------- */
html:has(body.docbody), body.docbody { height: auto; }
body.docbody { background-color: var(--paper); background-image: var(--grain-d); }
.dochead { padding: 20px 28px; background-color: var(--sheet); background-image: var(--grain); } .dochead img { display: block; height: 44px; width: auto; }
.doc { max-width: 860px; margin: 0 auto; padding: 40px 22px 110px; font-size: 16.5px; line-height: 1.6; }
.doc h1 { margin: 18px 0 14px; font: 300 clamp(34px, 5vw, 54px)/1.02 var(--disp); letter-spacing: -.025em; }
.doc h2 { margin: 2em 0 .5em; font: 500 23px/1.2 var(--disp); letter-spacing: -.01em; }
.doc a { color: var(--red); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92em; background: var(--paper-hi); }
.doc th, .doc td { padding: 7px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(23, 28, 31, .2); }
.doc th { font: 600 11.5px/1.3 var(--sans); 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; }
body.docbody .ck-page .st { border: 0; border-left: 4px solid var(--ink); border-radius: 0; background: var(--paper-hi); font-weight: 600; }
body.docbody .ck-page button { padding: 13px 20px 12px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1.5px var(--ink); font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .4s var(--e1), color .4s var(--e1); }
body.docbody .ck-page #ck-accept { background: var(--ink); color: var(--chalk); box-shadow: none; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); } body.docbody .ck-page #ck-accept:hover { background: var(--red); } body.docbody .ck-page #ck-decline:hover { background: rgba(23, 28, 31, .1); }

/* ---------- narrower screens ---------- */
@media (max-width: 1359px), (max-height: 859px) { .sheet-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .brand img { height: 46px; } }
@media (max-width: 1180px) { .st-no { top: 34px; right: 28px; } .cart { grid-template-columns: 1fr 1fr; } .cart .cell:nth-child(2) { border-right: 0; } .cart .cell:nth-child(n+3) { border-top: 1px solid rgba(241, 239, 232, .28); } .cart .cell:nth-child(3) { padding-left: 28px; } .np { display: none; } .panel, .req { padding: 30px 28px 40px; } .rail { padding: 0 28px; } }
@media (max-width: 900px) {
  html, body { height: auto; }
  .bench { display: block; height: auto; padding-bottom: 112px; }
  .sheet { position: sticky; top: 0; z-index: 6; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .7); }
  .sheet-top { position: static; align-items: center; padding: 10px 12px 0 14px; } .brand img { height: 27px; }
  .sheet-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .draw { flex: none; width: 100%; aspect-ratio: 720 / 470; max-height: 33dvh; }
  .honest { padding: 2px 14px 8px; font-size: 12.5px; }
  .notes { left: 46%; right: 12px; top: 6%; max-height: 94%; } .notes-k { margin-bottom: 6px; font-size: 10px; } .note { margin-bottom: 6px; padding-bottom: 5px; font-size: 14px; font-size: clamp(12px, 5.6cqh, 14px); line-height: 1.25; } .note .nv { -webkit-line-clamp: 2; } .note span { margin-bottom: 1px; font-size: 9.5px; }
  @container (max-height: 230px) { .notes { top: 3%; max-height: 97%; } .notes-k { display: none; } .note { margin-bottom: 4px; padding-bottom: 3px; } }
  .steps { display: block; min-height: 58dvh; }
  .rail { gap: 16px; padding: 0 16px; } .rl { padding: 18px 0 11px; }
  .panel, .req { overflow: visible; padding: 24px 16px 40px; }
  .st-no { top: 26px; right: 16px; } .st-no b { font-size: 22px; } .st-h { padding-right: 56px; font-size: clamp(36px, 10.5vw, 46px); } .st-p { font-size: 16px; margin-bottom: 22px; }
  .job-b { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "g n" "g w" "g t"; column-gap: 12px; padding: 11px 8px 11px 6px; } .job-g { width: 40px; height: 40px; align-self: start; } .job-n { font-size: 20px; } .job-t { max-width: none; text-align: left; margin-top: 2px; }
  .spec { padding: 2px 12px 18px 12px; } .spec div { grid-template-columns: 1fr; gap: 1px; }
  .metal { --len: 38%; column-gap: 14px; } .metal.on { --len: 50%; } .metal b { font-size: 20px; } .metal .strip { height: 56px; }
  .big { font-size: 108px; } .read b { font-size: 92px; } .read b.lab { font-size: 38px; }
  .cal input { left: calc(24% - 8px); } .c-n { font-size: 22px; }
  .profs { gap: 0 12px; } .prof b, .fin b, .gem b, .ch b { font-size: 19px; } .prof small { font-size: 13.5px; }
  .fins, .gems { gap: 20px 12px; } .fin, .gem { width: calc(33.33% - 8px); min-width: 0; } .fin svg, .gem svg { width: 84px; height: 84px; margin: 6px 0 14px 6px; outline-offset: 4px; }
  .eng-in.corsivo { font-size: 40px; } .eng-in.stampatello { font-size: 22px; }
  .chs.pic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .req-f { grid-template-columns: 1fr; } .req-f .btn { justify-self: stretch; } .tag { padding: 16px 16px 16px 50px; } .tag::before { left: 17px; } .tag-t { font-size: 19px; }
  .cart { grid-template-columns: 1fr; } .cart .cell { padding: 12px 16px; border-right: 0; border-top: 1px solid rgba(241, 239, 232, .28); } .cart .cell:first-child { padding-left: 16px; border-top: 0; } .cart .cell:nth-child(3) { padding-left: 16px; } .cart-legal { padding: 10px 16px 12px; line-height: 1.9; }
  .bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 9px; min-height: 0; padding: 10px 12px 12px; }
  .comp { font-size: 15.5px; line-height: 1.26; }
  .bar-act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; } .btn { padding: 13px 10px 12px; font-size: 12.5px; letter-spacing: .08em; gap: 8px; } .nx::after, .back .nx::before { margin: 0 0 0 6px; } .back .nx::before { margin: 0 6px 0 0; }
  .dochead { padding: 14px 16px; } .dochead img { height: 30px; }
}

/* == 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: oreficeria-e-gioielleria-bergamini */
.ck { --ck-bottom: 122px; left: 28px; bottom: 122px; width: 448px; max-width: none; display: grid; grid-template-columns: 104px minmax(0, 1fr); padding: 0; color: var(--chalk); font-family: var(--sans); background-color: #3E464B; background-image: var(--grain); border: 1.5px solid rgba(241, 239, 232, .78); border-radius: 0; box-shadow: 0 22px 34px -14px rgba(0, 0, 0, .7); }
.ck .ck-k { position: relative; grid-column: 1; grid-row: 1 / span 2; padding: 13px 10px 12px 14px; border-right: 1px solid rgba(241, 239, 232, .34); font: 600 10.5px/1.35 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: #FFBDAE; }
/* the centre mark of a drawing: a circle on two axes */
.ck .ck-k::after { content: ''; position: absolute; left: 14px; bottom: 14px; width: 30px; height: 30px; border: 1px solid rgba(241, 239, 232, .8); border-radius: 50%; background: linear-gradient(rgba(241, 239, 232, .8), rgba(241, 239, 232, .8)) 50% 50% / 1px 100% no-repeat, linear-gradient(rgba(241, 239, 232, .8), rgba(241, 239, 232, .8)) 50% 50% / 100% 1px no-repeat; }
.ck .ck-t { grid-column: 2; grid-row: 1; padding: 11px 16px 10px; border-bottom: 1px solid rgba(241, 239, 232, .34); }
.ck .ck-t b { display: block; font: italic 400 20px/1.18 var(--disp); letter-spacing: -.01em; color: var(--chalk); }
.ck .ck-p { grid-column: 2; grid-row: 2; padding: 10px 16px 12px; font-size: 14px; line-height: 1.42; color: var(--chalk-2); }
.ck .b { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; margin: 0; align-items: stretch; border-top: 1px solid rgba(241, 239, 232, .78); }
.ck button, .ck a.more { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 0; text-align: center; transition: background .4s var(--e1), color .4s var(--e1); }
.ck button { font: 700 12.5px/1.1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.ck .ok { background: var(--chalk); color: var(--ink); } .ck .ok:hover { background: var(--metal-hi); }
.ck .no { background: transparent; color: var(--chalk); border-right: 1px solid rgba(241, 239, 232, .34); } .ck .no:hover { background: rgba(241, 239, 232, .12); }
.ck a.more { font: 600 13.5px/1.1 var(--sans); color: var(--chalk); text-decoration: underline; text-decoration-color: var(--sang); text-underline-offset: 3px; } .ck a.more:hover { background: rgba(241, 239, 232, .12); }
.ck :focus-visible { outline: 2px solid var(--sang); outline-offset: -4px; }
@media (max-width: 900px) { .ck { left: 10px; bottom: 122px; width: min(448px, calc(100% - 20px)); } }
@media (max-width: 600px) { .ck { grid-template-columns: 82px minmax(0, 1fr); } .ck .ck-k { padding: 12px 8px 12px 12px; font-size: 10px; letter-spacing: .14em; } .ck .ck-k::after { left: 12px; bottom: 12px; width: 26px; height: 26px; } .ck .ck-t { padding: 10px 12px 9px; } .ck .ck-t b { font-size: 18.5px; } .ck .ck-p { padding: 9px 12px 11px; font-size: 13.5px; } .ck button { font-size: 12px; letter-spacing: .1em; } .ck a.more { font-size: 13px; } }
/* seller block: a second sheet of bench paper laid over the bench, above the bar */
footer.seller.panel { bottom: 106px; max-width: 980px; padding: 26px 30px 24px; background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .7); font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
footer.seller b { opacity: 1; color: var(--ink-2); font-size: 11px; letter-spacing: .16em; } footer.seller strong { font: 500 19px/1.3 var(--disp); } footer.seller a { text-decoration-color: var(--red); text-underline-offset: 3px; }
footer.seller .x { top: 8px; right: 12px; color: var(--ink); font-size: 26px; }
@media (max-width: 900px) { footer.seller.panel { bottom: 124px; max-height: 62dvh; overflow: auto; padding: 22px 18px 18px; } }
/* on the legal pages there is no bar under the note block */
body.docbody .ck { --ck-bottom: 12px; bottom: 24px; }

@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; } }
