/* Gleimar Seam Apparel: BUTTON CARD. A set of vintage haberdashery button cards; every piece is sewn on. */
:root {
  --kraft: #E6D5B8;
  --kraft-dk: #D6C19D;
  --kraft-ink: #7A6545;
  --red: #B83A2E;
  --red-dk: #962C22;
  --navy: #1F3A5F;
  --navy-dk: #152A46;
  --mustard: #D9A93B;
  --cream: #FAF6EE;
  --ink: #23293A;
  --ink-2: #555A66;
  --hair: rgba(31, 58, 95, .16);
  --serif: 'Newsreader', 'Georgia', serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --rim: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17.5px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--red-dk); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.06; margin: 0; color: var(--navy); font-optical-sizing: auto; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--cream); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.cur { font-family: var(--sans); font-weight: 500; margin-right: .06em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; background: var(--navy); color: var(--cream); border: 0; outline: 1px dashed rgba(250, 246, 238, .55); outline-offset: -6px; font: 600 16px/1 var(--sans); letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--red); color: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); outline-color: rgba(31, 58, 95, .35); }
.btn--line:hover { background: var(--navy); color: var(--cream); }
.text-link { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--red); text-decoration-style: dashed; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 20px; font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red-dk); }
.kicker span + span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 14px 1px; border-radius: 50%; background: var(--mustard); box-shadow: inset 0 0 0 2px var(--mustard), inset 0 0 0 3px rgba(31, 58, 95, .45); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1.5px solid var(--navy); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; margin-right: auto; }
.mark-icon { flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.bw-top { font: 750 25px/1 var(--serif); letter-spacing: .2em; margin-right: -.2em; color: var(--navy); }
.bw-bot { font: 600 10px/1 var(--sans); letter-spacing: .38em; color: var(--red); margin-top: 6px; }
.nav-list { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-link { color: var(--navy); text-decoration: none; font-size: 16px; font-weight: 500; padding: 6px 0; background: repeating-linear-gradient(90deg, var(--red) 0 7px, transparent 7px 11px) left bottom / 0 2px no-repeat; transition: background-size .3s; }
.nav-link:hover { color: var(--navy); background-size: 100% 2px; }
.nav-close-li { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 8px 0 10px; background: var(--kraft); border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); font: 600 15.5px/1 var(--sans); cursor: pointer; }
.cart-btn:hover { background: var(--kraft-dk); }
.tin-icon { width: 26px; height: 26px; }
.ti-rim { fill: var(--mustard); stroke: var(--navy); stroke-width: 1.3; }
.ti-in { fill: #6E5B40; }
.ti-b { fill: var(--cream); opacity: 0; transition: opacity .25s; }
.ti-b.b2 { fill: var(--red); } .ti-b.b3 { fill: var(--navy); stroke: var(--cream); stroke-width: .6; }
.cart-btn.has-items .ti-b { opacity: 1; }
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--red); color: var(--cream); font: 600 13px/26px var(--sans); text-align: center; }
.cart-btn.pop .cart-count { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }
.nav-toggle, .nav-close { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--navy); border-radius: 50%; color: var(--navy); cursor: pointer; }
.back-link { margin-left: auto; }

/* ---------- shared: kraft card with a printed navy double border ---------- */
.card-sheet, .hero-card, .card-back, .summary { position: relative; background-color: var(--kraft);
  background-image: radial-gradient(rgba(122, 101, 69, .16) .8px, transparent 1.2px), radial-gradient(rgba(255, 255, 255, .22) .8px, transparent 1.2px);
  background-size: 7px 9px, 11px 7px; background-position: 0 0, 3px 4px;
  border-radius: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 34px -26px rgba(60, 40, 15, .7); }
