:root {
  color-scheme: light;
  --paper: #f8f5f0;
  --panel: #f1ece5;
  --ink: #302017;
  --muted: #66564b;
  --line: #ded4c9;
  --accent: #9a421c;
  --white: #fffaf4;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a44f2b; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 550; letter-spacing: -.035em; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.05rem; font-weight: 550; line-height: 1.25; }
.shell { width: min(100% - clamp(2rem, 7vw, 7rem), 1440px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: -100vw; z-index: 10; padding: .7rem; background: var(--white); }
.skip:focus { left: .5rem; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1rem; min-height: 74px; }
.header nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.header-actions { justify-self: end; }
.header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.header nav a:hover, .footer a:hover, .text-link:hover { color: var(--accent); }
.wordmark { display: inline-block; font-size: clamp(1.25rem, 2.8vw, 1.95rem); font-weight: 650; white-space: nowrap; letter-spacing: -.045em; }
.wordmark span { font-weight: 500; }
.icon-link { display: grid; place-items: center; width: 38px; height: 40px; }
.icon-link svg { fill: none; stroke: currentColor; stroke-width: 1.5; width: 23px; height: 23px; }
.bag { position: relative; }
.bag span { position: absolute; right: -3px; top: -1px; min-width: 19px; padding: 1px 4px; text-align: center; border-radius: 50%; background: var(--accent); color: white; font-size: .75rem; }
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(17.5rem, 3fr); max-width: 1760px; margin-inline: auto; }
.scene { position: relative; isolation: isolate; color: var(--white); align-self: start; }
.scene-visual { position: relative; }
.scene-visual > img { width: 100%; height: auto; }
.scene-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #211710b8, #21171052 19%, transparent 38%); }
.scene-copy { position: absolute; bottom: clamp(.7rem, 3vw, 3rem); left: clamp(1rem, 3.6vw, 4rem); right: 1rem; z-index: 1; pointer-events: none; }
.scene-copy a { pointer-events: auto; }
.scene h1 { margin-bottom: .45rem; font-size: clamp(1.23rem, 3.65vw, 3.9rem); text-shadow: 0 1px 5px #24160fbf; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .6rem 1.2rem; border: 1px solid transparent; border-radius: 4px; color: var(--white); background: var(--ink); font-weight: 550; }
.button:hover { background: #4f3020; }
.button.accent { background: var(--accent); }
.button.accent:hover { background: #793515; }
.button:disabled { opacity: .55; cursor: wait; }
.marker { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transform: translate(-50%, -50%); color: var(--ink); background: #e9d4b7; border: 2px solid #fff8eb; box-shadow: 0 2px 10px #1f140e47; font-weight: 650; }
.marker:hover { background: var(--white); }
.marker-lilac { left: 24%; top: 29%; }
.marker-angelo-cappellini { left: 68%; top: 60%; }
.marker-metis-plus { left: min(96%, calc(100% - 23px)); top: 45%; }
.scene-items { padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 2.3vw, 2.5rem); background: var(--panel); border-bottom: 1px solid var(--line); }
.scene-items h2 { font-size: clamp(1.45rem, 2.65vw, 2.45rem); margin-bottom: .75rem; }
.scene-item { display: grid; grid-template-columns: minmax(65px, 37%) 1fr auto; gap: clamp(.6rem, 1.1vw, 1rem); align-items: center; padding: clamp(.75rem, 1.6vw, 1.4rem) 0; border-bottom: 1px solid var(--line); font-weight: 550; line-height: 1.3; }
.scene-item img { width: 100%; height: auto; aspect-ratio: 1.16; object-fit: cover; border-radius: 3px; }
.scene-item-number { display: block; color: var(--muted); font-size: .875rem; margin-bottom: .2rem; }
.scene-item:hover, .product-card:hover .arrow { color: var(--accent); }
.arrow { font-weight: 400; }
.collection { padding-block: clamp(2rem, 4vw, 4.25rem); }
.collection-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .9rem 2rem; margin-bottom: 1.4rem; }
.collection-heading > * { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.filters a { border-radius: 3rem; padding: .35rem .85rem; font-size: .925rem; }
.filters a:hover { background: var(--panel); }
.filters a[aria-current] { color: var(--white); background: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.7rem, 1.65vw, 1.6rem); }
.product-card { display: flex; flex-direction: column; overflow: clip; border: 1px solid var(--line); border-radius: 5px; background: #fbf8f4; }
.product-card:hover { border-color: #9e7e65; }
.product-card img { width: 100%; height: auto; aspect-ratio: 1.54; object-fit: cover; background: #e6dacf; }
.product-card-body { display: flex; flex: 1; flex-direction: column; gap: .29rem; padding: .72rem .9rem .85rem; }
.product-card-title { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.product-card-title h3, .product-card-body p { margin: 0; }
.product-card-body p, .secondary { color: var(--muted); font-size: .875rem; }
.product-card-body strong { margin-top: auto; padding-top: .15rem; font-weight: 600; }
.text-link { display: inline-flex; gap: .65rem; align-items: center; width: fit-content; border-bottom: 1px solid currentColor; padding-bottom: .12rem; }
.catalog-link { margin-top: 1.15rem; }
.spotlight { color: var(--white); background: #342117; position: relative; isolation: isolate; }
.spotlight::before { content: ""; position: absolute; inset: 0 0 0 40%; background: linear-gradient(90deg,#342117,transparent 28%); z-index: -1; }
.spotlight-image { position: absolute; inset: 0 0 0 auto; width: 60%; height: 100%; object-fit: cover; object-position: center 68%; z-index: -2; }
.spotlight-content { min-height: clamp(235px, 29vw, 460px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 2rem; }
.spotlight h2 { max-width: 15ch; margin-bottom: .55rem; font-size: clamp(1.7rem, 3vw, 3rem); }
.spotlight-price { font-size: 1.35rem; margin-bottom: .65rem; }
.spotlight .text-link:hover { color: #f3cba3; }
.footer { background: #eae1d8; border-top: 1px solid #cfbfb1; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2rem; padding-block: 2rem; }
.footer-grid > div + div { border-left: 1px solid #cbbbac; padding-left: 2rem; }
.footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .55rem; }
.footer p { color: var(--muted); margin-bottom: 0; max-width: 30ch; font-size: .925rem; }
.footer .wordmark { font-size: 1.4rem; margin-bottom: .35rem; }
.footer a:not(.wordmark) { display: block; width: fit-content; }
.interior-page { padding-block: clamp(2rem, 5vw, 5rem); min-height: 55vh; }
.selection-heading, .selection-copy { max-width: 75ch; }
.selection-heading p, .selection-copy p, .error-code { color: var(--muted); }
.selection-copy { display: grid; gap: 1rem; margin: 2rem 0; }
.selection-copy h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.selection-copy p { margin-top: 0; }
.error-page > p { max-width: 55ch; }
.error-contacts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.error-contacts a { text-decoration: underline; text-underline-offset: .2em; }
.contacts-page > p { max-width: 52ch; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.contact-card { padding: clamp(1.15rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 5px; background: #fbf8f4; overflow-wrap: anywhere; }
.contact-card h2 { font-size: 1.25rem; margin-bottom: .55rem; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { text-decoration: underline; text-underline-offset: .2em; }
.search { margin: 0 0 1.5rem; }
.search label { display: block; margin-bottom: .3rem; }
.search > div { display: flex; gap: .55rem; max-width: 30rem; }
input, textarea, select { min-width: 0; width: 100%; min-height: 44px; color: var(--ink); background: #fffcf8; border: 1px solid #b7a597; border-radius: 4px; padding: .55rem .7rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
.gallery-stage { margin: 0; }
.gallery-stage > a { display: block; border-radius: 5px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.detail-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery-stage figcaption { margin-top: .55rem; color: var(--muted); }
.gallery-previews { display: flex; gap: .6rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.gallery-previews li { flex: 0 1 6rem; min-width: 0; }
.gallery-preview { display: block; padding: .18rem; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.gallery-preview[aria-current], .gallery-preview:hover { border-color: var(--accent); }
.gallery-preview img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 2px; }
.product-detail h1 { font-size: clamp(2.1rem, 4vw, 3.7rem); margin-bottom: .9rem; }
.detail-description { max-width: 48ch; }
.specs div { display: grid; grid-template-columns: 100px 1fr; gap: .6rem; padding-block: .55rem; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.detail-price { font-size: 1.55rem; font-weight: 600; }
.add-form { display: grid; gap: .6rem; justify-items: start; max-width: 20rem; }
.form-status { min-height: 1.4em; margin: 0; font-size: .925rem; }
.form-status a { text-decoration: underline; }
.checkout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(18rem,1fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.checkout-form { display: grid; gap: .85rem; background: var(--panel); border-radius: 5px; padding: clamp(1rem, 3vw, 2rem); }
.checkout-form h2, .checkout-form p { margin: 0; }
.checkout-form h2 { font-size: 1.65rem; }
.checkout-form input, .checkout-form textarea { display: block; margin-top: .25rem; }
[data-order-error] { color: #8c301b; }
.cart-row { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 1rem; border-bottom: 1px solid var(--line); padding: .8rem 0; }
.cart-row:first-child { border-top: 1px solid var(--line); }
.cart-row img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 3px; }
.cart-row-title { display: block; font-weight: 600; }
.cart-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .8rem; margin-top: .45rem; }
.cart-actions select { width: auto; min-height: 38px; padding-block: .25rem; }
.remove { padding: .25rem 0; color: var(--muted); background: none; border: 0; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: 1.25rem; }

@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { gap: 1rem; }
  .footer-grid > div + div { padding-left: 1rem; }
}
@media (max-width: 900px) {
  .hero { display: block; }
  .scene-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: .75rem; padding: .95rem 1rem; }
  .scene-items h2 { grid-column: 1 / -1; margin-bottom: .25rem; }
  .scene-item { grid-template-columns: minmax(0,1fr); min-width: 0; align-content: start; gap: .45rem; font-size: .875rem; padding-block: .5rem; overflow-wrap: anywhere; }
  .scene-item img { aspect-ratio: 1.5; }
  .scene-item > .arrow { display: none; }
  .scene-item-number { display: inline; margin-right: .35rem; }
}
@media (max-width: 720px) {
  .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .5rem; min-height: 0; padding-block: .55rem; }
  .header nav { grid-row: 2; grid-column: 1 / -1; justify-self: center; gap: 1.25rem; font-size: .9rem; }
  .header-actions { grid-area: 1 / 2; gap: .15rem; }
  .scene-visual::after { background: linear-gradient(0deg, #211710d9, #21171055 27%, transparent 52%); }
  .marker { width: 36px; height: 36px; }
  .marker-angelo-cappellini { top: 55%; }
  .marker-metis-plus { left: min(96%, calc(100% - 21px)); }
  .collection-heading { gap: .65rem; }
  .filters a { padding-inline: .6rem; font-size: .875rem; }
  .product-card-body { padding: .55rem .6rem; }
  .product-card-title h3 { font-size: .95rem; }
  .spotlight::before { inset-inline-start: 0; background: linear-gradient(90deg,#2b1b13e8,#2b1b1359); }
  .spotlight-image { width: 100%; }
  .footer-grid, .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid > div + div { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
  .scene-items { grid-template-columns: minmax(0,1fr); }
  .scene-item { grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: .75rem; }
  .scene-item > .arrow { display: inline; }
}
@media (max-width: 360px) {
  .marker-angelo-cappellini { left: 83.5%; top: 53%; }
  .marker-metis-plus { top: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
