:root {
  color-scheme: light;
  --ink: #152442;
  --muted: #4d5169;
  --paper: #faf7f5;
  --accent: #73113d;
  --line: #e8dce3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7943a0; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; font-size: 1.2rem; text-decoration: none; letter-spacing: -.04em; white-space: nowrap; }
.wordmark { position: relative; flex: 0 0 auto; width: clamp(7.5rem, 18vw, 10rem); aspect-ratio: 1.36; overflow: hidden; }
.wordmark img { position: absolute; width: 142%; height: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); mix-blend-mode: multiply; }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; font-weight: 640; font-size: .92rem; }
.nav-selection { display: flex; gap: .5rem; align-items: center; }
#count { min-width: 1.65rem; padding: .08rem .34rem; background: #f2e4ee; border-radius: 1rem; text-align: center; }
.hero { margin-top: 2.35rem; display: grid; grid-template-columns: .94fr 1.06fr; background: #f3e5f4; border-radius: 1.6rem; overflow: hidden; }
.hero-content { padding: clamp(2rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 .62rem; color: var(--accent); font-size: .875rem; font-weight: 730; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
h1 { margin-bottom: 1rem; font-size: clamp(3.5rem, 7vw, 6.25rem); line-height: .96; }
h1 em { color: var(--accent); }
.lede { color: var(--muted); max-width: 27ch; margin-bottom: 1.6rem; }
.hero-visual { margin: 0; position: relative; min-width: 0; background: #dac5e7; }
.hero-visual img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; }
.hero-visual figcaption { position: absolute; bottom: .75rem; right: .75rem; border-radius: 1rem; background: #fcf6ffe8; padding: .16rem .7rem; font-size: .81rem; }
.button, .filter { display: inline-flex; border: 1px solid var(--line); align-items: center; justify-content: center; border-radius: 2rem; padding: .62rem 1rem; text-decoration: none; color: var(--ink); font-weight: 680; font-size: .92rem; background: transparent; text-align: center; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover { background: #54102e; }
.catalog { margin-top: 4rem; }
.section-heading { display: flex; justify-content: space-between; gap: .9rem; align-items: end; margin-bottom: 1rem; }
.section-heading > p, .selection p { color: var(--muted); margin-bottom: .3rem; }
h2 { font-size: clamp(2.45rem, 5vw, 4rem); line-height: 1.03; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product { border: 1px solid var(--line); border-radius: 1.15rem; overflow: hidden; background: #fffdfc; min-width: 0; }
.product-cover { position: relative; isolation: isolate; overflow: hidden; min-height: 174px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; }
.product-cover span { font-size: .875rem; font-weight: 700; letter-spacing: .1em; }
.product-cover strong { font: 400 clamp(1.9rem, 4vw, 3rem)/.94 var(--serif); letter-spacing: -.065em; }
.product-cover i { position: absolute; right: -24px; bottom: -42px; z-index: -1; border: 35px solid currentColor; opacity: .11; width: 175px; height: 175px; border-radius: 50%; }
.pink { background: #f0c9dd; color: #632049; }
.green { background: #dfebda; color: #254735; }
.orange { background: #f5dec3; color: #623816; }
.product-body { padding: 1.2rem; display: flex; align-items: flex-start; flex-direction: column; }
.product-body h3 { margin: 0 0 .35rem; font-size: 1.25rem; line-height: 1.2; }
.product-body p:not(.eyebrow) { color: var(--muted); min-height: 3rem; margin-bottom: .8rem; }
.save:hover, .filter:hover { border-color: var(--accent); }
.save[aria-pressed="true"] { background: #f5e6ed; border-color: #c991aa; color: #641538; }
.source { margin-top: .7rem; font-size: .875rem; color: var(--muted); text-underline-offset: .2em; }
.selection { margin: 3.7rem 0 2.3rem; padding: clamp(1.4rem, 4vw, 2.8rem); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.25rem; border: 1px solid #ead9e7; border-radius: 1.2rem; background: #f8edf6; }
.selection .eyebrow { color: var(--accent); }
.selection h2 { margin-bottom: .65rem; }
.selection-panel { align-self: center; }
.selection-panel ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.selection-panel li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.selection-panel li button { background: transparent; border: 0; text-decoration: underline; color: var(--accent); padding: .2rem; }
#status:not(:empty) { margin-top: .5rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.4rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); }
.site-footer p { margin: 0; font-size: .875rem; }
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; margin-top: 1.15rem; }
  .hero-visual { min-height: 270px; }
  .section-heading, .site-footer { align-items: flex-start; flex-direction: column; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .products { grid-template-columns: 1fr; }
  .nav { min-height: 65px; }
  nav { gap: .7rem; }
  nav a { font-size: .875rem; }
  .wordmark { font-size: 1rem; gap: .42rem; }

}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.catalog-tools { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.35rem 0 .75rem; }
.catalog-tools label, .size-label { display: grid; gap: .25rem; font-size: .875rem; font-weight: 680; }
.catalog-tools input, select { width: 100%; min-height: 2.6rem; padding: .43rem .65rem; border: 1px solid #c9bac5; border-radius: .55rem; background: #fff; color: var(--ink); font: inherit; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #644e6d 50%), linear-gradient(135deg, #644e6d 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.catalog-tools input { min-width: min(100%, 20rem); font-size: 1rem; }
.catalog-tools select { min-width: 10rem; }
#results, .price-note { color: var(--muted); font-size: .875rem; }
.price-note { margin-top: 1.4rem; }
.product-photo { background: #fff; border-bottom: 1px solid var(--line); }
.product-photo img { display: block; width: 100%; height: 230px; padding: 1.1rem; object-fit: contain; }
.product-body { gap: .45rem; }
.product-body .eyebrow, .product-body h3 { margin-bottom: 0; }
.product-body p.pack, .product-body p.price, .product-body p.availability, .product-body p.image-credit { min-height: 0; margin: 0; }
.product-body p.price { font-weight: 760; color: var(--ink); font-size: 1.18rem; }
.product-body p.availability, .product-body p.image-credit { font-size: .875rem; }
.product-body details { width: 100%; border-top: 1px solid var(--line); margin: .3rem 0 .15rem; padding-top: .5rem; }
.product-body summary { font-size: .9rem; font-weight: 680; cursor: pointer; }
.specs { font-size: .9rem; margin: .65rem 0; }
.specs dt { font-weight: 680; }
.specs dd { margin: 0 0 .5rem; color: var(--muted); }
.size-label { width: 100%; }
.product-body .save { margin-top: .2rem; }

.product-body h4 { margin: .75rem 0 .35rem; font-size: .95rem; }
.facts-preview { display: block; width: 100%; padding: .45rem; border: 1px solid var(--line); border-radius: .55rem; background: white; cursor: zoom-in; }
.facts-preview img { display: block; width: 100%; height: auto; }
.product-body p.facts-note, .product-body p.other-ingredients, .product-body p.allergens { min-height: 0; margin: .35rem 0 .5rem; font-size: .875rem; }
.product-body p.allergens { font-weight: 680; color: var(--ink); }
#facts-dialog { width: min(58rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); color: var(--ink); }
#facts-dialog::backdrop { background: #152442b0; }
.facts-dialog-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.facts-dialog-header h2 { font: 730 1.1rem/1.3 var(--sans); letter-spacing: normal; }
.facts-dialog-actions { display: flex; gap: .45rem; }
.facts-dialog-image { overflow: auto; max-height: calc(100dvh - 8rem); padding: .7rem; background: white; }
.facts-dialog-image img { display: block; width: 100%; max-width: 100%; height: auto; }
.facts-dialog-image.is-zoomed img { width: max-content; max-width: none; }