.card-sheet::before, .hero-card::before, .card-back::before, .summary::before { content: ""; position: absolute; inset: 13px; border: 2.5px solid var(--navy); border-radius: 3px; pointer-events: none; }
.card-sheet::after, .hero-card::after, .card-back::after, .summary::after { content: ""; position: absolute; inset: 19px; border: 1px solid var(--navy); border-radius: 2px; pointer-events: none; }
.slot { position: absolute; z-index: 1; top: 27px; left: 50%; width: 74px; height: 15px; margin-left: -37px; border-radius: 8px; background: var(--cream); box-shadow: inset 0 2px 3px rgba(40, 25, 10, .35); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(46px, 5.8vw, 82px); font-weight: 720; line-height: .98; letter-spacing: -.025em; margin-bottom: 26px; }
.hero h1 em { display: block; font-style: italic; font-weight: 480; color: var(--red); letter-spacing: -.02em; }
.lede { font-size: 19px; max-width: 34em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.hero-card { padding: 60px 40px 34px; }
.hc-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -12px; padding: 12px 18px; background: var(--navy); color: var(--kraft); box-shadow: 0 0 0 3px var(--kraft), 0 0 0 4px var(--navy); font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hc-name { font: 750 28px/1 var(--serif); letter-spacing: .22em; margin-right: -.22em; text-transform: uppercase; color: var(--cream); }
.hc-photo { margin-top: 22px; padding: 7px; background: var(--cream); border: 2px solid var(--navy); }
.hc-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hc-row { display: flex; justify-content: center; gap: 26px; margin: 26px 0 14px; }
.deco { --c: var(--navy); --h: var(--kraft); position: relative; width: 46px; height: 46px; border-radius: 50%; background-color: var(--c);
  background-image: radial-gradient(circle at 39% 39%, var(--h) 0 2.6px, transparent 3.2px), radial-gradient(circle at 61% 39%, var(--h) 0 2.6px, transparent 3.2px), radial-gradient(circle at 39% 61%, var(--h) 0 2.6px, transparent 3.2px), radial-gradient(circle at 61% 61%, var(--h) 0 2.6px, transparent 3.2px);
  box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 5px rgba(0, 0, 0, .18), 0 5px 8px -5px rgba(40, 25, 10, .6); }
.deco::before { content: ""; position: absolute; left: calc(39% - 1px); width: calc(22% + 2px); top: 39%; height: 22%; border-left: 2px solid var(--red); border-right: 2px solid var(--red); }
.d-mustard { --c: var(--mustard); } .d-red { --c: var(--red); } .d-red::before { border-color: var(--cream); } .d-cream { --c: var(--cream); }
.d-sq { border-radius: 13px; }
.hc-foot { margin: 0; text-align: center; font: 600 11.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--navy); }
.card-index { margin-top: 56px; }
.card-index ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.card-index a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 1px 16px; align-items: center; padding: 16px 18px; background: var(--kraft); border: 1.5px solid var(--navy); border-radius: 4px; color: var(--navy); text-decoration: none; transition: background .2s; }
.card-index a:hover { background: var(--kraft-dk); color: var(--navy); }
.mini { grid-row: 1 / span 3; position: relative; width: 44px; height: 44px; border-radius: 50%; background-color: var(--navy);
  background-image: radial-gradient(circle at 39% 50%, var(--kraft) 0 2.5px, transparent 3px), radial-gradient(circle at 61% 50%, var(--kraft) 0 2.5px, transparent 3px);
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 5px rgba(255, 255, 255, .2); }
.mini-h4 { background-image: radial-gradient(circle at 39% 39%, var(--kraft) 0 2.5px, transparent 3px), radial-gradient(circle at 61% 39%, var(--kraft) 0 2.5px, transparent 3px), radial-gradient(circle at 39% 61%, var(--kraft) 0 2.5px, transparent 3px), radial-gradient(circle at 61% 61%, var(--kraft) 0 2.5px, transparent 3px); }
.mini::before { content: ""; position: absolute; top: 44%; height: 12%; left: calc(39% - 1px); width: calc(22% + 2px); border-top: 2px solid var(--red); }
.mini-h4::before { top: 39%; height: 22%; border-top: 0; border-left: 2px solid var(--red); border-right: 2px solid var(--red); }
.ic-no { font: 600 11.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red-dk); }
.ic-name { font: 650 22px/1.15 var(--serif); }
.ic-count { font-size: 14px; color: var(--ink-2); }

