/* Krisjoy Silk Boutique: FOLDING SCREEN. The shop is a four-leaf screen with a dark lacquer frame, brass hinges,
   a fretwork top and a faint painted branch running across all four leaves. On wide screens the leaves stand in a
   zigzag (CSS 3D) and straighten as they come into view; on small screens they stack flat with the hinges between.
   Products are small framed cards mounted on the silk; the cart is "Your lacquer tray". */
:root {
  --blush: #F3DCD4;
  --champ: #E8D3AE;
  --lacq: #1E1A1C;
  --lacq-2: #2B2427;
  --cinn: #B23A2E;
  --cinn-deep: #8E2C23;
  --brass: #B8955A;
  --brass-deep: #7E6338;
  --paper: #FBF4EF;
  --mat: #FBF3EC;
  --ink: #1E1A1C;
  --muted: #62535A;
  --line: rgba(30, 26, 28, .18);
  --serif: 'Cormorant', 'Iowan Old Style', Georgia, serif;
  --sans: 'Reddit Sans', system-ui, sans-serif;
  --frame: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; color: var(--lacq); text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -.01em; }
a { color: var(--cinn-deep); }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--lacq); color: var(--champ); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cinn); outline-offset: 3px; }
.kicker { font: 600 .78rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--cinn-deep); margin-bottom: 18px; }
.price { font-family: var(--serif); font-weight: 600; }
.cur { margin-right: .06em; }

/* buttons: square-cornered lacquer and cinnabar, like a lacquered box lid */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 0; background: var(--lacq); color: var(--champ); font: 600 .86rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--brass), inset 0 0 0 4px var(--lacq), inset 0 0 0 5px rgba(184, 149, 90, .45); transition: background .2s; }
.btn:hover { background: var(--cinn-deep); }
.btn--line { background: transparent; color: var(--lacq); box-shadow: inset 0 0 0 1.5px var(--lacq); }
.btn--line:hover { background: var(--champ); }
.text-link { color: var(--lacq); font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--brass); }

