:root {
  color-scheme: light;
  --paper: #fcf7f6;
  --ink: #302039;
  --muted: #69536e;
  --berry: #552f60;
  --line: #e9dce7;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #a0549a; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; font-weight: 500; }
.wrap { width: min(100% - 1.5rem, 73rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 3.6rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font: 1.2rem var(--serif); letter-spacing: .1em; text-decoration: none; }
.brand img { object-fit: contain; }
.header-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .5rem; font-size: .875rem; font-weight: 650; text-underline-offset: .25em; }

main { container-type: inline-size; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 37%; background: #f2e6f0; border-radius: .9rem; overflow: clip; margin-block: .75rem 1.5rem; }
.hero-copy {
  container-type: inline-size;
  display: grid;
  justify-items: start;
  align-self: center;
  gap: clamp(.65rem, 1.8vw, 1.15rem);
  min-width: 0;
  padding: clamp(1.05rem, 3.5vw, 3.5rem) clamp(.75rem, 2.6vw, 2.75rem);
}
.eyebrow { color: var(--berry); font-weight: 650; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 {
  max-width: 100%;
  font-size: clamp(1.65rem, 7vw, 5.7rem);
  font-size: clamp(1.65rem, 17cqi, 5.7rem);
  letter-spacing: -.055em;
  line-height: 1.04;
}
.hero h1 > * { display: block; overflow-wrap: anywhere; }
.hero h1 em { color: #77467d; font-weight: inherit; }
.hero-description { display: none; color: var(--muted); }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem .85rem; border-radius: 5rem; color: white; background: var(--berry); text-decoration: none; font-weight: 650; font-size: .875rem; }
.hero-photo { position: relative; background: #e9dce7; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.hero-photo figcaption { display: none; }

.catalog { padding-bottom: 2.5rem; }
.catalog h2 { font-size: clamp(1.85rem, 6vw, 4rem); scroll-margin-top: .75rem; letter-spacing: -.035em; }
.filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #a787aa #f2e6f0;
  margin-inline: -.75rem;
  margin-top: .55rem;
  padding: .35rem .75rem .55rem;
}
.filters button { flex: none; min-height: 2.75rem; border: 1px solid #cdb7cd; border-radius: 5rem; background: #fffafc; padding: .45rem .85rem; font-size: .875rem; white-space: nowrap; }
.filters button[aria-pressed="true"] { color: white; background: var(--berry); border-color: var(--berry); }
.filters button:focus-visible { outline-offset: 2px; }
.results { color: var(--muted); font-size: .875rem; margin-block: .5rem .65rem; min-height: 1.55em; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.card { min-width: 0; display: flex; flex-direction: column; background: #fffafb; border: 1px solid var(--line); border-radius: .8rem; overflow: clip; }
.card-media { position: relative; aspect-ratio: 5 / 4; background: #e9dce7; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reference { position: absolute; inset: auto .35rem .35rem .35rem; width: fit-content; background: #302039ee; color: white; padding: .2rem .4rem; border-radius: .35rem; font-size: .8125rem; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: .6rem; overflow-wrap: anywhere; }
.card-category, .detail-collections { font-size: .875rem; color: var(--muted); }
.card-category { line-height: 1.25; }
.card h3 { margin-block: .3rem .55rem; font-size: clamp(1.125rem, 2.3vw, 1.65rem); }
.price { font-size: .875rem; font-weight: 650; color: var(--berry); margin-top: auto; }
.open-detail { min-height: 2.75rem; width: 100%; margin-top: .55rem; border: 1px solid #cdb7cd; border-radius: .5rem; background: transparent; font-size: .875rem; font-weight: 650; }
.open-detail:active, .filters button[aria-pressed="false"]:active { background: #f2e6f0; }

.detail { width: 100%; max-width: none; max-height: 88vh; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 1rem 1rem 0 0; overscroll-behavior: contain; background: #fffafb; color: var(--ink); }
.detail::backdrop { background: #22142ac2; }
.detail form { position: sticky; top: 0; height: 0; z-index: 1; }
.close { position: absolute; top: .65rem; right: .65rem; width: 2.75rem; height: 2.75rem; padding: 0; background: #fffafb; border: 1px solid #cdb7cd; border-radius: 50%; font-size: 1.55rem; }
.detail-photo { width: 100%; height: clamp(10rem, 52vw, 17rem); object-fit: contain; background: #eee4ed; }
.detail-copy { padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); }
.detail-copy > * + * { margin-top: .6rem; }
.detail-copy h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.detail-price { font-weight: 650; color: var(--berry); }
.detail-reference { color: var(--muted); font-size: .875rem; }
.detail-copy .primary { width: 100%; margin-top: .85rem; }
.contact-pending:disabled { background: #ebdfeb; color: var(--berry); border: 0; opacity: 1; cursor: default; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.site-footer strong { font: 1.2rem var(--serif); letter-spacing: .12em; }
.site-footer a { font-size: .9rem; padding-block: .5rem; }

@media (min-width: 22.5rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .hero { grid-template-columns: minmax(0, 1fr) 41%; }
  .card-category { min-height: 2.5em; }
}

@media (min-width: 44rem) {
  .wrap { width: min(100% - 4rem, 73rem); }
  .header-inner { min-height: 4.25rem; }
  .brand { font-size: 1.45rem; }
  .brand img { width: 44px; height: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); margin-block: 1.25rem 2.8rem; border-radius: 1.4rem; }
  .hero-copy { padding: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1.5rem, 4vw, 4.25rem); }
  .hero-description { display: block; }
  .hero-photo::before { content: ''; display: block; aspect-ratio: 1.2; }
  .hero-photo figcaption { display: block; position: absolute; inset: auto 0 0; padding: 1.75rem 1rem .65rem; background: linear-gradient(transparent, #271726e8); color: white; font-size: .875rem; }
  .filters { margin-inline: -.35rem; padding-inline: .35rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .card-media { aspect-ratio: 1; }
  .card-body { padding: .9rem; }
  .detail { width: min(46rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; border-radius: 1rem; }
  .detail-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .detail-photo { height: 26rem; }
  .detail-copy { padding: 2rem 1.5rem; }
}
@media (min-width: 66rem) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

@container (max-width: 18rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo::before { content: ''; display: block; aspect-ratio: 2.5; }
}

@media (hover: hover) and (pointer: fine) {
  .primary:not(:disabled):hover { background: #422146; }
  .open-detail:hover, .filters button[aria-pressed="false"]:hover { background: #f2e6f0; }
}