/* ---------- shop: the four button cards ---------- */
.shop { padding-bottom: 56px; }
.shop-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; padding: 84px 0 28px; }
.shop-head h2 { font-size: clamp(34px, 4vw, 52px); }
.shop-head p { margin: 0; color: var(--ink-2); }
.card { padding: 26px 0; --bw: 220px; --c: 4; }
.card--tops { --bw: 186px; --c: 5; }
.card--dresses { --bw: 300px; --c: 3; }
.card-sheet { padding: 62px 48px 34px; }
.card-band { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 0 -20px; padding: 15px 24px; background: var(--navy); box-shadow: 0 0 0 3px var(--kraft), 0 0 0 4.5px var(--navy); }
.card-band h3 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 720; color: var(--cream); text-align: center; letter-spacing: .01em; }
.cb-no, .cb-count { margin: 0; font: 600 12.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mustard); }
.cb-count { text-align: right; }
.card-blurb { max-width: 46ch; margin: 22px auto 6px; text-align: center; font: italic 450 20px/1.4 var(--serif); color: var(--navy); }
.card-rows { display: grid; grid-template-columns: repeat(var(--c), 1fr); gap: 34px 26px; list-style: none; margin-top: 18px; }
.sewn { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* the button: photo in a round or rounded-square face, holes in the rim, straight stitches up into the card */
.btn-face { position: relative; width: 100%; max-width: var(--bw); aspect-ratio: 1; margin-top: 34px; padding: var(--rim); border-radius: 50%; background: var(--navy);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 10px 16px -9px rgba(50, 32, 12, .6); transition: outline-color .3s; outline: 2px dashed transparent; outline-offset: 7px; }
.bf-square { border-radius: 24%; }
.face { display: block; height: 100%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .16), 0 0 0 4px rgba(255, 255, 255, .25); background: var(--cream); }
.bf-square .face { border-radius: 17%; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.rim-navy { background: var(--navy); } .rim-mustard { background: var(--mustard); } .rim-red { background: var(--red); } .rim-cream { background: #F3EBDC; }
.holes { position: absolute; z-index: 2; top: calc(var(--rim) / 2); left: 50%; margin-left: -9px; width: 18px; height: 6px; margin-top: -3px; }
.holes.h4 { width: 16px; height: 16px; margin-left: -8px; margin-top: -8px; }
.ho { position: absolute; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--kraft-ink); box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .55); }
.h2 .ho:nth-child(2) { left: 12px; }
.h4 .ho:nth-child(2) { left: 10px; } .h4 .ho:nth-child(3) { top: 10px; } .h4 .ho:nth-child(4) { top: 10px; left: 10px; }
.th, .bar { position: absolute; width: 2px; border-radius: 1px; background: var(--red); transform-origin: 50% 100%; }
.th { bottom: 3px; height: calc(var(--rim) / 2 + 30px); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.th::before { content: ""; position: absolute; top: -2px; left: -1px; width: 4px; height: 4px; border-radius: 50%; background: #6a5537; }
.h2 .th-a { left: 2px; } .h2 .th-b { left: 14px; }
.h4 .th { bottom: 13px; } .h4 .th-a { left: 2px; } .h4 .th-b { left: 12px; }
.bar { top: 3px; height: 10px; } .bar-a { left: 2px; } .bar-b { left: 12px; }
.rim-red .th, .rim-red .bar { background: var(--cream); }
.rim-red .th { background: linear-gradient(var(--red) 0 calc(100% - var(--rim) / 2 - 3px), var(--cream) 0); }
.in-cart .btn-face { outline-color: var(--red); }
.sewing .th { animation: draw .45s cubic-bezier(.3, .7, .3, 1) both; }
.sewing .th-b { animation-delay: .12s; }
.sewing .bar { transform-origin: 50% 0; animation: draw .3s ease-out .42s both; }
.sewing .btn-face { animation: tug .7s ease; }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes tug { 30% { translate: 0 -5px; } 60% { translate: 0 1px; } }

.tag { margin-top: 18px; width: 100%; max-width: 250px; }
.tag-no { margin: 0 0 6px; font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--red-dk); }
.tag-no span { color: var(--kraft-ink); letter-spacing: .12em; }
.tag h4 { font-size: 22px; font-weight: 650; }
.tag-desc { margin: 6px 0 8px; font-size: 15px; line-height: 1.45; color: #4A4436; }
.tag-meta { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.price { font: 700 23px/1 var(--serif); color: var(--navy); }
.stock { font-size: 14px; color: #5E5440; }
.sew-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--navy); color: var(--cream); border: 0; outline: 1px dashed rgba(250, 246, 238, .5); outline-offset: -5px; font: 600 15px/1 var(--sans); letter-spacing: .03em; cursor: pointer; transition: background .2s; }
.sew-btn:hover { background: var(--red); }
.sew-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.needle { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 0 2px 2px 0; }
.needle::before { content: ""; position: absolute; left: -1px; top: -2px; width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 50%; background: transparent; }
.needle::after { content: ""; position: absolute; left: -9px; top: 2px; width: 9px; height: 1.5px; background: var(--mustard); transform: rotate(18deg); transform-origin: 100% 0; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper[hidden] { display: none; }
.on-word { font: italic 500 16px/1 var(--serif); color: var(--red-dk); margin-right: 2px; }
.stepper button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); border: 1.5px solid var(--navy); border-radius: 50%; color: var(--navy); cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 24px; font: 700 20px/1 var(--serif); color: var(--navy); }
.card-note { align-self: center; position: relative; padding: 24px 24px 28px; background: var(--cream); border: 1.5px solid var(--navy); text-align: left; }
.cn-head { margin: 0 0 8px; font: italic 500 22px/1.2 var(--serif); color: var(--red-dk); }
.card-note p:last-of-type { margin: 0; font-size: 15.5px; }
.cn-stitch { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 17px); }
.card-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; margin: 34px 0 0; padding-top: 12px; border-top: 1px solid rgba(31, 58, 95, .4); font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }

