:root {
  --ink: #080a0b;
  --coal: #111517;
  --slate: #1a2023;
  --fog: #a8afb1;
  --bone: #eee4d0;
  --paper: #f6f0e4;
  --clay: #9b654d;
  --violet: #8e78b8;
  --line: rgba(238,228,208,.16);
  --serif: "Rye", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 84px; padding: 0 clamp(1.1rem,4vw,4rem); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8,10,11,.92); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { border-radius: 50%; border: 1px solid rgba(238,228,208,.35); }
.brand span { display: grid; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .03em; }
.brand small { color: var(--fog); text-transform: uppercase; letter-spacing: .26em; margin-top: .38rem; font-size: .65rem; }
nav { display: flex; align-items: center; gap: clamp(1rem,3vw,2.3rem); }
nav a { text-decoration: none; color: #d5d3cc; font-size: .9rem; }
nav a:hover { color: white; }
.market-link { border: 1px solid rgba(238,228,208,.4); border-radius: 999px; padding: .6rem 1rem; }

.hero { min-height: min(680px, calc(100vh - 84px)); position: relative; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) brightness(.62); transform: scale(1.03); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,10,.98) 0%, rgba(7,9,10,.78) 38%, rgba(7,9,10,.18) 72%), linear-gradient(0deg, rgba(7,9,10,.82), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(700px, 88vw); margin-left: clamp(1.25rem,8vw,9rem); padding: 4rem 0; }
.eyebrow { margin: 0 0 .8rem; color: #c0a4d5; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; font-weight: 700; }
h1, h2, h3, p { text-wrap: balance; }
h1 { font-family: var(--serif); font-size: clamp(3.4rem,7.4vw,7rem); line-height: .98; font-weight: 400; letter-spacing: -.02em; margin: 0; color: var(--bone); text-shadow: 0 5px 32px rgba(0,0,0,.5); }
.hero-copy > p:not(.eyebrow) { max-width: 600px; color: #d2d2ce; font-size: clamp(1rem,1.5vw,1.18rem); margin: 1.6rem 0 2.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--bone); min-height: 48px; padding: .7rem 1.2rem; text-decoration: none; font-weight: 700; }
.button.primary { background: var(--bone); color: var(--ink); }
.button.primary:hover { background: white; }
.storm-note { position: absolute; right: clamp(1.2rem,4vw,4rem); bottom: 1.6rem; z-index: 2; color: #d7d2c8; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.storm-note span { color: #b19ada; }

.catalog { padding: clamp(4rem,8vw,7.5rem) clamp(1.1rem,5vw,5rem); max-width: 1600px; margin: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
h2 { font-family: var(--serif); color: var(--bone); font-size: clamp(2.5rem,5vw,4.7rem); line-height: 1.08; font-weight: 400; margin: 0; }
.section-heading > p { color: var(--fog); margin: 0; }
.inventory-status { text-align: right; }
.inventory-status p { color: var(--paper); margin: 0; }
.inventory-status small { color: var(--fog); }
.catalog-tools { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.search-box { height: 48px; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; background: var(--coal); border: 1px solid var(--line); }
.search-box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(142,120,184,.15); }
.search-box svg { width: 18px; fill: none; stroke: var(--fog); stroke-width: 2; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: white; background: transparent; }
.search-box input::placeholder { color: #7f878a; }
.sort-box { min-height: 48px; display: flex; align-items: center; gap: .8rem; color: var(--fog); }
.sort-box > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.sort-box select { min-height: 48px; padding: 0 2.5rem 0 1rem; color: var(--paper); background: var(--coal); border: 1px solid var(--line); cursor: pointer; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 0 0 2rem; }
.filter { min-height: 44px; padding: .55rem .88rem; border: 1px solid var(--line); background: transparent; color: #b7bcbd; cursor: pointer; }
.filter:hover, .filter.active { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.filter span { display: inline-grid; place-items: center; min-width: 1.65rem; height: 1.65rem; margin-left: .35rem; padding-inline: .3rem; border-radius: 999px; background: rgba(238,228,208,.1); font-size: .7rem; }
.filter.active span, .filter:hover span { background: rgba(8,10,11,.12); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product-card { min-width: 0; background: var(--ink); position: relative; }
.product-card button { width: 100%; display: block; padding: 0; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1; background: #e9e9e7; }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s ease, filter .55s ease; }
.product-card:hover .product-image img { transform: scale(1.035); filter: brightness(1.08); }
.product-badge { position: absolute; top: 1rem; left: 1rem; padding: .35rem .6rem; background: rgba(8,10,11,.85); color: var(--bone); border: 1px solid rgba(238,228,208,.26); backdrop-filter: blur(10px); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.product-info { padding: 1.25rem 1.3rem 1.4rem; }
.product-info > p { color: #9da3a5; margin: 0 0 .35rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; }
.product-info h3 { margin: 0 0 .35rem; min-height: 3.15rem; font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.35; font-weight: 500; color: #f1eadf; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-meta strong { color: var(--bone); font-size: 1.05rem; }
.product-meta span { color: var(--fog); font-size: .78rem; }
.empty-state { text-align: center; padding: 5rem 1rem; border: 1px solid var(--line); }
.empty-state > span { font-size: 2.4rem; }
.empty-state h3 { font-family: Georgia, serif; font-size: 1.5rem; margin: 1rem 0 .35rem; }
.empty-state p { color: var(--fog); margin: 0 0 1rem; }
.text-button { color: var(--bone); background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.load-more-wrap { padding: 2rem 0 0; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.load-more-wrap[hidden] { display: none; }
.load-more-wrap p { color: var(--fog); margin: 0; }
.button.secondary { background: transparent; color: var(--bone); cursor: pointer; }
.button.secondary:hover { background: var(--bone); color: var(--ink); }

.story { display: grid; grid-template-columns: .55fr 1.1fr 1.25fr; align-items: center; gap: clamp(2rem,5vw,6rem); padding: clamp(4rem,8vw,8rem) clamp(1.1rem,7vw,8rem); background: #111416; border-block: 1px solid var(--line); }
.story-mark { justify-self: center; width: clamp(130px,14vw,210px); aspect-ratio: 1; border: 1px solid #736d63; border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--bone); box-shadow: inset 0 0 0 8px #111416, inset 0 0 0 9px #4b4c47; }
.story-mark span { font-family: var(--serif); font-size: clamp(3rem,5vw,5rem); line-height: .85; }
.story-mark small { letter-spacing: .28em; text-transform: uppercase; margin-left: .28em; }
.story-copy > p:not(.eyebrow) { color: #bdc1c1; max-width: 650px; }
.signature { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--bone); font-size: .85rem; letter-spacing: .08em; }
.story > img { width: 100%; min-height: 430px; height: 100%; object-fit: cover; filter: saturate(.72); }

.marketplaces { max-width: 1300px; margin: auto; padding: clamp(4rem,8vw,7rem) clamp(1.1rem,4vw,4rem); text-align: center; }
.marketplace-links { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.marketplace-links a { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 1rem; padding: 1.4rem .5rem; text-decoration: none; border-bottom: 1px solid var(--line); text-align: left; }
.marketplace-links a:hover { background: rgba(238,228,208,.04); padding-inline: 1rem; }
.marketplace-links span { font-family: Georgia, serif; color: var(--bone); font-size: 1.3rem; }
.marketplace-links small { color: var(--fog); }
.marketplace-links b { font-size: 1.4rem; font-weight: 400; }
footer { padding: 2.5rem clamp(1.1rem,4vw,4rem); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--fog); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { border-radius: 50%; }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: Georgia, serif; color: var(--bone); }
.footer-brand span { font-size: .8rem; }
footer > p { font-size: .8rem; }

dialog { width: min(960px, calc(100vw - 2rem)); padding: 0; background: var(--coal); color: var(--paper); border: 1px solid rgba(238,228,208,.26); box-shadow: 0 25px 100px #000; }
dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(238,228,208,.35); background: rgba(8,10,11,.75); color: white; font-size: 1.6rem; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 1.1fr 1fr; }
.dialog-layout > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.dialog-copy { padding: clamp(2rem,5vw,4rem); align-self: center; }
.dialog-copy h2 { font-family: Georgia, serif; font-size: clamp(1.8rem,3vw,2.8rem); }
.dialog-copy .price { font-size: 1.5rem; color: var(--bone); margin: .5rem 0 1.3rem; }
.dialog-copy > p:not(.eyebrow,.price) { color: #bdc1c1; }
dl { margin: 1.6rem 0; border-block: 1px solid var(--line); }
dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--fog); }
dd { margin: 0; }
.concept-note { display: block; color: #858b8c; margin-top: 1rem; line-height: 1.4; }

@media (max-width: 960px) {
  .catalog-tools { grid-template-columns: 1fr; }
  .sort-box { justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story { grid-template-columns: .45fr 1fr; }
  .story > img { grid-column: 1 / -1; max-height: 460px; }
}

@media (max-width: 680px) {
  .site-header { height: 72px; padding-inline: 1rem; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: .9rem; }
  nav a:not(.market-link) { display: none; }
  .market-link { padding: .5rem .75rem; font-size: .78rem; }
  .hero { min-height: 620px; align-items: end; }
  .hero-image { object-position: 63% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,9,10,.98) 2%, rgba(7,9,10,.65) 67%, rgba(7,9,10,.26)); }
  .hero-copy { margin: 0; padding: 3rem 1.2rem 5rem; width: 100%; }
  h1 { font-size: clamp(3.2rem,16vw,5rem); }
  .storm-note { left: 1.2rem; right: auto; bottom: 1rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .5rem; }
  .inventory-status { text-align: left; }
  .product-grid { grid-template-columns: 1fr; }
  .product-info h3 { min-height: 0; }
  .load-more-wrap { align-items: stretch; flex-direction: column; text-align: center; }
  .story { grid-template-columns: 1fr; }
  .story-mark { justify-self: start; }
  .story > img { min-height: 280px; }
  .marketplace-links a { grid-template-columns: 1fr auto; }
  .marketplace-links small { grid-column: 1; }
  .marketplace-links b { grid-column: 2; grid-row: 1 / span 2; }
  footer { align-items: start; flex-direction: column; }
  footer > p { margin: 0; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-layout > img { min-height: 280px; max-height: 340px; }
  .dialog-copy { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
