/* Hallmark · theme: custom (pinned reference) · genre: atmospheric · hero: split · nav: framed · footer: colophon · posture: restrained · signature: onyx on slate */
/* critique: use the reference's framed layout and silver palette; keep the collection toolbar compact. */
:root {
  color-scheme: dark;
  --outer: #111214;
  --ink: #17181a;
  --panel: #1c1d20;
  --photo: #171717;
  --shade: #232427;
  --shine: #f2f1ef;
  --silver: #c7c9cd;
  --muted: #adb0b6;
  --line: #404248;
  --edge: #62646b;
  --black: #0e0e0f;
  --veil: rgb(6 7 9 / 68%);
  --highlight: rgb(220 226 239 / 11%);
  --clear: transparent;
  --display: 'Times New Roman', Georgia, serif;
  --body: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
html:has(dialog[open]) { overflow-y: hidden; }
body {
  margin: 0;
  color: var(--shine);
  background: radial-gradient(ellipse at 50% 10%, var(--shade), var(--outer) 65%);
  font: 14px/1.5 var(--body);
  scrollbar-color: var(--edge) var(--ink);
}
::selection { background: var(--silver); color: var(--black); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; background: var(--shade); color: var(--muted); border-color: var(--line); }
:focus-visible { outline: 2px solid var(--shine); outline-offset: -3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1, h2, h3 { overflow-wrap: break-word; min-width: 0; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip { position: fixed; z-index: 5; inset: .5rem auto auto .5rem; transform: translateY(-180%); padding: .6rem; background: var(--panel); }
.skip:focus { transform: none; }

.frame { width: min(1460px, calc(100% - 24px)); margin: 12px auto; border: 1px solid var(--edge); background: var(--ink); }
.header { min-height: 84px; padding: 12px clamp(20px, 3.2vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 12px; color: var(--silver); }
.brand span { font: 30px/1 var(--display); letter-spacing: .28em; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); color: var(--silver); }
.header nav a, .back { padding: 8px 0; text-decoration: underline; text-decoration-color: var(--clear); text-underline-offset: 5px; transition: text-decoration-color .22s, color .22s; }
.header nav a:hover, .back:hover { color: var(--shine); text-decoration-color: currentColor; }
.bag-button { justify-self: end; display: flex; align-items: center; gap: 8px; border: 0; background: none; min-height: 44px; padding: 4px 8px; color: var(--silver); }
.bag-button:hover { color: var(--shine); }
.count { border: 1px solid var(--edge); min-width: 23px; padding: 2px 4px; text-align: center; line-height: 17px; font-size: 12px; font-variant-numeric: tabular-nums; }

.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr); border-bottom: 1px solid var(--line); }
.hero-main { isolation: isolate; position: relative; min-height: clamp(430px, 42vw, 590px); display: flex; align-items: center; overflow: clip; background: var(--black); color: var(--shine); }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; object-fit: cover; object-position: 64% 52%; z-index: -2; animation: silver-light 1.3s var(--ease) both; }
.hero-main::after, .atelier::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-main::after { background: linear-gradient(90deg, var(--black) 0%, var(--veil) 27%, var(--clear) 65%); }
.hero-copy { padding: 44px clamp(24px, 3.5vw, 56px); max-width: 56%; animation: rise .7s var(--ease) both; }
.hero h1 { font: 400 clamp(46px, 5.5vw, 87px)/.99 var(--display); letter-spacing: -.035em; }
.hero-copy p, .atelier-copy p { color: var(--silver); max-width: 30ch; margin-bottom: 28px; line-height: 1.7; }
.hero-copy p::before, .atelier-copy p::before { content: ''; display: block; width: 45px; height: 1px; background: var(--edge); margin: 24px 0 16px; }
.outline { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; background: var(--clear); border: 1px solid var(--edge); color: var(--silver); text-align: center; transition: background-color .23s, color .23s, border-color .23s, transform .23s var(--ease); }
.outline:hover { background: var(--highlight); border-color: var(--silver); color: var(--shine); transform: translateY(-2px); }
.outline:active { transform: translateY(1px); }
.spec { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 24px clamp(20px, 2.5vw, 40px); border-left: 1px solid var(--line); background: linear-gradient(155deg, var(--shade), var(--ink) 75%); scroll-margin-top: 10px; }
.spec h2 { font: 400 26px/1.15 var(--display); margin-bottom: 8px; }
.spec-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: clamp(12px, 1.7vw, 24px) 0; border-bottom: 1px solid var(--line); }
.spec-item:last-child { border-bottom: 0; }
.spec-item .icon { width: 30px; height: 30px; color: var(--silver); }
.spec-item h3 { font-size: 14px; font-weight: 500; }
.spec-item p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.element { width: 30px; height: 34px; position: relative; border: 1px solid var(--edge); display: grid; place-items: center; padding-top: 4px; font: 17px/1 var(--display); color: var(--silver); }
.element small { position: absolute; left: 3px; top: 3px; font: 7px/1 var(--body); }

