:root {
  --paper: #f8f4ed; --blush: #e8d9ce; --wine: #702d40; --leaf: #64735b; --ink: #242321;
  --rule: #cbbfb2; --serif: Georgia, "Times New Roman", serif;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 Arial,sans-serif}
body:has(dialog[open]) {overflow:hidden}
a {color:inherit;text-decoration:none}
button,select {font:inherit;color:inherit}
button,summary {cursor:pointer}
button {background:transparent;border:0}
:focus-visible {outline:3px solid #986326;outline-offset:3px}
[hidden] {display:none!important}
.wrap {width:min(1440px,90%);margin:auto}
.skip {position:absolute;top:-5rem;left:1rem;z-index:6;background:white;padding:1rem}
.skip:focus {top:1rem}
.demo {background:var(--wine);color:white;text-align:center;padding:6px;font-size:.76rem;letter-spacing:.05em}
.head,nav,.bag,.product-foot,.dialog-head,.cart-row,.total,footer .wrap {display:flex;align-items:center}
.head {position:relative;justify-content:space-between;gap:16px;min-height:74px;border-bottom:1px solid var(--rule)}
.brand {font:2.25rem/1 var(--serif);letter-spacing:.09em;color:var(--wine)}
.brand span {font-size:1.35rem;vertical-align:top}
nav {gap:clamp(1rem,3vw,3rem)}
nav a:hover,footer a:hover {text-decoration:underline;text-underline-offset:4px}
.bag {gap:.48rem;padding:8px 0}
.bag b {border:1px solid var(--rule);border-radius:50%;min-width:1.55rem;font-size:.8rem}
#menu {display:none}
.hero {display:grid;grid-template-columns:1fr 1.02fr;align-items:center;gap:5%;padding:clamp(28px,4vw,60px) 0;border-bottom:1px solid var(--rule)}
.label,.product small {font-size:.73rem;text-transform:uppercase;letter-spacing:.15em;color:var(--leaf);font-weight:bold}
.label {display:flex;align-items:center;gap:12px;margin:0 0 18px}
.label::before {content:"";width:30px;height:1px;background:currentColor}
h1,h2,h3 {font-family:var(--serif);font-weight:400;letter-spacing:-.045em;line-height:1.04;margin:0}
h1 {font-size:clamp(4.2rem,7.8vw,8.1rem)}
h2 {font-size:clamp(2.45rem,4.3vw,4.5rem)}
em {color:var(--wine);font-weight:400}
.lead {max-width:39ch;margin:24px 0 30px}
.primary {display:inline-flex;align-items:center;justify-content:center;padding:13px 24px;background:var(--wine);color:white;border-radius:2px;transition:background .2s}
.primary:hover {background:#512031}
.cover {position:relative;margin:0;background:var(--blush);overflow:hidden}
.cover img {width:100%;height:clamp(360px,36vw,550px);display:block;object-fit:cover;object-position:50% 57%}
.cover figcaption {position:absolute;inset:auto 0 0;padding:40px 20px 16px;color:white;background:linear-gradient(transparent,#201516c9);display:flex;align-items:baseline;justify-content:space-between;gap:10px;font:1.4rem var(--serif)}
.cover i {font-size:.95rem}
.block,.info,.studio {padding-block:clamp(42px,6vw,90px)}
.filters {display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}
.filters button {border:1px solid var(--rule);border-radius:24px;padding:8px 16px}
.filters [aria-pressed=true] {background:var(--ink);color:white;border-color:var(--ink)}
.grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 20px}
.photo {display:block;position:relative;overflow:hidden;width:100%;padding:0;background:var(--blush)}
.photo img {display:block;width:100%;height:auto;aspect-ratio:4/4.6;object-fit:cover;transition:transform .5s}
.photo span {position:absolute;right:8px;bottom:8px;background:var(--paper);padding:3px 9px;font-size:.75rem}
@media(hover:hover) {.photo:hover img {transform:scale(1.035)}}
.product small {display:block;margin:14px 0 4px}
.product h3 {font-size:clamp(1.45rem,2vw,2.1rem)}
.product-foot,.total,.dialog-head {justify-content:space-between;gap:12px}
.product-foot {margin-top:10px;border-top:1px solid var(--rule);padding-top:6px}
.add,#close,.qty button {min-width:44px;min-height:44px;color:var(--wine);font-size:1.5rem}
.add:hover,.qty button:hover {background:var(--blush)}
.studio {background:var(--blush)}
.studio-grid,.info {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8%}
.studio img {width:100%;height:clamp(270px,33vw,450px);object-fit:cover}
.studio p,.info p {max-width:48ch}
.info {align-items:start}
details {border-bottom:1px solid var(--rule);padding:14px 0}
summary {font-weight:600}
footer {background:#364234;color:var(--paper);padding:28px 0}
footer .wrap {justify-content:space-between;gap:15px;flex-wrap:wrap}
footer .brand {color:inherit}
dialog {background:var(--paper);color:var(--ink);border:1px solid var(--rule);padding:clamp(16px,3vw,36px);width:min(520px,94%);max-height:90dvh;overflow:auto}
dialog::backdrop {background:#201d19a8}
.dialog-head {margin-bottom:16px}
.dialog-head h2 {font-size:2.1rem}
.detail-img {width:100%;height:clamp(150px,30vh,270px);object-fit:cover}
.cart-row {flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--rule)}
.qty {display:inline-flex;align-items:center;border:1px solid var(--rule)}
.total {margin:18px 0}
select {width:100%;padding:10px;margin-top:6px;background:var(--paper);border:1px solid var(--rule)}
#notice:not(:empty) {position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:8px 16px;text-align:center;z-index:2}
@media(max-width:900px) {.grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px) {
  #menu {display:block;padding:10px 0;margin-left:auto}
  .head {min-height:60px;gap:14px}
  .head .brand {font-size:1.65rem}
  nav {display:none;position:absolute;inset:100% 0 auto;z-index:2;padding:16px;background:var(--paper);border:1px solid var(--rule);flex-direction:column;align-items:stretch}
  #menu[aria-expanded=true]+nav {display:flex}
  .hero,.info,.studio-grid {grid-template-columns:1fr;gap:28px}
  .cover img {height:clamp(250px,75vw,410px)}
  .cover figcaption {flex-direction:column;align-items:flex-start;gap:2px}
  .lead {margin:16px 0 20px}
  .grid {gap:24px 12px}
  .filters button {padding:8px 12px}
  .info {gap:36px}
  footer span {order:1;width:100%}
}
@media(max-width:370px) {.head {gap:8px}.head .brand {font-size:1.45rem}.grid {grid-template-columns:1fr}.cover figcaption {flex-wrap:wrap}}
@media(prefers-reduced-motion:no-preference) {.intro {animation:arrive .55s ease-out}dialog[open] {animation:arrive .2s ease-out}@keyframes arrive {from {opacity:0;transform:translateY(8px)}to {opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}*,*::before,*::after {animation:none!important;transition:none!important}}
