/* Angecy Trinket Box: CHARM BRACELET. One long gold-tone chain (SVG links drawn by site.js through every jump ring)
   runs down the shop in gentle curves; each product hangs from it as a charm (heart, round, drop, square); the
   sections are lengths of the chain; the cart is "Your bracelet", where the charms clip on. */
@font-face { font-family: 'Peso Serif'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Peso-serif.woff2) format('woff2'); unicode-range: U+20B1; }
@font-face { font-family: 'Peso Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/Peso-sans.woff2) format('woff2'); unicode-range: U+20B1; }
:root {
  --blush: #F4D8D3;
  --blush-2: #ECC7C0;
  --gold: #C9A24A;
  --gold-deep: #85661F;
  --gold-shine: linear-gradient(150deg, #E6CC86 0%, #C9A24A 42%, #A9842F 100%);
  --plum: #5B2A45;
  --plum-deep: #47203A;
  --pearl: #FBF6F1;
  --ink: #2A1F24;
  --muted: #65525B;
  --line: rgba(91, 42, 69, .22);
  --hole: var(--pearl);
  --serif: 'Peso Serif', 'Bodoni Moda', Didot, 'Times New Roman', serif;
  --sans: 'Peso Sans', 'Jost', system-ui, sans-serif;
  --m-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 95 C22 74 3 56 3 32 C3 15 15 5 29 5 C39 5 46 11 50 19 C54 11 61 5 71 5 C85 5 97 15 97 32 C97 56 78 74 50 95Z'/%3E%3C/svg%3E");
  --m-round: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='49'/%3E%3C/svg%3E");
  --m-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 1 C58 16 91 44 91 66 C91 86 73 99 50 99 C27 99 9 86 9 66 C9 44 42 16 50 1Z'/%3E%3C/svg%3E");
  --m-square: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='5' y='5' width='90' height='90' rx='16'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--pearl); 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.08; margin: 0 0 .5em; color: var(--plum); text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -.01em; }
a { color: var(--plum); }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
.wrap { width: 100%; max-width: 1264px; 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(--plum); color: var(--pearl); }
.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(--plum); outline-offset: 3px; }
.kicker { font: 600 .78rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.price { font-family: var(--serif); font-weight: 600; }
.cur { margin-right: 1px; }

/* chain: one path drawn three times. Flat links, their holes, and the edge-on links in between */
.chain path { fill: none; }
.ch-a { stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 10 14; }
.ch-b { stroke: var(--hole); stroke-width: 2.2; stroke-dasharray: 8 16; stroke-dashoffset: -1; }
.ch-c { stroke: var(--gold-deep); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 9 15; stroke-dashoffset: -12.5; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 28px; border: 1.5px solid var(--plum); background: var(--plum); color: var(--pearl); font: 600 .82rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--plum-deep); }
.btn--line { background: transparent; color: var(--plum); }
.btn--line:hover { background: var(--plum); color: var(--pearl); }
.text-link { font-weight: 500; color: var(--plum); text-underline-offset: 5px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* header */
.header { position: sticky; top: 0; z-index: 100; background: var(--pearl); border-bottom: 1px solid var(--gold); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark-icon { width: 34px; height: 34px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-big { font: 600 1.42rem/1 var(--serif); letter-spacing: .2em; color: var(--plum); }
.brand-small { font: 500 .6rem/1 var(--sans); letter-spacing: .44em; color: var(--gold-deep); margin-top: 6px; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: block; padding: 10px 12px; font: 500 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--plum); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-close-li { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px 6px 10px; border: 1.5px solid var(--plum); border-radius: 999px; background: var(--pearl); color: var(--plum); font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.bracelet-icon { width: 28px; height: 28px; }
.bracelet-icon .loop { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 2; }
.bead { fill: var(--pearl); stroke: var(--gold-deep); stroke-width: 1.2; transition: fill .2s; }
.bead.on { fill: var(--plum); stroke: var(--plum); }
.cart-count { min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--blush); color: var(--plum); font-size: .78rem; letter-spacing: 0; }
.cart-btn.has-items .cart-count { background: var(--plum); color: var(--pearl); }
.cart-btn.pop .bracelet-icon { animation: jingle .5s ease; }
@keyframes jingle { 30% { rotate: -14deg; } 65% { rotate: 9deg; } }
.nav-toggle, .nav-close { display: none; place-items: center; width: 46px; height: 46px; background: none; border: 1.5px solid var(--plum); border-radius: 50%; color: var(--plum); cursor: pointer; }
.back-link { margin-left: auto; }

/* hero: a locket on a swag of chain */
.hero { background: var(--blush); --hole: var(--blush); padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 5.4rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.hero h1 em { display: block; font-style: italic; color: var(--gold-deep); }
.lede { font-size: 1.1rem; max-width: 34em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.hero-locket { position: relative; padding-top: 70px; max-width: 480px; justify-self: center; width: 100%; }
.hero-chain { position: absolute; top: 0; left: -12%; width: 124%; height: auto; overflow: visible; }
.jump { display: block; width: 22px; height: 22px; border: 3.5px solid var(--gold); border-radius: 50%; position: relative; z-index: 2; background: transparent; }
.jump::after { content: ''; position: absolute; left: 50%; top: 100%; width: 4px; height: var(--bail, 6px); margin-left: -2px; background: var(--gold); border-radius: 0 0 2px 2px; }
.jump--hero { position: absolute; top: 58px; left: 50%; margin-left: -13px; width: 26px; height: 26px; --bail: 18px; }
.locket { margin: 20px auto 0; width: 84%; aspect-ratio: 5 / 6; padding: 11px; border-radius: 50%; background: var(--gold-shine); }
.locket img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; border-radius: 50%; border: 3px solid var(--pearl); }
.ruler { margin-top: 56px; padding-bottom: 0; }
.ruler-label { font: 600 .74rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0; padding-bottom: 14px; }
.ruler ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px dashed var(--gold); }
.ruler li + li { border-left: 1px solid rgba(133, 102, 31, .35); }
.ruler a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 18px 18px 22px; text-decoration: none; color: var(--plum); transition: background-color .2s; }
.ruler a:hover { background: rgba(251, 246, 241, .6); }
.ruler-no { grid-row: span 2; font: italic 500 2rem/1 var(--serif); color: var(--gold-deep); }
.ruler-name { font: 500 1.25rem/1.1 var(--serif); }
.ruler-count { font-size: .82rem; color: var(--muted); }

/* shop: the long chain */
.shop { padding: 88px 0 40px; background: var(--pearl); }
.shop-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 12px; }
.shop-head h2 { margin: 0; }
.shop-head p { margin: 0; max-width: 34em; color: var(--muted); }
.run { position: relative; padding-top: 48px; }
.run-chain { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.length { position: relative; z-index: 1; padding: 30px 0 30px; }
.length-head { position: relative; max-width: 470px; padding-left: 60px; margin-bottom: 34px; }
.length--r .length-head { margin-left: auto; padding: 0 60px 0 0; text-align: right; }
.clasp { position: absolute; left: 12px; top: 10px; width: 24px; height: 34px; border: 4.5px solid var(--gold); border-radius: 46% 46% 50% 50% / 38% 38% 62% 62%; background: var(--pearl); }
.clasp::after { content: ''; position: absolute; right: -8px; top: 5px; width: 6px; height: 12px; border-radius: 3px; background: var(--gold-deep); }
.length--r .clasp { left: auto; right: 12px; }
.length-no { font: 600 .74rem/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.length-head h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-style: italic; font-weight: 400; margin-bottom: 8px; }
.length-blurb { color: var(--muted); margin: 0; }
.charms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-around; }
.charm { position: relative; flex: 0 0 25%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px 44px; }
.length--3 .charm, .length--5 .charm { flex-basis: 31%; }
.charm:nth-child(even) { margin-top: 64px; }
.charm .anchor { position: absolute; top: 10px; left: 50%; width: 2px; height: 2px; margin-left: -1px; }
.bail { display: none; }
.charm-hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 11px; }
.charm--heart { --bail: 32px; }
.charm--drop { --bail: 4px; }
.charm--round { --bail: 7px; }
.charm--square { --bail: 12px; }
.charm-shape { position: relative; width: 214px; aspect-ratio: 1; margin-top: 0; background: var(--gold-shine); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.charm--drop .charm-shape { aspect-ratio: 5 / 6; width: 196px; }
.charm-shape img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.charm--heart, .mini--heart { --m: var(--m-heart); }
.charm--round, .mini--round { --m: var(--m-round); }
.charm--drop, .mini--drop { --m: var(--m-drop); }
.charm--square, .mini--square { --m: var(--m-square); }
.charm:hover .charm-hang, .charm:focus-within .charm-hang { animation: sway 2.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 25% { rotate: 3deg; } 75% { rotate: -3deg; } }
.charm-text { margin-top: 18px; max-width: 250px; }
.charm h4 { font-size: 1.32rem; margin-bottom: 4px; }
.charm-desc { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }
.charm-meta { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.charm-meta .price { font-size: 1.4rem; color: var(--plum); }
.stock { font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.add-charm { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px; border: 1.5px solid var(--plum); background: transparent; color: var(--plum); font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.add-charm:hover { background: var(--plum); color: var(--pearl); }
.ring-ico { width: 13px; height: 13px; border: 2.5px solid var(--gold); border-radius: 50%; }
.stepper:not([hidden]) { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.on-word { width: 100%; font: 600 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--plum); }
.stepper output { min-width: 28px; font: 600 1.15rem/1 var(--serif); color: var(--plum); text-align: center; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--plum); border-radius: 50%; background: var(--pearl); color: var(--plum); cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .icon { width: 16px; height: 16px; }
.product-card.in-cart .charm-hang { filter: drop-shadow(0 0 1.5px var(--plum)) drop-shadow(0 8px 10px rgba(91, 42, 69, .22)); }
.run-end { position: relative; z-index: 1; text-align: center; padding: 20px 0 8px; color: var(--muted); }
.clasp--end { position: relative; display: block; left: auto; top: auto; margin: 0 auto 14px; }

/* how: three big links */
.how { background: var(--blush); --hole: var(--blush); padding: 96px 0; }
.links { list-style: none; margin: 40px 0 56px; padding: 0; display: flex; }
.links li { position: relative; flex: 1; padding: 46px 70px 50px; border: 11px solid var(--gold); border-radius: 999px; }
.links li + li { margin-left: -54px; }
.links li:nth-child(2) { border-color: var(--gold-deep); border-width: 9px; }
.link-no { display: block; font: italic 500 2.6rem/1 var(--serif); color: var(--gold-deep); margin-bottom: 8px; }
.links h3 { font-size: 1.55rem; }
.links p { margin: 0; color: var(--ink); font-size: .98rem; }
.how-photo img { width: 100%; height: 340px; object-fit: cover; border: 1px solid var(--gold); padding: 8px; background: var(--pearl); }

/* story: an arched mirror */
.story { padding: 104px 0; }
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.story-mirror { padding: 12px; border-radius: 999px 999px 10px 10px; background: var(--gold-shine); max-width: 420px; }
.story-mirror img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 999px 999px 4px 4px; }
.story-copy p { font-size: 1.08rem; max-width: 36em; }
.story-note { border-left: 3px solid var(--gold); padding-left: 18px; font-style: italic; color: var(--muted); }

/* faq */
.faq { background: var(--plum); color: var(--pearl); padding: 96px 0; }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; }
.faq h2 { color: var(--pearl); }
.faq-list details { border-bottom: 1px solid rgba(201, 162, 74, .45); }
.faq-list details:first-child { border-top: 1px solid rgba(201, 162, 74, .45); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 1.28rem/1.3 var(--serif); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { flex: none; color: var(--gold); transition: rotate .2s; }
.faq-list details[open] summary .icon { rotate: 45deg; }
.faq-list details p { margin: 0 0 22px; max-width: 40em; color: var(--blush); }
.faq a { color: var(--pearl); text-decoration-color: var(--gold); }

/* contact: a jewellery box lid */
.contact { background: var(--blush); padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.contact-card { background: var(--pearl); padding: 52px 52px 40px; outline: 1px solid var(--gold); outline-offset: -12px; border: 1px solid var(--line); }
.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 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.contact dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--gold); padding: 8px; background: var(--pearl); }

/* footer */
.footer { position: relative; background: var(--ink); color: var(--blush); --hole: var(--ink); padding: 64px 0 28px; }
.foot-chain { position: absolute; left: 0; top: -14px; width: 100%; height: 40px; overflow: visible; }
.footer a { color: var(--pearl); text-decoration-color: rgba(201, 162, 74, .6); }
.footer a:hover { color: var(--gold); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-line { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.foot-mark { flex: none; }
.foot-brand .brand-big { color: var(--pearl); }
.foot-brand .brand-small { color: var(--gold); }
.foot-note { display: block; max-width: 22em; font: italic 400 1.05rem/1.4 var(--serif); color: var(--blush); }
.foot-col h2 { font: 600 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col p { font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(201, 162, 74, .3); font-size: .85rem; color: rgba(244, 216, 211, .8); }

/* cart: your bracelet */
.cart-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(42, 31, 36, .45); 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(--pearl); border-left: 1px solid var(--gold); 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 6px; }
.cart-head h2 { font-size: 2rem; font-style: italic; font-weight: 400; margin: 0; }
.cart-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--plum); border-radius: 50%; background: none; color: var(--plum); cursor: pointer; }
.bracelet { position: relative; flex: none; margin: 0 22px; aspect-ratio: 2 / 1; }
.bracelet-loop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bracelet-clasp { position: absolute; left: 50%; top: 15%; width: 18px; height: 24px; margin: -12px 0 0 -9px; border: 4px solid var(--gold); border-radius: 46% 46% 50% 50% / 38% 38% 62% 62%; background: var(--pearl); }
.bracelet-charms { position: absolute; inset: 0; }
.mini { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -5px); }
.mini-ring { width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 50%; }
.mini-shape { position: relative; width: 34px; height: 34px; margin-top: -1px; background: var(--gold-shine); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.mini-shape img { position: absolute; inset: 3px; width: 28px; height: 28px; object-fit: cover; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.mini.new { animation: clip-on .45s cubic-bezier(.3, 1.5, .6, 1) both; }
@keyframes clip-on { from { opacity: 0; translate: 0 -16px; } }
.mini-more { position: absolute; right: 0; bottom: 4px; font: 600 .85rem/1 var(--sans); color: var(--plum); }
.bracelet-sum { margin: 4px 22px 8px; text-align: center; font: italic 400 1.05rem/1.3 var(--serif); color: var(--plum); }
.cart-items { flex: 1; overflow-y: auto; padding: 4px 22px; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); }
.cart-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--plum); border-radius: 50%; background: none; color: var(--plum); 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; color: var(--plum); }
.cart-remove { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: 500 .8rem/1 var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cart-empty { padding: 26px 0; text-align: center; }
.cart-empty p { font: italic 400 1.2rem/1.3 var(--serif); color: var(--plum); }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--gold); background: var(--blush); }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 500; }
.cart-total .price { font-size: 1.5rem; color: var(--plum); }