.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 0 clamp(16px, 3.2vw, 48px); background: var(--panel); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 2.3vw, 36px); }
.filters button { border: 0; border-bottom: 1px solid var(--clear); background: none; color: var(--muted); min-height: 48px; padding: 0 1px; font-size: 13px; transition: color .2s, border-color .2s; }
.filters button:hover, .filters button[aria-pressed=true] { color: var(--shine); }
.filters button[aria-pressed=true] { border-color: var(--silver); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sort select { background: var(--panel); border: 1px solid var(--clear); color: var(--silver); min-height: 44px; max-width: 100%; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); gap: 1px; }
.product { min-width: 0; background: var(--photo); transition: background-color .25s; }
.product-photo { position: relative; overflow: clip; aspect-ratio: 1.46; background: radial-gradient(ellipse at center, var(--shade), var(--photo) 72%); }
.product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; transition: transform .42s var(--ease); }
.product:not([data-type=pendant]) img { object-fit: cover; }
.product:hover img { transform: scale(1.025); }
.product-info { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 8px; padding: 8px clamp(12px, 2vw, 24px) 12px; }
.product h3 { font: 400 clamp(17px, 1.9vw, 25px)/1.1 var(--display); }
.product p { margin-top: 4px; color: var(--silver); font-size: 13px; font-variant-numeric: tabular-nums; }
.add, .square { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); background: var(--clear); color: var(--silver); transition: color .2s, background-color .2s, border-color .2s, transform .2s var(--ease); }
.add .icon, .square .icon { width: 19px; height: 19px; }
.add:hover, .square:hover { background: var(--silver); color: var(--black); border-color: var(--silver); }
.add:active, .square:active { transform: scale(.93); }
.catalog-end { padding: 16px; background: var(--panel); border-block: 1px solid var(--line); text-align: center; }

.atelier { min-height: clamp(330px, 34vw, 475px); position: relative; isolation: isolate; overflow: clip; display: flex; align-items: center; background: var(--black); border-bottom: 1px solid var(--line); }
.atelier img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 68% 53%; }
.atelier::after { background: linear-gradient(90deg, var(--black), var(--veil) 29%, var(--clear) 60%); }
.atelier-copy { padding: 40px clamp(24px, 3.5vw, 56px); max-width: 52%; }
.atelier h2 { font: 400 clamp(36px, 4vw, 63px)/1 var(--display); letter-spacing: -.02em; }
.atelier-copy p { max-width: 38ch; }
.details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); gap: 1px; border-bottom: 1px solid var(--line); }
.details > div { padding: 12px 16px; min-height: 69px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--silver); background: var(--panel); }
.details .element { flex-shrink: 0; }
.footer { padding: 20px clamp(16px, 3.2vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--muted); }
.footer .brand span { font-size: 24px; }

