:root {
  color-scheme: dark;
  --ink: #101011;
  --panel: #181819;
  --paper: #f7f2eb;
  --muted: #b9b2a9;
  --gold: #dfc6a4;
  --line: #373332;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 15px/1.5 var(--sans);
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1260px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 0; z-index: 2; padding: .75rem; background: var(--panel); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; width: 146px; height: 52px; overflow: hidden; }
.brand img { height: 100%; object-fit: cover; object-position: center 44%; }
.social { display: inline-flex; align-items: center; gap: .7rem; color: var(--muted); min-height: 44px; font-size: .84rem; }
.social:hover { color: var(--paper); }
.social span { color: var(--gold); }

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr minmax(380px, .92fr);
  align-items: center;
  gap: 24px;
  background: radial-gradient(ellipse at 69% 50%, #241f1b, transparent 65%);
  padding: 36px clamp(12px, 3vw, 44px);
  margin-block: 8px 14px;
}
.hero h1, .collection h2, .detail-info h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
}
.hero h1 { font-size: clamp(5rem, 8.6vw, 8.6rem); letter-spacing: -.045em; }
.hero h1 em { color: var(--gold); }
.hero-text p { margin: 1.35rem 0 1.65rem; color: var(--muted); }
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  padding: .8em 1.35em;
  min-height: 46px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  font-weight: 600;
  font-size: .83rem;
  transition: background-color 150ms ease;
}
.cta:hover { background: var(--gold); }
.cta:focus-visible { outline-offset: 4px; }
.hero-images { display: flex; justify-content: center; gap: 14px; height: clamp(350px, 33vw, 466px); align-items: center; }
.hero-photo {
  width: 46%;
  height: 93%;
  overflow: hidden;
  border-radius: 2px;
  background: #eeece7;
  box-shadow: 0 14px 26px #0005;
}
.hero-photo img { height: 100%; object-fit: cover; object-position: center 45%; transition: transform 260ms ease; }
.hero-photo:hover img { transform: scale(1.03); }
.hero-silver { align-self: flex-start; }
.hero-floral { align-self: flex-end; }

.collection { padding-block: 32px 72px; border-top: 1px solid var(--line); scroll-margin-top: 14px; }
.collection-title { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.collection h2 { font-size: clamp(3.2rem, 5vw, 5rem); }
#count { color: var(--muted); margin: 0; font-size: .85rem; white-space: nowrap; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 24px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter, .size-filter { border: 1px solid var(--line); border-radius: 100px; min-height: 44px; font-size: .8rem; }
.filter { padding: 7px 15px; background: transparent; color: var(--muted); }
.filter:hover { border-color: var(--muted); }
.filter[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--paper); font-weight: 600; }
.size-filter { display: inline-flex; gap: .65rem; align-items: center; padding-inline: .85rem; color: var(--muted); white-space: nowrap; }
.size-filter select { min-height: 42px; color: var(--paper); background: var(--ink); border: 0; padding-right: .15rem; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
.product { min-width: 0; }
.product-link { display: block; height: 100%; }
.product-photo { display: grid; overflow: hidden; background: #eeece8; border-radius: 3px; aspect-ratio: 3 / 4; }
.product-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform 250ms ease; }
.product-link:hover img { transform: scale(1.035); }
.product-info { padding: 12px 1px 0; }
.product h3 { margin: 0 0 .35em; font-size: .95rem; line-height: 1.38; font-weight: 500; }
.product-meta { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; font-size: .82rem; }
.product-sizes { color: var(--muted); }
.price { color: var(--gold); white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.price-pending { letter-spacing: .13em; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 28px 0; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 36px; }
.footer p { margin: 0; }
.footer small { color: var(--muted); }

dialog { padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; width: min(820px, 100% - 32px); max-height: calc(100% - 32px); color: var(--paper); }
dialog::backdrop { background: #000c; }
body:has(dialog[open]) { overflow: hidden; }
.detail-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.detail-body form { position: absolute; z-index: 1; top: 10px; right: 10px; }
.close { width: 44px; height: 44px; font-size: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); }
.detail-photo { width: 100%; height: 100%; max-height: 650px; aspect-ratio: 3 / 4; object-fit: contain; background: #eeece8; }
.detail-info { padding: 48px 28px 28px; align-self: center; }
.detail-brand { color: var(--gold); margin: 0 0 .7rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.detail-info h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.detail-ref, .detail-note { font-size: .8rem; color: var(--muted); }
.detail-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; margin-top: 20px; }
.size-chip { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding-inline: 8px; background: transparent; font-size: .9rem; }
button.size-chip:hover { border-color: var(--muted); }
.size-chip[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.detail-price { margin: .9rem 0 1.15rem; font-size: 1.3rem; }
.detail-note { margin: .85rem 0 0; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .hero { grid-template-columns: 1fr minmax(300px, .9fr); min-height: 408px; padding-inline: 12px; }
  .hero h1 { font-size: clamp(4rem, 9vw, 6rem); }
  .hero-images { height: 336px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { min-height: 59px; }
  .brand { width: 126px; height: 46px; }
  .hero { display: block; padding: 25px 0 22px; margin-block: 0; }
  .hero h1 { font-size: clamp(3.65rem, 13vw, 5rem); }
  .hero-text p { margin-block: .7rem 1rem; font-size: .86rem; }
  .hero-images { gap: 10px; height: clamp(238px, 68vw, 320px); margin-top: 20px; }
  .hero-photo { width: 50%; }
  .collection { padding-block: 22px 48px; }
  .catalog-controls { align-items: flex-start; flex-direction: column; margin-block: 16px 19px; }
  .filter { padding-inline: 11px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 10px; }
  .product h3 { font-size: .88rem; }
  .product-info { padding-top: 8px; }
  .product-meta { font-size: .76rem; }
  .detail-body { display: block; }
  .detail-photo { max-height: 48dvh; }
  .detail-info { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
