:root {
  color-scheme: light;
  --paper: #f8f3e9;
  --card: #fbf8f2;
  --ink: #332629;
  --wine: #391922;
  --rust: #803a3a;
  --muted: #665657;
  --line: #ded2c5;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #bf7650; outline-offset: 4px; }
.frame { width: min(1320px, calc(100% - 104px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; left: 12px; top: 12px; background: white; padding: 12px; }
.topbar { background: var(--wine); color: var(--paper); }
.topbar-inner, .footer-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { display: inline-flex; flex: none; align-items: center; gap: 10px; }
/* Display the symbol and lettering side by side from the original stacked artwork. */
.brand-logo span { background-image: url("ritual-collective-logo.jpg"); background-repeat: no-repeat; mix-blend-mode: screen; }
.brand-symbol { width: 50px; height: 42px; background-size: 100px; background-position: -25px -16px; }
.brand-wordmark { width: 108px; height: 50px; background-size: 227px; background-position: -60px -137px; }
.catalog-link, .footer-inner > a:last-child { font-size: 13px; font-weight: 600; text-decoration: none; }
.catalog-link span, .footer-inner > a:last-child span { margin-left: 8px; color: #e2aa86; }
.catalog-link:hover, .footer-inner > a:last-child:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(28px, 6vw, 105px); align-items: center; padding-block: clamp(48px, 5.2vw, 84px); }
.hero-copy { padding-bottom: 10px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--rust); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 25px; }
.short-line { width: 27px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: clamp(62px, 7.4vw, 114px); font-weight: 500; line-height: .97; letter-spacing: -.064em; margin-bottom: 27px; }
h1 em { color: var(--rust); font-weight: inherit; }
.hero-description { max-width: 390px; color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 27px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 20px; padding: 10px 17px; border: 1px solid var(--wine); background: var(--wine); color: var(--paper); text-decoration: none; font-size: 13px; font-weight: 700; }
.button:hover { background: var(--rust); border-color: var(--rust); }
.button.outline { background: transparent; color: var(--wine); border-color: #bdaaa3; }
.button.outline:hover { background: #efe4d7; border-color: var(--wine); }
.hero-image { position: relative; display: block; width: 100%; overflow: hidden; background: var(--wine); aspect-ratio: 1.34; padding: 0; border: 0; text-align: left; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center var(--hero-position, 50%); transition: transform .35s; }
.hero-image:hover img { transform: scale(1.025); }
.feature-caption { position: absolute; bottom: 17px; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: fit-content; padding: 8px 12px; background: var(--paper); color: var(--wine); font-size: 12px; font-weight: 700; }
.feature-arrow { font-size: 16px; }
.inventory { background: #f0e8dd; padding-block: 48px 60px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 24px; }
h2 { margin: 0; font-size: clamp(33px, 4.1vw, 60px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; }
.results { color: var(--muted); font-size: 13px; margin: 0; }
.filters { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(200px, 290px) minmax(150px, 180px); gap: 10px; margin-bottom: 24px; }
.search-field, .select-field { position: relative; min-width: 0; }
.search-field input, .select-field select { min-width: 0; width: 100%; height: 49px; border: 1px solid #d2c2b6; border-radius: 0; background: var(--card); font-size: 14px; }
.search-field input { padding: 0 12px 0 42px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.select-field select { padding: 0 31px 0 12px; appearance: none; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.select-field::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; position: absolute; right: 15px; top: 19px; transform: rotate(45deg); pointer-events: none; }
.search-icon { position: absolute; top: 16px; left: 16px; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; width: 6px; height: 1.5px; background: var(--muted); position: absolute; right: -5px; bottom: -3px; transform: rotate(45deg); }
.item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.item { width: 100%; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; min-width: 0; transition: border-color .18s, box-shadow .18s; }
.item:hover { border-color: #a47b71; box-shadow: 0 4px 14px #39192212; }
.photo { display: grid; place-items: center; width: 100%; height: auto; background: #e9e1d6; overflow: hidden; color: var(--muted); font-size: 13px; }
.item .photo { aspect-ratio: 1.24; }
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.item .photo img { object-fit: cover; }
.item-copy { display: grid; gap: 8px; grid-template-rows: auto 1fr auto; flex: 1; width: 100%; padding: 15px 15px 13px; }
.item-category, .detail-category { color: var(--rust); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .086em; }
.item-name { font: 600 20px/1.22 var(--serif); overflow-wrap: anywhere; }
.item-meta { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding-top: 9px; border-top: 1px solid #e8ded3; margin-top: 2px; color: var(--muted); font-size: 12px; }
.item-meta strong { color: var(--wine); font-size: 13px; font-weight: 700; }
.item-arrow { color: var(--rust); font-size: 17px; margin-left: 2px; }
.more-row { display: flex; justify-content: center; margin-top: 25px; }
.empty { padding: 40px 16px; text-align: center; border: 1px dashed #bdaaa3; }
.empty h3 { margin: 0 0 14px; font-size: 26px; }
.footer { background: var(--wine); color: var(--paper); }
.footer-inner { min-height: 88px; }
dialog { position: fixed; width: min(900px, calc(100% - 30px)); max-height: calc(100% - 30px); margin: auto; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(31 15 18 / 70%); }
body:has(dialog[open]) { overflow: hidden; }
.close { z-index: 2; position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 41px; height: 41px; padding: 0 0 3px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 27px; line-height: 1; }
.close:hover { background: #efe4d7; }
.detail-panel { display: grid; grid-template-columns: .95fr 1.05fr; }
.detail-media { align-self: start; padding: 20px; }
.detail-media .photo { height: clamp(210px, 39vw, 475px); }
.detail-media .photo img { object-fit: contain; }
.detail-copy { min-width: 0; padding: 35px 58px 34px 10px; }
.detail-copy h2 { margin: 6px 0 10px; font-size: clamp(29px, 4vw, 48px); overflow-wrap: anywhere; }
.detail-price { font-size: 17px; font-weight: 700; color: var(--rust); margin-bottom: 17px; }
.detail-description, .fine, .detail-copy dd { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-copy dl { margin: 15px 0 0; }
.detail-copy dl > div { padding: 9px 0; border-top: 1px solid var(--line); }
.detail-copy dt { font-size: 11px; text-transform: uppercase; letter-spacing: .075em; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.detail-copy dd { margin: 0; }
.photo-link { margin-top: 12px; }
.fine { color: var(--muted); margin: 9px 0 0; }
@media (max-width: 1080px) {
  .frame { width: calc(100% - 66px); }
  .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; padding-block: 42px 29px; gap: 23px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(58px, 13vw, 89px); margin-bottom: 18px; }
  .hero-description { margin-bottom: 19px; }
  .hero-image { aspect-ratio: 1.6; }
  .inventory { padding-block: 36px 45px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .search-field { grid-column: 1 / -1; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-copy { padding: 10px; gap: 6px; }
  .item-name { font-size: clamp(15px, 4vw, 20px); }
  .item-category { font-size: 9px; }
  .detail-panel { grid-template-columns: 1fr; }
  .detail-media { padding: 14px 14px 0; }
  .detail-media .photo { height: min(48vh, 330px); }
  .detail-copy { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 400px) {
  .topbar-inner, .footer-inner { gap: 12px; }
  .brand-logo { gap: 6px; }
  .catalog-link { text-align: right; }
}