/* order page and legal pages */
.header--plain { position: static; }
.order-page { padding: 64px 0 96px; }
.order-intro h1, .legal-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-style: italic; font-weight: 400; }
.order-intro .lede { color: var(--muted); }
.order { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; margin-top: 32px; }
.order-form h2, .summary h2 { font-size: 1.7rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); outline: 2px solid var(--gold); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #A3283F; }
.field-hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .88rem; color: #A3283F; font-weight: 500; }
.field-error:empty { display: none; }
.order-submit { width: 100%; }
.summary { padding: 30px; background: var(--blush); outline: 1px solid var(--gold); outline-offset: -10px; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary td:last-child { text-align: right; font-family: var(--serif); font-weight: 600; white-space: nowrap; padding-left: 12px; }
.summary small { display: block; color: var(--muted); font-size: .85rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-weight: 500; }
.summary-total .price { font-size: 1.5rem; color: var(--plum); }
.summary-note { margin: 14px 0 0; font-size: .92rem; }
.sent { max-width: 640px; padding: 40px 0; }
.sent h2 { font-size: 2.2rem; }
.sent-copy { margin-top: 26px; }
.sent-copy pre { white-space: pre-wrap; margin-top: 14px; padding: 18px; background: var(--blush); font: .9rem/1.5 var(--sans); }
.legal-head { background: var(--blush); padding: 64px 0 40px; }
.legal-body { padding-top: 48px; padding-bottom: 96px; }
.legal { max-width: 720px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }

@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav-link { padding: 10px 8px; letter-spacing: .1em; }
}
@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(--plum); }
  .nav-list.open .nav-link { color: var(--pearl); font: italic 400 2.2rem/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; border-color: var(--gold); color: var(--pearl); }
  .hero-grid, .story-grid, .contact-grid, .faq-grid, .shop-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 20px; }
  .ruler ol { grid-template-columns: repeat(2, 1fr); }
  .ruler li:nth-child(3) { border-left: 0; }
  .ruler li:nth-child(n + 3) { border-top: 1px solid rgba(133, 102, 31, .35); }
  .charm, .length--3 .charm, .length--5 .charm { flex-basis: 50%; }
  .charm:nth-child(even) { margin-top: 40px; }
  .links { flex-direction: column; }
  .links li { padding: 40px 48px 44px; border-radius: 120px; }
  .links li + li { margin: -40px 0 0; }
  .story-mirror { max-width: 360px; }
  .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: 66px; gap: 10px; }
  .mark-icon { width: 28px; height: 28px; }
  .brand { gap: 9px; }
  .brand-big { font-size: 1.12rem; letter-spacing: .16em; }
  .brand-small { font-size: .52rem; letter-spacing: .36em; margin-top: 5px; }
  .cart-word { display: none; }
  .cart-btn { padding: 5px 10px 5px 8px; gap: 6px; }
  .hero { padding-top: 36px; }
  .hero-locket { padding-top: 54px; max-width: 340px; }
  .jump--hero { top: 42px; }
  .ruler { margin-top: 40px; }
  .ruler a { padding: 14px 10px 16px; gap: 2px 10px; }
  .ruler-no { font-size: 1.5rem; }
  .ruler-name { font-size: 1.05rem; }
  .shop { padding-top: 64px; }
  /* the chain runs down the left edge; charms hang to its right */
  .run { padding-top: 36px; }
  .length { padding: 18px 0 10px; }
  .length-head, .length--r .length-head { margin: 0 0 26px; padding: 0 0 0 54px; text-align: left; }
  .clasp, .length--r .clasp { left: 10px; right: auto; top: 6px; }
  .charm, .length--3 .charm, .length--5 .charm { flex-basis: 100%; display: grid; grid-template-columns: 118px 1fr; gap: 0 14px; align-items: start; text-align: left; padding: 0 0 30px 54px; margin-top: 0; }
  .charm:nth-child(even) { margin-top: 0; }
  .charm .anchor { left: 22px; }
  .charm:nth-child(even) .anchor { left: 30px; }
  .bail { display: block; position: absolute; left: 22px; top: 9.5px; width: 84px; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 7px, transparent 7px 10px); }
  .charm:nth-child(even) .bail { left: 30px; width: 76px; }
  .charm-shape { width: 118px; }
  .charm--drop .charm-shape { width: 106px; }
  .charm--heart { --bail: 18px; }
  .charm--square { --bail: 7px; }
  .charm-shape img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
  .charm-text { margin-top: 2px; }
  .charm h4 { font-size: 1.14rem; }
  .charm-desc { font-size: .9rem; }
  .charm-meta { justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
  .charm-meta .price { font-size: 1.25rem; }
  .add-charm { padding: 10px 14px; letter-spacing: .1em; }
  .stepper:not([hidden]) { justify-content: flex-start; }
  .run-end { text-align: left; padding-left: 54px; }
  .clasp--end { position: absolute; left: 10px; top: 14px; margin: 0; }
  .how, .story, .faq, .contact { padding: 72px 0; }
  .links li { padding: 32px 30px 36px; border-width: 8px; border-radius: 90px; }
  .links li:nth-child(2) { border-width: 7px; }
  .links li + li { margin-top: -30px; }
  .link-no { font-size: 2rem; }
  .how-photo img { height: 220px; }
  .contact-card { padding: 36px 26px 28px; }
  .contact dl { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .summary { padding: 24px 20px; }
  .story-mirror { max-width: 260px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .charm:hover .charm-hang, .charm:focus-within .charm-hang, .mini.new, .cart-btn.pop .bracelet-icon { animation: none; }
  .cart-sidebar, .cart-overlay, .btn, .add-charm, .bead, .ruler a, .faq-list summary .icon { transition: none; }
}
