:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ivory: #fffdf8;
  --ink: #182335;
  --night: #101a2b;
  --muted: #52545b;
  --line: #d8d1c3;
  --chapter-paper: #f5f1e8;
  --feature-paper: #eee7da;
  --gutter: clamp(1.25rem, 6vw, 6rem);
  --serif: "Baskerville", "Palatino Linotype", "Times New Roman", serif;
}
[data-theme="champagne"] {
  --paper: #fbf6ed;
  --ivory: #fffaf3;
  --ink: #382b24;
  --night: #282022;
  --muted: #645447;
  --line: #dfcdb9;
  --chapter-paper: #f5e8d5;
  --feature-paper: #eee0ca;
}
[data-theme="jade"] {
  --paper: #f3f6f0;
  --ivory: #fbfcf8;
  --ink: #18382f;
  --night: #112c26;
  --muted: #475c52;
  --line: #cbdbd1;
  --chapter-paper: #e9f0e7;
  --feature-paper: #e0ebe3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
html[lang|="zh"] { --serif: "Songti SC", "Noto Serif CJK SC", "Microsoft YaHei", serif; }
html[lang="ar"] { --serif: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #3672ad; outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.07; margin: 0 0 .38em; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.27; }
h1 { font-size: clamp(3rem, 6.1vw, 7rem); }
h2 { font-size: clamp(2.45rem, 4.4vw, 4.8rem); }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.85rem); }
.skip-link { position: fixed; z-index: 2; inset-block-start: .75rem; inset-inline-start: 1rem; padding: .6rem 1rem; color: white; background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.store-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.5rem var(--gutter) 1.1rem; gap: 1rem; }
.brand { direction: ltr; display: inline-flex; align-items: baseline; gap: .55em; font: 1.5rem var(--serif); letter-spacing: .22em; text-decoration: none; white-space: nowrap; }
.store-header .brand { font-size: clamp(1.6rem, 3.15vw, 3rem); }
.brand span { font: .52em system-ui, sans-serif; letter-spacing: .09em; }
.masthead-inquiry, .language, .store-nav a { font-size: .9rem; }
.masthead-inquiry { justify-self: start; }
.language { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.language select { border: 1px solid var(--line); padding: .42rem .65rem; color: var(--ink); background: var(--ivory); min-height: 2.65rem; font: inherit; }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.8rem; }
.store-nav { justify-content: center; padding: .6rem var(--gutter) 1rem; }
.store-nav a { text-decoration: none; letter-spacing: .035em; }
.store-nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); background: var(--night); color: #fffaf1; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 7vw, 8rem) var(--gutter); }
.hero-copy h1 { max-width: 11ch; }
.hero-copy p:not(.eyebrow) { max-width: 34ch; color: #e5dfd2; }
.eyebrow { font-size: .875rem; text-transform: uppercase; letter-spacing: .14em; }
.hero .eyebrow { color: #e4c99d; }
.hero-figure { position: relative; margin: 0; min-height: clamp(29rem, 48vw, 48rem); background: #6d685e; }
.hero-figure img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.hero-figure figcaption { position: absolute; inset-block-end: 1.5rem; inset-inline-end: clamp(1rem, 3vw, 2.5rem); background: var(--ivory); color: var(--ink); padding: .45rem .85rem; font-size: .875rem; }
.button { display: inline-block; min-height: 2.85rem; padding: .7rem 1.18rem; background: var(--ink); color: white; border: 1px solid var(--ink); text-decoration: none; font: inherit; text-align: center; }
.button:hover { background: #344661; }
.button-light, .button-outline { color: var(--ink); background: var(--paper); }
.button-light:hover, .button-outline:hover { background: #e8e4dc; }
.section { padding: clamp(3rem, 6.6vw, 7rem) var(--gutter); }
.section-intro { max-width: 60ch; }
.section-intro p, .product-summary, .result-count, .back-link { color: var(--muted); }
.collection { background: var(--ivory); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: .75rem 1rem; margin: 2rem 0 .65rem; }
.filters label, .quote-fields label { font-size: .9rem; display: grid; gap: .32rem; }
.filters input, .filters select, .quote-fields input, .quote-fields select, .quote-draft { width: 100%; min-height: 2.8rem; padding: .55rem .65rem; color: var(--ink); background: var(--ivory); border: 1px solid #a69f90; font: inherit; }
.text-button { min-height: 2.8rem; border: 0; padding: 0 .25rem; background: transparent; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; text-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.55rem; }
.product-card { background: var(--paper); }
.product-link { display: block; height: 100%; text-decoration: none; }
.product-link:hover h3 { text-decoration: underline; }
.product-link img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 42%; background: #d6d0c2; }
.product-card-copy { padding: 1rem 1rem 1.4rem; overflow-wrap: anywhere; }
.product-card h3 { font-size: clamp(1.4rem, 2.05vw, 2.35rem); }
.card-category, .product-price { font-weight: 600; }
.card-category, .product-summary, .product-price { font-size: .9rem; margin-bottom: .4rem; }
.product-grid:has(> :only-child) { grid-template-columns: 1fr; }
.product-grid > :only-child .product-link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.product-grid > :only-child img { aspect-ratio: 3 / 2; max-height: 28rem; }
.product-grid > :only-child .product-card-copy { padding: clamp(1.25rem, 5vw, 5rem); }
.product-grid > :only-child h3 { font-size: clamp(1.75rem, 3.8vw, 4rem); }
.gemstones { min-height: 28rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--night); color: #fffaf1; }
.gemstone-art { min-height: 19rem; background: #101729 url("gemstone-study.jpg") 65% center / cover no-repeat; }
.gemstone-copy { align-self: center; padding: clamp(2.75rem, 6vw, 7rem) var(--gutter); }
.gemstone-copy h2 { max-width: 13ch; }
.gemstone-copy p { max-width: 38ch; color: #e5dfd2; }
.text-link { display: inline-block; padding-block: .4rem; color: #f3d9ac; }
.bespoke-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 2rem 0 1.1rem; }
.bespoke-grid article { border-block-start: 1px solid #a38e6a; padding-block: 1.15rem .5rem; }
.bespoke-grid .eyebrow { color: #675536; margin-bottom: .6rem; }
.store-footer, .site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: 1.4rem var(--gutter); border-top: 1px solid var(--line); }
.store-footer { background: #eee9df; }
.store-footer > span { color: var(--muted); }
.detail-wrap { padding-top: 1.75rem; }
.not-found { margin-top: 1rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 6vw, 6rem); margin-top: 1rem; }
.detail-figure { margin: 0; background: #d6d0c2; }
.detail-image { display: block; width: 100%; max-height: 78vh; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 42%; }
.detail-copy h1 { font-size: clamp(2.4rem, 5.25vw, 5.6rem); }
.detail-copy dl { border-block: 1px solid var(--line); padding-block: .75rem; margin-block: 1.2rem; }
.detail-copy dl div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: start; gap: .75rem; padding-block: .4rem; }
.detail-copy dt { font-weight: 600; }
.detail-copy dd { margin: 0; }
.inquiry { max-width: 58rem; margin: clamp(2rem, 6vw, 6rem) auto 0; background: #ece7db; padding: clamp(1.4rem, 5vw, 4rem); }
.inquiry-actions, .quote-fields { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; margin: .8rem 0; }
.quote-fields label { flex: 1 0 min(100%, 14rem); }
.quote-draft { height: 6.3rem; resize: vertical; margin-block: .2rem .45rem; }
.reference { font-weight: 600; overflow-wrap: anywhere; }
.product-film { max-width: 58rem; margin: clamp(2rem, 6vw, 6rem) auto 0; }
.product-film video { display: block; width: 100%; max-height: min(80vh, 44rem); background: var(--night); }
.category-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-block-start: 1.35rem; }
.category-bar button { background: var(--paper); border: 1px solid var(--line); color: var(--ink); padding: .5rem .9rem; font: inherit; cursor: pointer; }
.category-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.category-quote { margin-block-start: 1rem; }
.quote-gemstones { margin-block: .8rem; padding: .6rem .75rem; border: 1px solid var(--line); }
.quote-gemstones summary { cursor: pointer; font-weight: 600; }
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .masthead { grid-template-columns: 1fr auto; padding-top: 1.05rem; padding-bottom: .6rem; }
  .masthead-inquiry, .language > span { display: none; }
  .store-nav { justify-content: start; gap: .6rem 1.45rem; }
  .hero, .gemstones, .product-layout, .bespoke-grid, .product-grid > :only-child .product-link { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 2.85rem; }
  .hero-figure { min-height: clamp(17rem, 74vw, 29rem); }
  .gemstone-copy { padding-block: 2.5rem 3rem; }
  .product-grid, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .filters label:first-child { grid-column: 1 / -1; }
  .bespoke-grid { gap: .4rem; }
  .detail-figure { max-width: 35rem; }
}
@media (max-width: 345px) { .product-grid { grid-template-columns: 1fr; } }

