@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #30221e;
  --muted: #695c55;
  --paper: #faf8f4;
  --white: #fff;
  --wine: #692735;
  --line: #dcd4ca;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 5.6vw, 6rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); }
button, select, input { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { background: none; border: 0; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid #a64850; outline-offset: 3px;
}
button:disabled { opacity: .55; cursor: default; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.navwrap, .collection, footer { max-width: 100rem; margin-inline: auto; padding-inline: var(--gutter); }
.navwrap { min-height: 4.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.signature, .mast nav, .wish-nav, .language { display: inline-flex; align-items: center; }
.signature { gap: .8rem; font-size: .85rem; font-weight: 600; letter-spacing: .015em; text-decoration: none; }
.stamp { width: 2.34rem; height: 2.34rem; display: grid; place-items: center; border: 1px solid #806c59; color: var(--wine); font: 1.9rem/1 var(--display); }
.mast nav { gap: clamp(.7rem, 2.4vw, 2.4rem); min-width: 0; }
.language { position: relative; gap: .32rem; }
.globe { color: var(--wine); font: 1.35rem/1 Georgia, serif; }
.language select { min-height: 2.75rem; max-width: 9rem; padding-inline: .05rem; border: none; background: var(--paper); font-size: .83rem; }
.wish-nav { min-height: 2.75rem; gap: .5rem; padding: 0; font-size: .84rem; font-weight: 600; }
.heart { font: 1.45rem/1 Arial, sans-serif; color: var(--wine); }
#count { min-width: 1.45rem; height: 1.45rem; display: grid; place-items: center; padding-inline: .25rem; border-radius: 100%; background: var(--ink); color: white; font: 600 .72rem/1 var(--body); }
.hero { display: grid; grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); max-width: 100rem; min-height: 24rem; margin-inline: auto; background: var(--ink); color: #fbf5e9; }
.cover { position: relative; min-width: 0; min-height: clamp(24rem, 41vw, 38rem); overflow: hidden; background: #e8dfd3; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 43% 66%; }
.cover figcaption { position: absolute; inset-inline-start: clamp(1rem, 3vw, 3rem); bottom: clamp(1rem, 2.5vw, 2.25rem); display: flex; align-items: baseline; gap: .55rem; color: #2e211c; background: #fff9edee; padding: .35rem .65rem; font: .95rem/1.15 var(--display); }
.cover figcaption span { font: 500 .67rem/1.25 var(--body); }
.lead { align-self: center; min-width: 0; padding: clamp(2rem, 5.4vw, 6.5rem) clamp(1.6rem, 5vw, 6rem); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .55em; color: #e0c7a6; font-size: clamp(.67rem,.85vw,.84rem); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.byline i { display: inline-block; width: .85rem; height: 1px; background: #b99d7a; }
.lead h1 { margin-block: clamp(1.2rem,2.9vw,2.4rem) .8rem; font: 400 clamp(2.55rem,5.25vw,6.2rem)/1.02 var(--display); letter-spacing: -.048em; overflow-wrap: anywhere; }
.lead p { max-width: 27rem; color: #efdfd1; font-size: clamp(1rem,1.36vw,1.28rem); line-height: 1.5; }
.browse { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.45rem; margin-top: clamp(1.3rem,3.4vw,3rem); min-height: 2.75rem; border-bottom: 1px solid #d6b99a; text-decoration: none; color: #fff7eb; font-size: .91rem; font-weight: 600; }
.browse span:last-child { color: #e2c9aa; font-size: 1.18rem; }
.collection { padding-block: clamp(2.5rem,5.2vw,5.1rem) clamp(3rem,6vw,6rem); scroll-margin-top: 1rem; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.catalog-head h2, #panelContent h2 { font: 400 clamp(2.1rem,3.8vw,4rem)/1.06 var(--display); letter-spacing: -.04em; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.filters button { min-height: 2.75rem; padding: .42rem .88rem; border: 1px solid transparent; border-radius: 99px; color: var(--muted); font-size: .82rem; }
.filters [aria-pressed="true"] { background: var(--wine); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.55rem,3.1vw,3.2rem) clamp(.85rem,2.1vw,2.25rem); margin-top: 1.5rem; }
.card { min-width: 0; }
.card-picture { position: relative; overflow: hidden; aspect-ratio: 1/1.12; background: var(--white); border: 1px solid #e6e0d8; }
.open-photo { display: block; width: 100%; height: 100%; padding: 0; }
.card-picture .open-photo:focus-visible { outline-offset: -4px; }
.product-img { width: 100%; height: 100%; object-fit: contain; background: white; transition: transform .35s ease; }
.product-img.editorial, .editorial .product-img { object-fit: cover; object-position: center 62%; }
.favorite { position: absolute; inset-inline-end: .6rem; top: .6rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #ddd4cb; border-radius: 50%; background: #fffdfaf2; color: var(--ink); }
.heart-icon { width: 1.18rem; height: 1.18rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.favorite[aria-pressed="true"] { color: var(--wine); border-color: var(--wine); }
[aria-pressed="true"] .heart-icon { fill: currentColor; }
.card-copy { padding-block: .82rem 0; }
.brand, .detail-house { color: var(--wine); font-size: .71rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.model { display: block; padding: .22rem 0; font: 400 clamp(1.35rem,2vw,2.1rem)/1.15 var(--display); letter-spacing: -.026em; text-align: start; }
.color { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.photo-note { color: var(--muted); font-size: .74rem; }
footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .7rem 2rem; padding-block: 1.65rem 2.15rem; border-top: 1px solid var(--line); }
footer > span { color: var(--wine); font: 1.1rem/1.4 var(--display); }
footer > p { max-width: 42rem; color: var(--muted); font-size: .79rem; }
body:has(#panel[open]) { overflow: hidden; }
#panel { position: fixed; inset: 0; inset-inline-start: auto; width: min(34rem,100%); max-width: 100%; max-height: none; height: 100%; height: 100dvh; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); background: var(--paper); border: 0; box-shadow: -12px 0 55px #21191526; }
#panel::backdrop { background: #291b18a6; }
.close { position: sticky; z-index: 2; top: .8rem; display: grid; place-items: center; margin: .8rem .8rem -3.55rem auto; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fffdfaf2; font: 1.75rem/1 var(--body); }
:dir(rtl) .close { margin-inline: auto .8rem; }
#panelContent { min-height: 9rem; padding: 4.25rem clamp(1rem,4vw,2.3rem) 2.2rem; }
#panelContent .detail-image { display: block; width: 100%; aspect-ratio: 1.26; max-height: 23rem; object-fit: contain; background: white; }
.detail-image img, .detail-image.editorial > .product-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-text { padding-block: 1.3rem .25rem; }
#panelContent h2 { font-size: clamp(2rem,4vw,3rem); }
.detail-text .detail-house { display: block; margin-block: .2rem .55rem; color: var(--wine); }
.detail-text .detail-color { margin-block: .4rem .8rem; font-size: .85rem; }
.detail-text h2 small { font: 500 .9rem var(--body); vertical-align: middle; }
.studio-link { display: inline-block; min-height: 2.75rem; padding-block: .65rem; color: var(--wine); font-size: .8rem; text-underline-offset: .16em; }
.detail-text p, .detail-text ul, #panelContent .hint, #panelContent .storage { margin-block: .8rem; color: var(--muted); }
.detail-text ul { padding-inline-start: 1.3rem; }
.actions, .sharing { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: 1rem; }
.actions a, .primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .55rem 1rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 2px; text-align: center; text-decoration: none; font: 600 .86rem/1.35 var(--body); }
.primary, .actions .primary { border-color: var(--wine); background: var(--wine); color: white; }
.secondary { background: transparent; color: var(--ink); }
.selection-list { list-style: none; padding: 0; margin: 1rem 0; }
.selection-row { display: flex; align-items: center; gap: .8rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.selection-picture { width: 4.3rem; height: 4.8rem; flex: none; padding: 0; object-fit: contain; background: var(--white); }
.selection-picture img { width: 100%; height: 100%; object-fit: contain; }
.selection-info { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.selection-info strong, .selection-info small, .selection-info span { display: block; }
.selection-info small, .hint { color: var(--muted); font-size: .82rem; }
.remove { min-width: 2.75rem; min-height: 2.75rem; color: var(--wine); font-size: 1.35rem; }
.share-url { display: block; padding: .7rem; width: 100%; min-width: 0; border: 1px solid var(--line); color: var(--ink); background: var(--white); overflow-wrap: anywhere; }
.notice { position: fixed; z-index: 5; bottom: max(1.1rem,env(safe-area-inset-bottom)); inset-inline-start: 50%; width: max-content; max-width: calc(100% - 2rem); padding: .7rem 1.15rem; border-radius: 4px; color: #fff; background: var(--ink); text-align: center; opacity: 0; visibility: hidden; transform: translateX(-50%); pointer-events: none; }
.notice[data-visible]:not([data-visible="false"]) { opacity: 1; visibility: visible; }
:dir(rtl) .notice { transform: translateX(50%); }
html:lang(ar) { --display: "Noto Naskh Arabic", "Geeza Pro", Tahoma, serif; --body: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html:lang(zh) { --display: "Songti SC", "Noto Serif CJK SC", SimSun, serif; --body: "PingFang SC", "Microsoft YaHei", sans-serif; }
html:lang(ar) :is(h1,h2,.model,.brand,.detail-house,.signature,.byline), html:lang(zh) :is(h1,h2,.model,.brand,.detail-house) { letter-spacing: normal; }
html:lang(ar) :is(h1,h2,.model) { line-height: 1.35; }
html:lang(zh) :is(h1,h2,.model) { line-height: 1.24; }
:is(.byline,.brand,.detail-house,.cover figcaption span) { font-family: "DM Sans", Arial, sans-serif; }
:is(.stamp,.cover figcaption) { font-family: "Instrument Serif", Georgia, serif; }
@media (hover:hover) {
  .open-photo:hover .product-img { transform: scale(1.035); }
  .model:hover, .wish-nav:hover, .remove:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .17em; }
  .filters button:not([aria-pressed="true"]):hover, .secondary:hover { border-color: #8e7868; }
  .favorite:hover { color: var(--wine); border-color: var(--wine); }
  .browse:hover { border-bottom-color: white; }
}
@media (max-width: 56rem) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .cover { min-height: 22.2rem; }
  .lead { padding-inline: clamp(1.4rem,4vw,3rem); }
  .catalog-head { align-items: start; }
}
@media (max-width: 39rem) {
  .navwrap { min-height: 3.75rem; gap: .45rem; }
  .signature { gap: .45rem; font-size: .72rem; line-height: 1.2; }
  .stamp { flex: none; width: 1.95rem; height: 1.95rem; font-size: 1.55rem; }
  .wish-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mast nav { gap: .55rem; }
  .wish-nav { gap: .2rem; }
  .language select { max-width: 6.7rem; }
  .globe { display: none; }
  .hero { display: flex; flex-direction: column; }
  .cover { min-height: 0; height: clamp(13.3rem,52vw,18.5rem); }
  .cover img { object-position: 43% 69%; }
  .lead { width: 100%; padding: 1.5rem var(--gutter) 1.2rem; }
  .lead h1 { margin-block: .68rem .45rem; font-size: clamp(2.6rem,9vw,3.7rem); }
  .lead p { font-size: .96rem; }
  .browse { margin-top: .65rem; }
  .catalog-head { display: block; padding-bottom: .8rem; }
  .filters { gap: .1rem .2rem; margin-top: .75rem; }
  .filters button { padding-inline: .65rem; }
  .grid { gap: 1.35rem .75rem; margin-top: 1.05rem; }
  .favorite { inset-inline-end: .38rem; top: .38rem; }
  .card-copy { padding-block-start: .65rem; }
  .brand { font-size: .66rem; }
  .color { font-size: .78rem; }
  .collection { padding-block: 2rem 2.5rem; }
  footer { display: block; }
  footer p { margin-block-start: .42rem; }
}
@media (max-width: 23.75rem) {
  .grid { grid-template-columns: minmax(0,1fr); gap: 1.65rem; }
  .card-picture { aspect-ratio: 1.1; }
  .language select { max-width: 5.7rem; }
  .model { font-size: 1.6rem; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .open-photo:hover .product-img { transform: none; }
}
