/* Chinvera Luxe Loft: "Engraved Plate". Every photo prints first as a navy steel engraving on ivory paper, then takes on colour, like a fashion catalogue plate being inked. */
:root {
  --ink: #2f4a6b;
  --ink-deep: #1d3049;
  --ink-soft: #5a7290;
  --paper: #f4f1ea;
  --sheet: #fbf9f4;
  --plaster: #e3e8ee;
  --rule: rgba(47, 74, 107, .22);
  --rule-strong: rgba(47, 74, 107, .55);
  --text-c: #1f2a37;
  --muted: #5b6573;
  --rust: #a2502c;
  --error: #9b2c1f;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hatch: repeating-linear-gradient(-38deg, rgba(29, 48, 73, .5) 0 1px, transparent 1px 3.4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text-c); font: 400 1.0625rem/1.65 var(--text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(1320px, 100% - 2 * clamp(16px, 4vw, 56px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--sheet); padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; flex: none; }
[hidden] { display: none !important; }

/* Type */
.kicker { font: 700 .72rem/1.4 var(--text); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .8rem; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; color: var(--ink-deep); }
h1 em, h2 em { font-style: italic; color: var(--ink); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.lede { font-size: 1.12rem; }

/* The engraving effect. Without JS (or with reduced motion) photos simply show in colour. */
.plate-img, .engrave { position: relative; overflow: hidden; background: var(--plaster); isolation: isolate; }
.plate-img img, .engrave img { transition: filter 1.6s cubic-bezier(.3, .1, .2, 1); }
.plate-img::before, .plate-img::after, .engrave::before, .engrave::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s cubic-bezier(.3, .1, .2, 1); }
.plate-img::before, .engrave::before { z-index: 1; background: var(--ink); mix-blend-mode: lighten; }
.plate-img::after, .engrave::after { z-index: 2; background: var(--hatch); mix-blend-mode: soft-light; }
.ink .plate-img:not(.inked) img, .ink .engrave:not(.inked) img { filter: grayscale(1) contrast(1.35) brightness(1.06); }
.ink .plate-img:not(.inked)::before, .ink .engrave:not(.inked)::before { opacity: 1; }
.ink .plate-img:not(.inked)::after, .ink .engrave:not(.inked)::after { opacity: .9; }
.product-card:hover .plate-img img { filter: none; }
.hero-photo img, .hero-photo::before, .hero-photo::after { transition-duration: 2.8s; transition-delay: .9s; }
.product-card:hover .plate-img::before, .product-card:hover .plate-img::after { opacity: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .85rem 1.7rem; background: var(--ink-deep); color: var(--sheet); border: 1px solid var(--ink-deep); text-decoration: none; font: 700 .78rem/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--ink-deep); }
.btn--line:hover { background: var(--ink-deep); color: var(--sheet); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Header. Solid and unfiltered so the fixed mobile menu is never trapped. */
.header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--rule); }
.nav { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; color: var(--ink-deep); }
.brand-mark { width: 46px; height: auto; }
.word { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.word span:first-child { font: 400 1.18rem/1 var(--display); letter-spacing: .3em; margin-right: -.3em; }
.word span:last-child { font: 700 .55rem/1 var(--text); letter-spacing: .44em; color: var(--ink-soft); margin-top: .4rem; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav-link { font: 700 .74rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-deep); padding: .6rem 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat; transition: background-size .25s; }
.nav-link:hover { background-size: 100% 1px; }
.nav-close-li { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .35rem .4rem .35rem 1rem; background: var(--sheet); border: 1px solid var(--rule-strong); color: var(--ink-deep); font: 700 .72rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; transition: background-color .25s; }
.cart-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .4rem; background: var(--ink-deep); color: var(--sheet); letter-spacing: 0; font: 400 .95rem/1 var(--display); }
.cart-btn:hover { background: #fff; }
.cart-btn.pop { animation: stamp .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes stamp { 0% { transform: scale(1); } 35% { transform: scale(.92) rotate(-2deg); } 100% { transform: none; } }
.nav-toggle, .nav-close { display: none; width: 44px; height: 44px; place-items: center; background: var(--sheet); border: 1px solid var(--rule-strong); color: var(--ink-deep); }
.back-link { margin-left: auto; }

@media (max-width: 899px) {
  .nav-toggle { display: grid; flex: 0 0 auto; }
  .nav-list { display: none; }
  .nav-list.open {
    display: flex; position: fixed; inset: 0; z-index: 200; height: 100dvh; overflow-y: auto;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; padding: 6rem 2rem 3rem;
    background: var(--hatch), var(--paper); background-size: auto;
  }
  .nav-list.open::before { content: ''; position: absolute; inset: 0; background: var(--paper); opacity: .93; z-index: -1; }
  .nav-list.open .nav-link { font: 400 2.6rem/1.15 var(--display); letter-spacing: 0; text-transform: none; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 14px; right: 16px; }
  .nav-close { display: grid; }
}
@media (max-width: 420px) {
  .word span:first-child { font-size: .98rem; letter-spacing: .2em; margin-right: -.2em; }
  .word span:last-child { letter-spacing: .3em; }
  .brand-mark { width: 38px; }
  .cart-word { display: none; }
  .cart-btn { padding: .35rem; gap: 0; }
  .nav { gap: .6rem; }
}

/* Hero: Plate I */
.hero { position: relative; background: var(--plaster); }
.hero-plate { position: relative; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 50%; }
.hero-copy { position: relative; padding: 2.4rem 0 1rem; }
.hero-engraving { width: 116px; margin-bottom: 1.3rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; margin-bottom: 1.4rem; max-width: 12ch; }
.hero h1 em { display: block; }
.hero .lede { color: #2e3a49; max-width: 34rem; }
.plate-line { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 1.4rem; margin-top: 1.6rem; border-top: 1px solid var(--rule-strong); font: italic 400 .86rem/1.3 var(--display); color: var(--ink); }
.plate-line span:nth-child(2) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-engraving { animation: print-in 2.4s cubic-bezier(.6, .05, .25, 1) .2s both; }
  @keyframes print-in { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
  .hero h1, .hero .lede, .hero-actions, .hero .kicker { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
  .hero .kicker { animation-delay: .4s; } .hero h1 { animation-delay: .55s; } .hero .lede { animation-delay: .75s; } .hero-actions { animation-delay: .9s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (min-width: 900px) {
  .hero-plate { min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: center; }
  .hero-photo { position: absolute; inset: 0; }
  .hero-photo img { height: 100%; aspect-ratio: auto; object-position: 60% 50%; }
  .hero-copy { padding: 4rem 0 2rem; }
  .hero-photo::after { opacity: 1; z-index: 3; background: linear-gradient(90deg, rgba(227, 232, 238, .96) 0 30%, rgba(227, 232, 238, .82) 42%, rgba(227, 232, 238, 0) 62%); mix-blend-mode: normal; }
  .ink .hero-photo:not(.inked)::after { background: linear-gradient(90deg, rgba(227, 232, 238, .96) 0 30%, rgba(227, 232, 238, .82) 42%, rgba(227, 232, 238, 0) 62%), var(--hatch); }
  .hero-copy > * { max-width: 40%; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 5vw, 4.7rem); }
  .plate-line { position: relative; margin-top: auto; border-top-color: var(--rule-strong); }
  .plate-line span:nth-child(2) { display: inline; }
}
@media (min-width: 1500px) { .hero-copy > * { max-width: 36rem; } }

/* Shop: the catalogue with an index of plates */
.shop { padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem); }
.shop-layout { display: grid; gap: 2rem; }
.shop-head { display: grid; gap: 1rem; max-width: 46rem; }
.shop-head .kicker { margin-bottom: 0; }
.shop-head > p:last-child { color: var(--muted); }
.index-box { border: 1px solid var(--rule-strong); background: var(--sheet); }
.index-box summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: .6rem 1.1rem; cursor: pointer; list-style: none; font: italic 400 1.15rem/1 var(--display); color: var(--ink-deep); }
.index-box summary::-webkit-details-marker { display: none; }
.index-box[open] summary .icon { transform: rotate(45deg); }
.index-box summary .icon { transition: transform .25s; color: var(--ink); }
.index-list { padding: .3rem 1.1rem 1rem; counter-reset: none; }
.index-list a { display: grid; grid-template-columns: 2.6rem minmax(0, auto) 1fr auto; align-items: baseline; gap: .5rem; padding: .48rem 0; text-decoration: none; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.index-list a:hover .ix-name { text-decoration: underline; text-underline-offset: 3px; }
.ix-no { font: italic 400 .95rem/1 var(--display); color: var(--ink); }
.ix-dots { border-bottom: 1px dotted var(--rule-strong); transform: translateY(-4px); }
.ix-price { font-weight: 700; color: var(--ink-deep); }
@media (min-width: 1100px) {
  .shop-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .index { position: sticky; top: 100px; }
  .index-box summary { pointer-events: none; }
  .index-box summary .icon { display: none; }
}

.group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.group-head { display: grid; gap: .3rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule-strong); margin-bottom: 1.8rem; }
.group-no { font: italic 400 .95rem/1 var(--display); color: var(--ink); }
.group-head h3 { font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1.1 var(--display); color: var(--ink-deep); }
.group-head p:last-child { color: var(--muted); font-size: .98rem; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem .9rem; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.8rem 1.6rem; } }
.product-card { display: flex; flex-direction: column; scroll-margin-top: 100px; }
.plate { padding: .55rem; background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--rule); }
.plate-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plate figcaption { display: flex; align-items: center; gap: .6rem; padding: .6rem .15rem .1rem; }
.pl { font: italic 400 1rem/1 var(--display); color: var(--ink-deep); white-space: nowrap; }
.pl-rule { flex: 1; height: 1px; background: var(--rule-strong); }
.pl-stock { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.item-body { display: flex; flex-direction: column; flex: 1; padding: 1rem .15rem 0; }
.item-body h4 { font: 400 1.2rem/1.2 var(--display); color: var(--ink-deep); }
.item-desc { margin-top: .4rem; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.buy { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.item-price, .price { font: 700 1.1rem/1 var(--text); color: var(--ink-deep); }
.cur { font-family: var(--text); margin-right: .05em; }
.add-btn { min-height: 44px; padding: .6rem 1rem; background: transparent; color: var(--ink-deep); border: 1px solid var(--ink-deep); font: 700 .72rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.add-btn:hover { background: var(--ink-deep); color: var(--sheet); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink-deep); background: var(--sheet); }
.stepper button, .qty button { display: grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; }
.stepper button:hover, .qty button:hover { background: var(--plaster); }
.stepper button:disabled, .qty button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; }
@media (max-width: 559px) {
  .plate { padding: .4rem; }
  .pl-stock { display: none; }
  .item-body h4 { font-size: 1.05rem; }
  .item-desc { font-size: .86rem; }
  .buy { flex-direction: column; align-items: stretch; }
  .add-btn { width: 100%; }
  .stepper { justify-content: space-between; }
}

/* Spread: a full-width plate */
.spread { position: relative; background: var(--ink-deep); color: var(--sheet); }
.spread-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-height: 78vh; }
.spread-quote { padding: 2.4rem 0 2.8rem; }
.spread-quote p { font: 400 clamp(1.9rem, 4.6vw, 3.6rem)/1.08 var(--display); max-width: 18ch; }
.spread-quote em { color: #c8d4e3; }
.spread-quote cite { display: block; margin-top: 1rem; font: 700 .72rem/1.4 var(--text); font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: #a9b8ca; }
@media (min-width: 900px) {
  .spread { display: grid; }
  .spread-photo, .spread-quote { grid-area: 1 / 1; }
  .spread-quote { align-self: end; padding: 0 0 3.5rem; z-index: 3; }
  .spread-quote p { background: var(--ink-deep); display: inline; padding: .1em .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.32; }
  .spread-quote cite { display: inline-block; background: var(--ink-deep); padding: .5rem .8rem; }
}

/* About */
.about { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.about-grid { display: grid; gap: 2.6rem; align-items: start; }
.about-photo { border: 1px solid var(--rule-strong); padding: .6rem; background: var(--sheet); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo.engrave { background: var(--sheet); }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy > p + p { margin-top: 1rem; }
.values { display: grid; gap: 0; margin-top: 2.2rem; border-top: 1px solid var(--rule-strong); }
.values li { display: grid; grid-template-columns: 3rem 1fr; gap: .15rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.v-no { grid-row: span 2; font: italic 400 1.6rem/1 var(--display); color: var(--ink); }
.values h3 { font: 400 1.3rem/1.2 var(--display); color: var(--ink-deep); }
.values p { color: var(--muted); }
.goal { margin-top: 2rem; padding: 1.6rem 1.6rem 1.7rem; background: var(--ink-deep); color: var(--sheet); }
.goal h3 { font: 700 .72rem/1.4 var(--text); letter-spacing: .24em; text-transform: uppercase; color: #a9b8ca; margin-bottom: .6rem; }
.goal p { font: italic 400 1.25rem/1.4 var(--display); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); } .about-photo { position: sticky; top: 100px; } }

/* Testimonials: notes on catalogue paper */
.voices { background: var(--plaster); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.voice-list { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.voice-list figure { display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem 1.6rem; background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: inset 0 0 0 5px var(--sheet), inset 0 0 0 6px var(--rule); }
.voice-head { font: 700 .72rem/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.voice-list blockquote p { font: 400 clamp(1.25rem, 2.1vw, 1.55rem)/1.35 var(--display); color: var(--ink-deep); }
.voice-list figcaption { margin-top: auto; font: italic 400 1rem/1.3 var(--display); color: var(--muted); }
.voice-list figcaption::before { content: '— '; }
@media (min-width: 860px) { .voice-list { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.faq-grid { display: grid; gap: 2rem; }
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 1.1rem 0; cursor: pointer; list-style: none; font: 400 1.3rem/1.25 var(--display); color: var(--ink-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* Contact */
.contact { background: var(--ink-deep); color: var(--sheet); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.contact h2, .contact h2 em { color: var(--sheet); }
.contact h2 em { color: #c8d4e3; }
.contact .kicker { color: #a9b8ca; }
.contact-grid { display: grid; gap: 3rem; align-items: center; }
.contact h2 { margin-bottom: 2.2rem; }
.contact-cards { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.contact-card { padding: 1.3rem 1.3rem 1.4rem; border: 1px solid rgba(200, 212, 227, .3); background: rgba(255, 255, 255, .03); }
.contact-card h3 { font: 700 .7rem/1.4 var(--text); letter-spacing: .22em; text-transform: uppercase; color: #a9b8ca; margin-bottom: .5rem; }
.contact-card p { overflow-wrap: anywhere; }
.contact-card a { color: var(--sheet); text-underline-offset: 4px; text-decoration-color: #7d93ae; overflow-wrap: anywhere; }
.contact-card > a { display: inline-block; margin-top: .7rem; font-weight: 700; font-size: .9rem; }
.contact-photo { max-width: 460px; padding: .6rem; border: 1px solid rgba(200, 212, 227, .3); }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-card.wide { grid-column: 1 / -1; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; } .contact-photo { justify-self: end; } }

/* Policies */
.policies { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.policy-list { display: grid; gap: 2rem; }
.policy-list h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.policy-list p { color: var(--muted); font-size: .95rem; }
.policy-list a { display: inline-block; margin-top: .6rem; font-weight: 700; font-size: .9rem; color: var(--ink-deep); text-underline-offset: 4px; }
@media (min-width: 800px) { .policy-list { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* Footer */
.footer { background: var(--paper); padding: 4rem 0 2rem; }
.footer-top { display: grid; gap: 2.4rem; }
.footer-line { display: flex; align-items: center; gap: 1.1rem; font: 400 1.6rem/1.15 var(--display); color: var(--ink-deep); }
.footer-line em { color: var(--ink); }
.foot-mark { width: 92px; flex: none; }
.footer h2 { font: 700 .7rem/1.4 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.footer li + li { margin-top: .45rem; }
.footer a { text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-strong); font-size: .84rem; color: var(--muted); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.6fr repeat(3, 1fr); } }

/* Cart drawer: the order slip */
.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(29, 48, 73, .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: 160; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--sheet); border-left: 1px solid var(--rule-strong); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--rule-strong); box-shadow: 0 4px 0 -3px var(--rule); }
.cart-head h2 { font-size: 1.8rem; font-style: italic; }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--rule-strong); color: var(--ink-deep); }
.cart-items { flex: 1; overflow-y: auto; padding: .6rem 1.4rem; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--rule-strong); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; background: var(--plaster); }
.cart-item h3 { font: 400 1.05rem/1.2 var(--display); color: var(--ink-deep); }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); }
.qty button { width: 40px; height: 40px; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }
.cart-item-sub { font-weight: 700; color: var(--ink-deep); }
.cart-remove { margin-top: .35rem; padding: .3rem 0; background: none; border: 0; font-size: .82rem; color: var(--muted); text-decoration: underline; }
.cart-empty { padding: 3rem 0; text-align: center; }
.cart-empty p { font: italic 400 1.5rem/1.3 var(--display); margin-bottom: 1.2rem; color: var(--ink-deep); }
.cart-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--rule-strong); background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-size: .92rem; }
.cart-total .price { font-size: 1.3rem; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin-top: .8rem; font-size: .82rem; color: var(--muted); text-align: center; }

/* Order page */
.order-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.order-intro { max-width: 40rem; margin-bottom: 2.4rem; }
.order-intro h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .9rem; }
.order-intro .lede { color: var(--muted); }
.order { display: grid; gap: 2rem; align-items: start; }
.order-form { background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: inset 0 0 0 5px var(--sheet), inset 0 0 0 6px var(--rule); padding: 2.2rem clamp(1.1rem, 4vw, 2.2rem); }
.order-form h2, .summary h2 { font-size: 1.9rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .9rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; font: 400 1rem/1.4 var(--text); color: var(--text-c); background: #fff; border: 1px solid rgba(47, 74, 107, .4); border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-hint { margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.field-error { margin-top: .35rem; font-size: .86rem; font-weight: 700; color: var(--error); }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: .6rem; }
.summary { background: var(--ink-deep); color: var(--sheet); padding: 2rem clamp(1.1rem, 4vw, 2rem); }
.summary h2 { color: var(--sheet); }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .8rem 0; border-bottom: 1px solid rgba(200, 212, 227, .25); vertical-align: top; }
.summary td small { display: block; margin-top: .2rem; color: #a9b8ca; font-size: .82rem; }
.summary td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; font-size: .92rem; }
.summary-total .price { font-size: 1.45rem; color: var(--sheet); }
.summary-note { margin-top: 1.2rem; font-size: .9rem; }
.summary-note a { color: #c8d4e3; text-underline-offset: 4px; }
.sent { max-width: 44rem; background: var(--sheet); border: 1px solid var(--rule-strong); padding: 2.6rem clamp(1.1rem, 4vw, 2.4rem); }
.sent h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
.sent-copy { margin-top: 2rem; }
.sent-copy pre { margin-top: 1rem; padding: 1rem; background: var(--paper); border: 1px solid var(--rule); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem; }
@media (min-width: 900px) { .order { grid-template-columns: 1.4fr 1fr; gap: 3rem; } .summary { position: sticky; top: 96px; } }

/* Legal pages */
.legal-head { background: var(--plaster); border-bottom: 1px solid var(--rule-strong); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.5rem); }
.legal-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.legal-body { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; }
.legal > div:first-child, .legal > p:first-child { font-size: 1.12rem; }
.legal h2 { font-size: 1.7rem; margin: 2.4rem 0 .8rem; }
.legal p + p { margin-top: .9rem; }
.legal ul, .legal ol { padding-left: 1.3rem; list-style: disc; margin-top: .6rem; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