/* ---------- how ---------- */
.how { padding: 96px 0; background: var(--navy); color: var(--cream); }
.how h2 { color: var(--cream); font-size: clamp(32px, 3.8vw, 50px); max-width: 18em; margin-bottom: 54px; }
.stitches { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; }
.stitches::before { content: ""; position: absolute; top: 35px; left: 36px; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #D35A4C 0 16px, transparent 16px 26px); }
.st-btn { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 24px; border-radius: 50%; background: var(--mustard); box-shadow: inset 0 0 0 6px var(--mustard), inset 0 0 0 7.5px rgba(31, 58, 95, .45), 0 8px 14px -8px rgba(0, 0, 0, .6); font: 750 30px/1 var(--serif); color: var(--navy); }
.stitches h3 { color: var(--cream); font-size: 26px; margin-bottom: 10px; }
.stitches p { margin: 0; color: rgba(250, 246, 238, .82); max-width: 30em; }
.how-photo { max-width: 900px; margin: 64px auto 0; padding: 14px 14px 12px; background: var(--kraft); border-radius: 4px; }
.how-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.how-photo figcaption { padding-top: 12px; text-align: center; font: 600 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }

/* ---------- story ---------- */
.story { padding: 104px 0; }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.story h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 24px; }
.story-copy p:not(.kicker) { max-width: 36em; }
.story-note { margin: 30px 0 0; padding-top: 20px; font: italic 450 22px/1.4 var(--serif); color: var(--red-dk); background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 20px) left top / 100% 2px no-repeat; }
.story-photo { justify-self: center; width: 100%; max-width: 420px; padding: 20px; background: var(--mustard); border-radius: 30px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 24px 30px -22px rgba(50, 32, 12, .6); }
.story-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; }

