:root {
  color-scheme: light;
  --paper: #f6f2eb;
  --ink: #251e19;
  --muted: #60574f;
  --line: #dfd6cb;
  --accent: #643e2b;
  --chalk: #fefaf4;
  --dark: #241810;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; width: 100%; }
figure, p, h1, h2 { margin: 0; }
:focus-visible { outline: 2px solid #9a552c; outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(1360px, 100% - clamp(2rem, 8vw, 9rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 1rem; left: 1rem; transform: translateY(-220%); background: var(--chalk); padding: .75rem; }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-size: 1.03rem; font-weight: 750; line-height: 1.06; letter-spacing: -.03em; }
.wordmark-small { display: block; font-size: .77rem; font-weight: 600; color: var(--muted); margin-top: .2rem; letter-spacing: .01em; }
.mark { width: 39px; height: 39px; background: var(--dark); color: #f8e3c6; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 3px; }
.mark i { display: block; width: 3px; height: 12px; border-radius: 5px; transform: skew(-23deg); background: currentColor; }
.mark i:nth-child(2) { height: 17px; }
.mark i:nth-child(3) { height: 21px; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.4rem); }
nav a, .site-footer a { font-size: .93rem; font-weight: 650; text-decoration: none; padding-block: .65rem; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.favorites-link { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; font-size: 1.33rem; line-height: 1; }
.favorites-link:hover { background: #eee4d7; text-decoration: none; }

.hero { display: grid; grid-template-columns: .82fr 1.18fr; align-items: stretch; margin-top: clamp(1rem, 3.1vw, 3rem); background: var(--dark); color: #fff5e7; border-radius: 12px; overflow: hidden; }
.hero-copy { z-index: 1; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: clamp(1.65rem, 4.1vw, 4rem); padding-right: .65rem; }
h1, h2 { font-weight: 730; letter-spacing: -.07em; line-height: 1; }
h1 { font-size: clamp(2.7rem, 5.5vw, 6.4rem); line-height: .97; }
h1 em { color: #e8be88; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.085em; white-space: nowrap; }
.hero-copy p { font-size: clamp(1rem, 1.45vw, 1.16rem); color: #eadaca; line-height: 1.55; max-width: 32ch; margin: 1.5rem 0 1.7rem; }
.button { min-height: 51px; display: inline-flex; align-items: center; padding: .8rem 1.3rem; border-radius: 5px; font-weight: 650; text-decoration: none; }
.button-primary { background: var(--accent); color: #fff; border: 0; transition: background .2s; }
.button-primary:hover { background: #502e20; }
.hero .button-primary { background: #f0d6af; color: #2c1c12; }
.hero .button-primary:hover { background: #fae7cc; }
.hero-image { position: relative; overflow: hidden; min-height: clamp(400px, 38vw, 570px); background: #34251d; }
.hero-image img { position: absolute; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark), transparent 22%); pointer-events: none; }
.hero-image figcaption, .live-image figcaption, .collection-card figcaption, .image-caption, .detail-image figcaption { position: absolute; z-index: 1; right: .65rem; bottom: .65rem; padding: .28rem .5rem; background: #fdf9f1f2; color: #4a3b31; font-size: .75rem; font-weight: 650; border-radius: 4px; }

.collections { padding-top: clamp(2.7rem, 5vw, 4.25rem); }
.collections h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); margin-bottom: .95rem; letter-spacing: -.055em; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 1.8vw, 1.4rem); }
.collection-card { display: block; border-radius: 8px; border: 1px solid var(--line); background: var(--chalk); text-decoration: none; overflow: hidden; }
.collection-card figure { position: relative; overflow: hidden; background: #d4d0cd; height: clamp(95px, 14vw, 180px); }
.collection-card img { height: 100%; object-fit: cover; object-position: center; transition: transform .25s; }
.collection-card:last-child img { object-position: center 88%; }
.collection-card:hover img { transform: scale(1.045); }
.collection-text { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: .55rem; padding: .75rem .9rem; }
.collection-text strong { font-size: clamp(.88rem, 1.4vw, 1.14rem); letter-spacing: -.02em; }
.collection-text > span { color: var(--muted); font-size: .8rem; }
.catalog { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2.15rem, 4.1vw, 4.15rem); }
.section-heading p { margin-top: .6rem; line-height: 1.5; color: var(--muted); }
.product-count { white-space: nowrap; font-size: .88rem; color: var(--muted); font-weight: 650; padding-bottom: .12rem; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin: 1.1rem 0 1.45rem; }
.catalog-fields { display: flex; flex-wrap: wrap; gap: .45rem; }
.catalog-fields input, .catalog-fields select { min-height: 44px; padding: .58rem .8rem; border: 1px solid #cfc1b3; background: var(--chalk); border-radius: 5px; color: var(--ink); font: inherit; font-size: .92rem; }
.catalog-fields input { width: clamp(150px, 17vw, 228px); }
.catalog-fields input::placeholder { color: var(--muted); }
.catalog-fields select { appearance: none; padding-right: 2rem; cursor: pointer; }
.sort-field { position: relative; }
.sort-field::after { content: ""; position: absolute; right: .85rem; top: calc(50% - 5px); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); width: 7px; height: 7px; transform: rotate(45deg); pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button, .zoom-button, .detail-navigation button { padding: .62rem .95rem; min-height: 44px; border: 1px solid #cfc1b3; border-radius: 5rem; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 650; transition: background .2s, color .2s; }
.filters button:hover, .zoom-button:hover, .detail-navigation button:hover { background: #eee4d7; }
.filters button[aria-pressed="true"], .zoom-button[aria-pressed="true"] { background: var(--accent); color: white; border-color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.55vw, 1.4rem); }
.product { position: relative; }
.product-button { display: block; width: 100%; height: 100%; padding: 0; text-align: left; color: inherit; background: var(--chalk); border: 1px solid var(--line); border-radius: 8px; }
.product-button:focus-visible { outline-offset: 3px; }
.product-image { position: relative; display: block; overflow: hidden; border-radius: 7px 7px 0 0; background: #e9e8e6; }
.product-image img { aspect-ratio: 1; height: auto; object-fit: cover; transition: transform .25s; }
.favorite-button { position: absolute; z-index: 2; top: .55rem; right: .55rem; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e0d6cb; border-radius: 50%; background: #fdf9f1f5; color: var(--ink); font-size: 1.32rem; line-height: 1; }
.favorite-button[aria-pressed="true"] { color: #922f43; }
.favorite-button:hover { background: #fff; }
@media (hover: hover) { .product-button:hover .product-image img { transform: scale(1.045); } }
.product-info { min-height: 132px; display: block; position: relative; padding: .9rem 2.6rem .95rem 1rem; }
.product-category { display: block; font-size: .81rem; color: var(--muted); font-weight: 650; }
.product-name { display: block; margin-block: .25rem .6rem; font-size: clamp(1rem, 1.55vw, 1.25rem); font-weight: 720; line-height: 1.24; letter-spacing: -.035em; }
.product-price { display: flex; align-items: baseline; column-gap: .45rem; flex-wrap: wrap; color: var(--muted); font-size: .81rem; }
.product-price strong { font-size: 1.05rem; color: var(--ink); }
.detail-icon { display: grid; place-items: center; position: absolute; bottom: .9rem; right: .9rem; width: 31px; height: 31px; border: 1px solid #cfc1b3; color: var(--accent); border-radius: 50%; font-size: 1.15rem; line-height: 1; }
.product-button:hover .detail-icon { background: var(--accent); border-color: var(--accent); color: white; }
.empty-state { padding: clamp(1.5rem, 5vw, 3.5rem) 1rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
.empty-state p { margin-bottom: 1rem; }

.live-section { padding-bottom: clamp(3.25rem, 7vw, 6rem); }
.live-panel { display: grid; grid-template-columns: 1fr 1fr; background: #31251c; border-radius: 9px; overflow: hidden; color: #fdf2e1; }
.live-copy { align-self: center; padding: clamp(1.5rem, 5vw, 5rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 700; margin-bottom: .85rem; color: #efcf9f; }
.eyebrow span { width: .6rem; height: .6rem; border: 2px solid currentColor; border-radius: 50%; }
.live-copy > p:last-child { color: #efe0d2; margin-top: 1.1rem; line-height: 1.65; max-width: 40ch; }
.live-image { position: relative; min-height: 300px; }
.live-image img { position: absolute; height: 100%; object-fit: cover; object-position: center; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.footer-inner span { display: block; color: var(--muted); font-size: .86rem; margin-top: .28rem; }
.footer-inner a { white-space: nowrap; }

html:has(dialog[open]) { overflow: hidden; }
dialog { position: fixed; max-width: min(860px, calc(100% - 2rem)); width: 100%; max-height: calc(100% - 2rem); padding: 0; overflow: auto; color: var(--ink); background: var(--chalk); border: none; border-radius: 9px; box-shadow: 0 24px 70px #0b1b1645; }
dialog::backdrop { background: #271a13bd; }
#detail-content { display: grid; grid-template-columns: 1.1fr 1fr; }
.detail-image { position: relative; display: grid; align-items: center; background: #ddd6ce; overflow: hidden; }
.detail-image img { object-fit: contain; height: auto; aspect-ratio: 1; transition: transform .24s; }
.detail-image.is-enlarged img { transform: scale(1.55); }
.detail-copy { align-self: center; padding: 2.75rem 1.65rem 1.75rem; }
.detail-copy h2 { font-size: clamp(1.7rem, 4vw, 2.75rem); margin-block: .45rem .85rem; }
.detail-description { margin-block: .85rem; color: var(--muted); line-height: 1.5; }
.detail-navigation { display: flex; justify-content: space-between; align-items: center; gap: .45rem; padding-top: .85rem; border-top: 1px solid var(--line); margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.close-button { position: absolute; z-index: 1; display: grid; place-items: center; top: .55rem; right: .55rem; width: 44px; height: 44px; padding: 0 0 .12rem; border-radius: 50%; border: 1px solid var(--line); background: var(--chalk); color: var(--ink); font-size: 1.65rem; line-height: 1; }
.live-link { display: block; width: fit-content; padding-block: .65rem; margin-top: .45rem; color: var(--accent); font-size: .92rem; font-weight: 700; text-underline-offset: .18em; }

@media (max-width: 900px) {
  .hero-image { min-height: 350px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .header-inner { min-height: 66px; }
  .mark { width: 34px; height: 34px; }
  .wordmark { gap: .5rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.45rem 1rem .8rem; }
  .hero-copy p { margin-block: 1rem 1.1rem; }
  .hero-image { min-height: 0; aspect-ratio: 1.52; }
  .hero-image::after { background: linear-gradient(var(--dark), transparent 21%); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-panel { grid-template-columns: 1fr; }
  .live-image { min-height: 0; aspect-ratio: 1.65; }
  .live-copy { padding: 1.65rem 1.35rem; }
}
@media (max-width: 470px) {
  .header-inner { gap: .45rem; }
  nav { gap: .62rem; }
  nav a { font-size: .88rem; }
  .favorites-link { min-width: 40px; height: 40px; font-size: 1.2rem; }
  .section-heading { align-items: flex-start; }
  .collection-text { padding: .45rem .42rem; }
  .collection-card figcaption { right: .2rem; bottom: .2rem; padding: .13rem .18rem; font-size: .65rem; }
  .catalog-fields { width: 100%; }
  .search-field { flex: 1; }
  .catalog-fields input { width: 100%; min-width: 0; }
  .catalog-fields select { max-width: 100%; }
  .product-info { min-height: 136px; padding: .65rem .55rem .7rem; }
  .product-name { min-height: 2.4em; margin-bottom: .28rem; }
  .detail-icon { display: none; }
  .image-caption { right: .35rem; bottom: .35rem; padding: .2rem .35rem; }
  .filters button { padding-inline: .75rem; }
  #detail-content { grid-template-columns: 1fr; }
  .detail-image img { aspect-ratio: 1.28; }
  .detail-copy { padding: 1.05rem 1.1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