/* header: the top rail of the screen, solid lacquer */
.header { position: sticky; top: 0; z-index: 100; background: var(--lacq); border-bottom: 3px solid var(--brass); }
.nav { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark-icon { flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-big { font: 600 1.6rem/1 var(--serif); letter-spacing: .24em; color: var(--champ); margin-right: -.24em; }
.brand-small { font: 500 .62rem/1 var(--sans); letter-spacing: .36em; color: var(--brass); margin-top: 5px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: block; padding: 10px 12px; color: var(--champ); text-decoration: none; font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.nav-link:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.nav-close-li { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 10px; border: 1px solid var(--brass); background: transparent; color: var(--champ); font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cart-btn:hover { background: var(--lacq-2); }
.tray-icon { width: 34px; height: 22px; }
.t-rim { fill: var(--cinn); stroke: var(--brass); stroke-width: 1; }
.t-handle { stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.t-piece { fill: var(--champ); opacity: 0; transition: opacity .25s; }
.cart-btn.has-items .t-piece { opacity: 1; }
.cart-count { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; background: var(--brass); color: var(--lacq); font: 600 .8rem/1 var(--sans); letter-spacing: 0; }
.cart-btn.pop .tray-icon { animation: settle .5s ease; }
@keyframes settle { 40% { transform: translateY(-3px); } 70% { transform: translateY(1px); } }
.nav-toggle, .nav-close { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--brass); background: none; color: var(--champ); cursor: pointer; }
.back-link { margin-left: auto; }

/* hero: a blush wall, the photo in a lacquer frame with brass corner fittings */
.hero { padding: 64px 0 0; background: var(--blush); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 5rem); font-weight: 500; letter-spacing: -.015em; }
.hero h1 em { display: block; color: var(--cinn); font-style: italic; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.hero-frame { position: relative; border: 14px solid var(--lacq); box-shadow: inset 0 0 0 1px var(--brass), 0 30px 50px -30px rgba(30, 26, 28, .55); background: var(--lacq); }
.hero-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.corner { position: absolute; width: 30px; height: 30px; border: 3px solid var(--brass); z-index: 1; }
.c-tl { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.c-tr { top: -14px; right: -14px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: -14px; left: -14px; border-right: 0; border-top: 0; }
.c-br { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
/* the panel index: four slim leaves, alternating light and shade like a folded screen seen from the front */
.leaf-index { margin-top: 56px; }
.leaf-index ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border: 8px solid var(--lacq); border-bottom: 0; }
.leaf-index li { position: relative; }
.leaf-index li + li { border-left: 6px solid var(--lacq); }
.leaf-index li + li::before { content: ''; position: absolute; left: -9px; top: 34%; width: 12px; height: 20px; background: var(--brass); box-shadow: 0 32px 0 var(--brass); }
.leaf-index a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 18px 20px 20px; text-decoration: none; color: var(--lacq); background: var(--mat); transition: background .2s; }
.leaf-index li:nth-child(even) a { background: var(--champ); }
.leaf-index a:hover { background: #fff; }
.ix-no { grid-row: span 2; font: 600 1.9rem/1 var(--serif); color: var(--cinn); min-width: 1.6em; }
.ix-name { font: italic 500 1.4rem/1.1 var(--serif); }
.ix-count { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* the screen */
.shop { padding: 88px 0 72px; background: var(--paper); border-top: 8px solid var(--lacq); }
.shop-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; margin-bottom: 44px; }
.shop-head h2 { margin: 0; }
.shop-head p { margin: 0; color: var(--muted); max-width: 38em; }
.screen { --gap: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); max-width: 1400px; margin: 0 auto; padding: 0 24px 30px; perspective: 2200px; align-items: stretch; }
.leaf { position: relative; border: var(--frame) solid var(--lacq); background: var(--lacq); box-shadow: inset 0 0 0 1px rgba(184, 149, 90, .8), 0 26px 30px -26px rgba(30, 26, 28, .6); transform-style: preserve-3d; }
.leaf::after { content: ''; position: absolute; inset: 0; background: var(--lacq); opacity: 0; pointer-events: none; transition: opacity 1.1s ease; }
.leaf-silk { position: relative; height: 100%; overflow: hidden; padding: 0 18px 26px; background-color: var(--blush);
  background-image: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0) 0 26px, rgba(255, 255, 255, .22) 26px 27px, rgba(255, 255, 255, 0) 27px 64px),
                    linear-gradient(98deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .2) 64%, rgba(120, 70, 60, .05)); }
.leaf--2 .leaf-silk, .leaf--4 .leaf-silk { background-color: var(--champ); }
.lattice { display: block; height: 34px; margin: 0 -18px 0; border-bottom: 3px solid var(--lacq);
  background-color: var(--lacq);
  background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(184, 149, 90, .75) 9px 10.5px), repeating-linear-gradient(-45deg, transparent 0 9px, rgba(184, 149, 90, .75) 9px 10.5px); }