/* ---------- faq ---------- */
.faq { padding: 96px 0; background: #F1E8D6; border-top: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.faq h2 { font-size: clamp(34px, 4vw, 54px); }
.faq-list details { border-top: 1px solid rgba(31, 58, 95, .3); }
.faq-list details:last-child { border-bottom: 1px solid rgba(31, 58, 95, .3); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font: 600 22px/1.25 var(--serif); color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.fq-btn { flex: none; width: 28px; height: 28px; border-radius: 50%; background-color: var(--navy); background-image: radial-gradient(circle at 37% 50%, #F1E8D6 0 2px, transparent 2.5px), radial-gradient(circle at 63% 50%, #F1E8D6 0 2px, transparent 2.5px); transition: transform .3s, background-color .3s; }
.faq-list details[open] .fq-btn { transform: rotate(90deg); background-color: var(--red); }
.faq-list details p { max-width: 40em; padding-bottom: 20px; margin: 0; }

/* ---------- contact: the back of the card ---------- */
.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.card-back { padding: 56px 52px 50px; }
.cbk-head { margin: 0 0 10px; font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--red-dk); }
.card-back h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 26px; }
.card-back dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 0; }
.card-back dl > div { border-top: 1px solid rgba(31, 58, 95, .4); padding-top: 12px; }
.dl-wide { grid-column: 1 / -1; }
.card-back dt { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--kraft-ink); margin-bottom: 8px; }
.card-back dd { margin: 0; font: 500 19px/1.45 var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.contact-photo { justify-self: center; width: 100%; max-width: 380px; padding: 8px; background: var(--cream); border: 2px solid var(--navy); }
.contact-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--navy); color: var(--cream); }
.seam { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #D35A4C 0 14px, transparent 14px 23px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 40px; padding: 72px 0 48px; }
.footer-line { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand .bw-top { color: var(--cream); }
.foot-brand .bw-bot { color: var(--mustard); }
.foot-note { display: block; max-width: 22em; color: rgba(250, 246, 238, .78); font-size: 15.5px; }
.foot-col h2 { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mustard); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col p { font-size: 15.5px; color: rgba(250, 246, 238, .85); }
.footer a { color: var(--cream); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--mustard); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid rgba(250, 246, 238, .18); font-size: 14.5px; color: rgba(250, 246, 238, .7); }

/* ---------- cart: your button tin ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(21, 42, 70, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-sidebar { position: fixed; z-index: 100; top: 0; right: 0; height: 100%; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--cream); border-left: 1.5px solid var(--navy);
  box-shadow: -18px 0 40px -20px rgba(0, 0, 0, .45); transform: translateX(102%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
.cart-sidebar.open { transform: none; visibility: visible; transition: transform .35s ease; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 14px; border-bottom: 1.5px solid var(--navy); }
.cart-head h2 { font-size: 30px; }
.cart-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--navy); border-radius: 50%; color: var(--navy); cursor: pointer; }
.tin-wrap { padding: 20px 22px 34px; }
.tin { position: relative; width: min(220px, 58vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: var(--mustard); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 7px var(--mustard), inset 0 0 0 8px rgba(31, 58, 95, .45), 0 12px 18px -10px rgba(40, 25, 10, .55); }
.tin-in { position: absolute; inset: 15px; border-radius: 50%; overflow: hidden; background: #6E5B40; box-shadow: inset 0 5px 12px rgba(0, 0, 0, .5), 0 0 0 2px #B88C2A; }
.tin-print { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; white-space: nowrap; font: 600 10.5px/1 var(--sans); letter-spacing: .26em; color: var(--navy); }
.tb { --c: var(--navy); --hl: rgba(20, 22, 30, .7); position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background-color: var(--c); transform: rotate(var(--r)); box-shadow: 0 1.5px 2px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .14); }
.tb-square { border-radius: 7px; }
.tb-h2 { background-image: radial-gradient(circle at 37% 50%, var(--hl) 0 1.7px, transparent 2.2px), radial-gradient(circle at 63% 50%, var(--hl) 0 1.7px, transparent 2.2px); }
.tb-h4 { background-image: radial-gradient(circle at 38% 38%, var(--hl) 0 1.6px, transparent 2.1px), radial-gradient(circle at 62% 38%, var(--hl) 0 1.6px, transparent 2.1px), radial-gradient(circle at 38% 62%, var(--hl) 0 1.6px, transparent 2.1px), radial-gradient(circle at 62% 62%, var(--hl) 0 1.6px, transparent 2.1px); }
.tb-navy { --c: #2C5186; } .tb-mustard { --c: var(--mustard); } .tb-red { --c: var(--red); } .tb-cream { --c: var(--cream); }
.tb-new { animation: drop .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes drop { from { transform: translateY(-34px) rotate(var(--r)) scale(1.25); opacity: 0; } }
.tin-sum { margin: 0 22px 8px; text-align: center; font: italic 450 17px/1.35 var(--serif); color: var(--navy); }
.cart-items { flex: 1; overflow-y: auto; padding: 4px 22px 12px; }
.cart-empty { padding: 12px 0; text-align: center; }
.cart-empty p { font: 500 20px/1.3 var(--serif); color: var(--navy); }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 5px solid var(--navy); }
.cart-item h3 { font-size: 18px; margin-bottom: 8px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); border: 1.5px solid var(--navy); border-radius: 50%; color: var(--navy); cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.cart-item-sub { font: 700 18px/1 var(--serif); color: var(--navy); }
.cart-remove { margin-top: 6px; padding: 4px 0; background: none; border: 0; color: var(--red-dk); font: 500 14.5px/1 var(--sans); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; cursor: pointer; }
.cart-foot { padding: 16px 22px 20px; border-top: 1.5px solid var(--navy); background: var(--kraft); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.cart-total .price { font-size: 26px; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin: 10px 0 0; font-size: 14.5px; color: #4A4436; }

/* ---------- order page and legal ---------- */
.order-page { padding: 56px 0 96px; }
.order-intro h1, .legal-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 720; margin-bottom: 14px; }
.order-intro .lede { margin-bottom: 36px; }
.order { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.order-form h2, .summary h2 { font-size: 28px; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; border: 1.5px solid #A9A08C; border-radius: 0; color: var(--ink); font: 400 17px/1.4 var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--red); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red-dk); }
.field-hint { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.field-error { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: var(--red-dk); }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: 6px; }
.summary { position: sticky; top: 100px; padding: 46px 36px 36px; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 12px 0; border-bottom: 1px solid rgba(31, 58, 95, .25); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.summary small { display: block; color: #5E5440; font-size: 14.5px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-weight: 600; color: var(--navy); }
.summary-total .price { font-size: 26px; }
.summary-note { margin: 14px 0 0; font-size: 15px; }
.sent { max-width: 640px; padding: 20px 0; }
.sent h2 { font-size: 34px; margin-bottom: 14px; }
.sent .hero-actions { margin-top: 20px; }
.sent pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--hair); padding: 16px; font-size: 14.5px; }
.sent-copy { margin-top: 24px; }
.legal-head { padding: 64px 0 8px; }
.legal-body { padding-bottom: 96px; }
.legal { max-width: 720px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal ul { padding-left: 22px; margin-bottom: 1em; }
.legal p, .legal li { color: #353B48; }

/* ---------- responsive ---------- */
@media (max-width: 1179px) {
  .card--tops { --c: 3; --bw: 210px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 959px) {
  .hero-grid, .story-grid, .contact-grid, .faq-grid, .shop-head { grid-template-columns: 1fr; gap: 40px; }
  .card { --c: 2; }
  .card--dresses { --c: 2; }
  .card-note { grid-column: 1 / -1; }
  .card-index ol { grid-template-columns: 1fr 1fr; }
  .stitches { grid-template-columns: 1fr; gap: 34px; }
  .stitches::before { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #D35A4C 0 16px, transparent 16px 26px); }
  .stitches li { display: grid; grid-template-columns: 72px 1fr; column-gap: 22px; }
  .st-btn { grid-row: 1 / span 2; margin: 0; }
  .order { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 899px) {
  .nav { gap: 12px; min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; position: fixed; inset: 0; z-index: 120; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 32px; background: var(--cream); }
  .nav-list.open { display: flex; }
  .nav-list .nav-link { font: 650 36px/1.2 var(--serif); }
  .nav-close-li { display: block; position: absolute; top: 14px; right: 16px; }
  .nav-close { display: inline-flex; }
}
@media (max-width: 759px) {
  :root { --rim: 13px; }
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 32px); }
  .bw-top { font-size: 19px; letter-spacing: .16em; margin-right: -.16em; }
  .bw-bot { font-size: 8.5px; letter-spacing: .3em; }
  .mark-icon { width: 26px; height: 26px; }
  .brand { gap: 8px; }
  .cart-btn { padding: 0 6px 0 8px; gap: 6px; font-size: 14.5px; }
  .hero { padding: 36px 0 24px; }
  .lede { font-size: 17.5px; }
  .hero-card { padding: 52px 22px 26px; }
  .hc-band { margin: 0 -4px; padding: 10px 12px; font-size: 10px; letter-spacing: .14em; }
  .hc-name { font-size: 20px; letter-spacing: .16em; margin-right: -.16em; }
  .hc-row { gap: 18px; }
  .deco { width: 38px; height: 38px; }
  .card-index { margin-top: 36px; }
  .card-index ol { gap: 10px; }
  .card-index a { grid-template-columns: 1fr; padding: 14px 12px; }
  .mini { grid-row: auto; width: 34px; height: 34px; margin-bottom: 8px; }
  .ic-name { font-size: 19px; }
  .shop-head { padding-top: 60px; gap: 16px; }
  .card { padding: 18px 0; }
  .card-sheet { padding: 52px 18px 24px; border-radius: 4px; }
  .card-sheet::before { inset: 8px; border-width: 2px; } .card-sheet::after { inset: 12px; }
  .card-band { margin: 0 -4px; padding: 12px 10px; gap: 8px; }
  .card-band h3 { font-size: 26px; }
  .cb-no, .cb-count { font-size: 10px; letter-spacing: .14em; }
  .slot { top: 20px; width: 60px; margin-left: -30px; height: 13px; }
  .card-blurb { font-size: 17px; }
  .card-rows { gap: 26px 12px; }
  .btn-face { margin-top: 28px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .22), 0 7px 10px -7px rgba(50, 32, 12, .6); outline-offset: 4px; }
  .face { box-shadow: 0 0 0 2px rgba(0, 0, 0, .16); }
  .holes.h2 { width: 14px; height: 5px; margin-left: -7px; margin-top: -2.5px; }
  .holes.h4 { width: 13px; height: 13px; margin-left: -6.5px; margin-top: -6.5px; }
  .ho { width: 5px; height: 5px; }
  .h2 .ho:nth-child(2) { left: 9px; }
  .h4 .ho:nth-child(2) { left: 8px; } .h4 .ho:nth-child(3) { top: 8px; } .h4 .ho:nth-child(4) { top: 8px; left: 8px; }
  .th { bottom: 2.5px; height: calc(var(--rim) / 2 + 24px); }
  .h2 .th-a { left: 1.5px; } .h2 .th-b { left: 10.5px; }
  .h4 .th { bottom: 10.5px; } .h4 .th-a { left: 1.5px; } .h4 .th-b { left: 9.5px; }
  .bar { top: 2.5px; height: 8px; } .bar-a { left: 1.5px; } .bar-b { left: 9.5px; }
  .rim-red .th { background: linear-gradient(var(--red) 0 calc(100% - var(--rim) / 2 - 2.5px), var(--cream) 0); }
  .tag { margin-top: 14px; }
  .tag-no span { display: none; }
  .tag h4 { font-size: 18px; }
  .tag-desc { font-size: 14px; }
  .price { font-size: 20px; }
  .stock { font-size: 13px; }
  .sew-btn { width: 100%; justify-content: center; padding: 0 8px; gap: 8px; font-size: 14.5px; }
  .stepper { gap: 4px; }
  .on-word { display: none; }
  .stepper button { width: 38px; height: 38px; }
  .card-foot { justify-content: center; font-size: 10px; letter-spacing: .14em; }
  .card-foot span:nth-child(2) { display: none; }
  .how, .story, .faq, .contact { padding: 64px 0; }
  .how h2 { margin-bottom: 36px; }
  .how-photo { margin-top: 44px; padding: 8px 8px 6px; }
  .story-photo { padding: 13px; border-radius: 22px; }
  .story-photo img { border-radius: 12px; }
  .card-back { padding: 46px 26px 34px; }
  .card-back::before { inset: 8px; border-width: 2px; } .card-back::after { inset: 12px; }
  .card-back dl { grid-template-columns: 1fr; }
  .hero-card::before { inset: 8px; border-width: 2px; } .hero-card::after { inset: 12px; }
  .summary { padding: 40px 24px 28px; }
  .summary::before { inset: 8px; border-width: 2px; } .summary::after { inset: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 56px 0 36px; }
  .order { gap: 36px; }
}
@media (max-width: 380px) {
  .cart-word { display: none; }
}

/* QA fixes: one-line tin button, aligned "Sew it on" rows */
.cart-btn { white-space: nowrap; }
.sewn { height: 100%; }
.tag { flex: 1; display: flex; flex-direction: column; align-items: center; }
.tag-meta { margin-top: auto; }
@media (max-width: 430px) { .cart-word { display: none; } }