.cart { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(100%, 455px); max-width: none; height: 100dvh; max-height: none; background: var(--ink); border: 0; border-left: 1px solid var(--edge); color: var(--shine); }
.cart[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: slide .34s var(--ease) both; }
.cart::backdrop { background: var(--veil); }
.cart[open]::backdrop { animation: fade .3s var(--ease) both; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart h2 { font: 400 36px/1 var(--display); }
.cart-content { overflow: auto; padding: 0 24px; }
.empty { color: var(--muted); margin: 32px 0; }
.cart-line { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 78px; height: 78px; object-fit: contain; background: var(--photo); }
.cart-line h3 { font: 400 21px/1.1 var(--display); margin-bottom: 4px; }
.cart-line p { color: var(--silver); }
.qty { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.qty button { width: 37px; height: 44px; padding: 0; }
.qty .icon { width: 16px; height: 16px; }
.cart-foot { padding: 20px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.total { display: flex; justify-content: space-between; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.checkout { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--silver); background: var(--silver); color: var(--black); transition: background-color .2s; }
.checkout:not(:disabled):hover { background: var(--shine); }
#checkout-note { min-height: 1.5em; margin-top: 8px; text-align: center; color: var(--silver); }
.toast { position: fixed; z-index: 2; right: 22px; bottom: 22px; max-width: calc(100% - 44px); padding: 12px 16px; border: 1px solid var(--edge); background: var(--panel); opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s var(--ease); pointer-events: none; }
.toast.visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: .15; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes silver-light { from { filter: brightness(.68); transform: scale(1.04); } to { filter: brightness(1); transform: none; } }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 950px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(210px, 27%); }
  .hero-copy { max-width: 62%; }
  .hero-main { min-height: 425px; }
}
@media (max-width: 740px) {
  .frame { width: calc(100% - 16px); margin: 8px auto; }
  .header { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 8px 16px 0; }
  .header nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 13px; }
  .header nav a { padding: 12px 0; }
  .brand span { font-size: 26px; }
  .brand img { width: 29px; height: 36px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-main { min-height: clamp(415px, 95vw, 530px); align-items: end; }
  .hero-photo { height: 80%; object-position: 71% 37%; }
  .hero-main::after { background: linear-gradient(0deg, var(--black) 7%, var(--veil) 37%, var(--clear) 73%); }
  .hero-copy { max-width: none; width: 100%; padding: 104px 20px 24px; }
  .hero h1 { font-size: clamp(43px, 8vw, 60px); }
  .hero-copy p::before, .atelier-copy p::before { margin: 16px 0 12px; }
  .hero-copy p, .atelier-copy p { margin-bottom: 16px; }
  .spec { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 20px 12px 8px; }
  .spec h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .spec-item { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
  .spec-item .icon, .spec-item .element { width: 25px; }
  .spec-item:nth-last-child(2) { border-bottom: 0; }
  .catalog-bar { flex-wrap: wrap; gap: 0 12px; padding: 0 12px; }
  .filters { gap: 0 16px; }
  .filters button { min-height: 44px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-photo { aspect-ratio: 1.2; }
  .atelier { min-height: 400px; align-items: end; }
  .atelier img { height: 72%; object-position: 75% 53%; }
  .atelier::after { background: linear-gradient(0deg, var(--black) 14%, var(--veil) 37%, var(--clear) 69%); }
  .atelier-copy { max-width: 100%; padding: 128px 20px 24px; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details > div { justify-content: start; min-height: 58px; font-size: 13px; }
  .footer { flex-wrap: wrap; }
  .footer p { order: 1; flex-basis: 100%; font-size: 12px; }
}
@media (max-width: 370px) {
  .bag-label { position: absolute; clip-path: inset(50%); }
  .filters { gap: 0 12px; }
  .filters button { font-size: 12px; }
  .cart-head, .cart-content, .cart-foot { padding-inline: 16px; }
  .cart-line { grid-template-columns: 55px minmax(0, 1fr) auto; gap: 8px; }
  .cart-line img { width: 55px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