.branch { position: absolute; top: 34px; left: 0; width: 100%; height: auto; max-width: 420px; pointer-events: none; opacity: .5; }
.br-stem { fill: none; stroke: var(--lacq); stroke-width: 2.2; stroke-linecap: round; opacity: .38; }
.br-twig { fill: none; stroke: var(--lacq); stroke-width: 1.2; stroke-linecap: round; opacity: .32; }
.bl circle { fill: var(--cinn); opacity: .42; }
.bc { fill: var(--brass); opacity: .9; }
.leaf-head { position: relative; padding: 34px 0 18px; }
.seal { position: absolute; top: 18px; right: 0; min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; background: var(--cinn); color: var(--mat); font: 600 1rem/1 var(--serif); letter-spacing: .04em; box-shadow: inset 0 0 0 2px var(--cinn), inset 0 0 0 3px rgba(251, 243, 236, .7); }
.leaf-no { font: 600 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cinn-deep); margin: 0 0 8px; }
.leaf-head h3 { font-size: clamp(2rem, 2.6vw, 2.6rem); font-style: italic; margin: 0 44px 10px 0; }
.leaf-blurb { font-size: .92rem; color: var(--muted); margin: 0; max-width: 24em; }
/* hinges: brass leaves with a pin, across the gap to the next leaf */
.hinge { position: absolute; z-index: 3; right: calc(-1 * (var(--frame) + var(--gap) / 2 + 11px)); width: 22px; height: 40px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brass) 0 44%, var(--brass-deep) 44% 56%, var(--brass) 56%); box-shadow: inset 0 0 0 1px rgba(30, 26, 28, .35), 0 1px 2px rgba(0, 0, 0, .4); }
.hinge--a { top: 9%; } .hinge--b { top: calc(50% - 20px); } .hinge--c { bottom: 9%; }
.feet { position: absolute; left: 10px; right: 10px; bottom: calc(-1 * var(--frame) - 14px); height: 14px; background: linear-gradient(90deg, var(--lacq) 0 22px, transparent 22px calc(100% - 22px), var(--lacq) calc(100% - 22px)); }
/* mounted pieces */
.pieces { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.pieces--6 { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
.piece { position: relative; display: flex; flex-direction: column; }
.piece-text { flex: 1; display: flex; flex-direction: column; }
.piece-meta { margin-top: auto !important; }
.pieces--6 .piece-meta { flex-direction: column; align-items: flex-start; gap: 0; }
.branch--foot { top: auto; bottom: 0; transform: scaleY(-1); opacity: .42; }
.mount { position: relative; padding: 9px; background: var(--mat); box-shadow: 0 0 0 1px var(--brass), 0 0 0 4px var(--mat), 0 0 0 5px rgba(30, 26, 28, .55), 0 14px 18px -12px rgba(30, 26, 28, .55); margin: 6px 5px 16px; }
.mount img { width: 100%; aspect-ratio: 1; object-fit: cover; outline: 1px solid rgba(184, 149, 90, .6); }
.pin { position: absolute; top: -10px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: inset -2px -2px 0 var(--brass-deep), 0 1px 2px rgba(0, 0, 0, .35); z-index: 1; }
.piece-text h4 { font-size: 1.42rem; font-weight: 600; margin: 0 0 4px; }
.pieces--6 .piece-text h4 { font-size: 1.16rem; }
.piece-desc { font-size: .9rem; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.pieces--6 .piece-desc { font-size: .8rem; }
.piece-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 0 0 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.piece-meta .price { font-size: 1.45rem; color: var(--lacq); }
.pieces--6 .piece-meta .price { font-size: 1.2rem; }
.stock { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tray-add { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; background: var(--cinn); color: var(--mat); font: 600 .76rem/1.15 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 0 0 1px var(--cinn), inset 0 0 0 3px rgba(251, 243, 236, .35); transition: background .2s; }
.tray-add:hover { background: var(--lacq); }
.pieces--6 .tray-add { font-size: .68rem; letter-spacing: .08em; padding: 10px 6px; }
.stepper:not([hidden]) { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 3px 3px 3px 10px; background: var(--lacq); color: var(--champ); }
.on-word { margin-right: auto; font: italic 500 1rem/1.1 var(--serif); color: var(--champ); }
.pieces--6 .on-word { font-size: .88rem; }
.stepper output { min-width: 20px; text-align: center; font-weight: 600; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--brass); background: none; color: var(--champ); cursor: pointer; }
.pieces--6 .stepper button { width: 32px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .icon { width: 16px; height: 16px; }
.product-card.in-cart .mount { box-shadow: 0 0 0 1px var(--brass), 0 0 0 4px var(--mat), 0 0 0 6px var(--cinn), 0 14px 18px -12px rgba(30, 26, 28, .55); }
.screen-end { margin-top: 30px; text-align: center; color: var(--muted); font: italic 500 1.2rem/1.4 var(--serif); }

/* 3D: the leaves stand in a zigzag and straighten as they come into view (wide screens only, set up by site.js) */
@media (min-width: 1100px) {
  .leaf { --ry: 6deg; }
  .leaf:nth-child(even) { --ry: -6deg; }
  .screen.folded .leaf { transform: rotateY(var(--ry)); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) calc(var(--k) * 120ms); }
  .screen.folded .leaf::after { opacity: .12; transition-delay: calc(var(--k) * 120ms); }
  .screen.folded .leaf:nth-child(even)::after { opacity: .22; }
  .screen.folded .leaf.flat { transform: none; }
  .screen.folded .leaf.flat::after { opacity: 0; }
}

/* how to order: a lacquer band */
.how { padding: 96px 0; background: var(--lacq); color: var(--champ); }
.how-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
.how h2 { color: var(--champ); }
.how-photo { border: 1px solid var(--brass); padding: 10px; }
.how-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(184, 149, 90, .45); }
.step-no { font: 600 2.2rem/1 var(--serif); color: var(--brass); }
.steps h3 { color: #fff; font-size: 1.7rem; font-style: italic; margin: 0 0 6px; }
.steps p { margin: 0; color: rgba(232, 211, 174, .86); }

/* story */
.story { padding: 104px 0; background: var(--blush); }
.story-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.story-copy p { max-width: 34em; }
.story-note { margin-top: 26px; padding: 16px 20px; border-left: 4px solid var(--cinn); background: var(--mat); font: italic 500 1.2rem/1.45 var(--serif); }
.story-tray { width: 100%; border: 12px solid var(--lacq); box-shadow: inset 0 0 0 1px var(--brass); max-width: 440px; justify-self: end; }
.story-tray img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* faq */
.faq { padding: 100px 0; background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; }
.faq h2 { position: sticky; top: 110px; align-self: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 500 1.5rem/1.2 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { flex: none; color: var(--cinn); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; max-width: 40em; color: var(--muted); }

/* contact */
.contact { padding: 100px 0; background: var(--champ); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.contact-photo { width: 100%; border: 12px solid var(--lacq); box-shadow: inset 0 0 0 1px var(--brass); max-width: 420px; }
.contact-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.contact dl { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin: 30px 0 0; }
.dl-wide { grid-column: 1 / -1; }
.contact dt { font: 600 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cinn-deep); margin-bottom: 6px; }
.contact dd { margin: 0; font: 500 1.3rem/1.4 var(--serif); overflow-wrap: anywhere; }

/* footer: the base rail of the screen */
.footer { position: relative; padding: 64px 0 28px; background: var(--lacq); color: rgba(232, 211, 174, .85); font-size: .94rem; }
.foot-rail { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--brass); box-shadow: 0 6px 0 var(--lacq), 0 7px 0 rgba(184, 149, 90, .5); }
.footer a { color: var(--champ); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-line { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-note { font: italic 500 1.15rem/1.4 var(--serif); max-width: 16em; }
.foot-col h2 { font: 600 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col p { margin: 0 0 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(184, 149, 90, .35); font-size: .84rem; }

/* the lacquer tray (cart drawer) */
.cart-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(30, 26, 28, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--lacq); color: var(--champ); border-left: 3px solid var(--brass); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 8px; }
.cart-head h2 { font-size: 2.1rem; font-style: italic; margin: 0; color: var(--champ); }
.cart-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--brass); background: none; color: var(--champ); cursor: pointer; }
.tray { position: relative; margin: 10px 22px 0; padding: 12px; border-radius: 14px; background: #120f10; box-shadow: inset 0 0 0 1px var(--brass), 0 10px 18px -8px rgba(0, 0, 0, .7); }
.tray::before, .tray::after { content: ''; position: absolute; top: calc(50% - 14px); width: 10px; height: 28px; border: 2px solid var(--brass); }
.tray::before { left: -8px; border-right: 0; border-radius: 6px 0 0 6px; }
.tray::after { right: -8px; border-left: 0; border-radius: 0 6px 6px 0; }
.tray-bed { position: relative; height: 150px; border-radius: 8px; background-color: var(--cinn-deep); background-image: linear-gradient(100deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .12)); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55); overflow: hidden; }
.laid { position: absolute; width: 17%; aspect-ratio: 1; transform: rotate(var(--r)); background: var(--mat); padding: 3px; box-shadow: 0 4px 6px rgba(0, 0, 0, .45); }
.laid img { width: 100%; height: 100%; object-fit: cover; }
.laid.new { animation: lay .45s ease-out; }
@keyframes lay { from { opacity: 0; transform: translateY(-16px) rotate(calc(var(--r) - 10deg)) scale(1.1); } }
.laid-more { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; background: var(--brass); color: var(--lacq); font: 600 .8rem/1.2 var(--sans); }
.tray-sum { margin: 14px 22px 0; font: italic 500 1.1rem/1.4 var(--serif); color: var(--champ); }
.tray-sum .price { font-style: normal; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(184, 149, 90, .3); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--brass); }
.cart-item h3 { font-size: 1.25rem; color: var(--champ); margin: 0 0 6px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(184, 149, 90, .6); }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--champ); cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.qty .icon { width: 15px; height: 15px; }
.cart-item-sub { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.cart-remove { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--brass); font: 500 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-empty { padding: 20px 0; }
.cart-empty p { font: italic 500 1.3rem/1.4 var(--serif); }
.cart-empty .btn { background: var(--cinn); }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--brass); }
.cart-foot .btn { width: 100%; background: var(--cinn); box-shadow: inset 0 0 0 1px var(--cinn), inset 0 0 0 4px var(--cinn), inset 0 0 0 5px rgba(251, 243, 236, .4); }
.cart-foot .btn:hover { background: var(--cinn-deep); }
.cart-foot p { margin: 12px 0 0; font-size: .86rem; color: rgba(232, 211, 174, .8); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total .price { font-size: 1.7rem; color: #fff; }

/* order and legal pages */
.header--plain .nav { min-height: 72px; }
.order-page { padding: 64px 0 96px; background: var(--paper); }
.order-intro h1, .legal-head h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-style: italic; }
.order-intro .lede { margin-bottom: 36px; }
.order { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.order-form h2, .summary h2 { font-size: 1.9rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid rgba(30, 26, 28, .45); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cinn); outline-offset: 1px; border-color: var(--cinn); }
.field [aria-invalid="true"] { border-color: var(--cinn); background: #fff6f4; }
.field-hint { margin: 6px 0 0; font-size: .84rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .86rem; color: var(--cinn-deep); font-weight: 600; }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: 8px; background: var(--cinn); }
.summary { padding: 26px; background: var(--lacq); color: var(--champ); border: 1px solid var(--brass); box-shadow: inset 0 0 0 5px var(--lacq), inset 0 0 0 6px rgba(184, 149, 90, .5); }
.summary h2 { color: var(--champ); font-style: italic; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 11px 0; border-bottom: 1px solid rgba(184, 149, 90, .3); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.summary small { display: block; color: rgba(232, 211, 174, .75); font-size: .82rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.summary-total .price { font-size: 1.7rem; color: #fff; }
.summary-note a { color: var(--brass); }
.sent { max-width: 640px; padding: 32px 0; }
.sent h2 { font-style: italic; }
.sent-copy { margin-top: 26px; }
.sent-copy pre { white-space: pre-wrap; padding: 16px; background: var(--mat); border: 1px solid var(--line); font-size: .86rem; }
.legal-head { padding: 60px 0 10px; background: var(--blush); border-bottom: 6px solid var(--lacq); }
.legal-body { padding: 40px 32px 90px; }
.legal { max-width: 720px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.4em; }

@media (max-width: 1180px) {
  .nav { gap: 12px; }
  .nav-link { padding: 10px 8px; letter-spacing: .1em; }
}
/* below 1100px the leaves stack flat; hinges sit between them, along the bottom edge */
@media (max-width: 1099px) {
  .screen { grid-template-columns: 1fr; gap: 26px; --gap: 26px; max-width: 860px; padding: 0 32px 30px; }
  .hinge { right: auto; top: auto; bottom: calc(-1 * (var(--frame) + var(--gap) / 2 + 11px)); width: 40px; height: 22px;
    background: linear-gradient(180deg, var(--brass) 0 44%, var(--brass-deep) 44% 56%, var(--brass) 56%); }
  .hinge--a { left: 10%; } .hinge--b { left: calc(50% - 20px); } .hinge--c { left: auto; right: 10%; }
  .feet { display: none; }
  .leaf--4 .feet { display: block; }
  .pieces, .pieces--6 { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .pieces--6 .piece-text h4, .piece-text h4 { font-size: 1.25rem; }
  .branch { left: auto; right: 0; max-width: 340px; }
}
@media (max-width: 959px) {
  .nav-toggle { display: grid; order: 3; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 120; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 32px 28px; background: var(--lacq); }
  .nav-list.open .nav-link { color: var(--champ); font: italic 500 2.3rem/1.25 var(--serif); letter-spacing: 0; text-transform: none; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 16px; right: 16px; }
  .nav-list.open .nav-close { display: grid; }
  .hero-grid, .shop-head, .how-grid, .story-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .leaf-index ol { grid-template-columns: repeat(2, 1fr); }
  .leaf-index li:nth-child(3) { border-left: 0; }
  .leaf-index li:nth-child(3)::before { display: none; }
  .leaf-index li:nth-child(n + 3) { border-top: 6px solid var(--lacq); }
  .leaf-index li:nth-child(3) a { background: var(--champ); }
  .leaf-index li:nth-child(4) a { background: var(--mat); }
  .shop-head { gap: 16px; }
  .faq h2 { position: static; }
  .story-tray, .contact-photo { justify-self: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-line { grid-column: 1 / -1; }
  .order { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav { min-height: 64px; gap: 8px; }
  .mark-icon { width: 28px; height: 25px; }
  .brand { gap: 9px; }
  .brand-big { font-size: 1.28rem; letter-spacing: .18em; margin-right: -.18em; }
  .brand-small { font-size: .54rem; letter-spacing: .26em; }
  .cart-word { display: none; }
  .cart-btn { padding: 6px 8px; gap: 6px; }
  .nav-toggle { width: 44px; height: 44px; }
  .hero { padding-top: 40px; }
  .hero-frame { border-width: 10px; }
  .corner { width: 22px; height: 22px; }
  .c-tl { top: -10px; left: -10px; } .c-tr { top: -10px; right: -10px; } .c-bl { bottom: -10px; left: -10px; } .c-br { bottom: -10px; right: -10px; }
  .leaf-index { margin-top: 40px; padding: 0 16px; }
  .leaf-index a { padding: 14px 12px 16px; gap: 2px 10px; }
  .ix-no { font-size: 1.5rem; }
  .ix-name { font-size: 1.15rem; }
  .ix-count { font-size: .7rem; }
  .shop { padding: 64px 0 56px; }
  .screen { --frame: 9px; --gap: 24px; padding: 0 16px 26px; }
  .leaf-silk { padding: 0 12px 22px; }
  .lattice { margin: 0 -12px; height: 26px; }
  .leaf-head { padding-top: 26px; }
  .seal { top: 14px; }
  .pieces, .pieces--6 { grid-template-columns: 1fr 1fr; gap: 24px 10px; }
  .pieces--3 .piece:first-child { grid-column: 1 / -1; }
  .pieces--3 .piece:first-child .mount { margin: 6px 12% 16px; }
  .mount { padding: 6px; margin: 6px 4px 14px; }
  .piece-text h4, .pieces--6 .piece-text h4 { font-size: 1.12rem; }
  .piece-desc, .pieces--6 .piece-desc { font-size: .8rem; }
  .piece-meta .price, .pieces--6 .piece-meta .price { font-size: 1.15rem; }
  .stock { font-size: .66rem; }
  .tray-add, .pieces--6 .tray-add { font-size: .66rem; letter-spacing: .06em; padding: 10px 4px; }
  .stepper:not([hidden]) { padding-left: 6px; gap: 2px; }
  .on-word, .pieces--6 .on-word { font-size: .82rem; }
  .stepper button, .pieces--6 .stepper button { width: 30px; height: 36px; }
  .how, .story, .faq, .contact { padding: 72px 0; }
  .steps li { grid-template-columns: 48px 1fr; gap: 12px; }
  .contact dl { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .legal-body { padding: 32px 16px 72px; }
  .summary { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-btn.pop .tray-icon, .laid.new { animation: none; }
  .cart-sidebar, .cart-overlay, .btn, .tray-add, .t-piece, .leaf, .leaf::after, .leaf-index a, .faq-list summary .icon { transition: none; }
}
