:root {
  color-scheme: light;
  --milk: #f8f3e8;
  --paper: #fffaf1;
  --olive: #50562e;
  --sage: #e0e4d0;
  --beige: #ede2ce;
  --red: #ad3e32;
  --ink: #302d24;
  --muted: #625c4c;
  --line: #d6cbb5;
  --display: Georgia, 'Times New Roman', serif;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--milk);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--olive); font-family: var(--display); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 8px; left: 8px; padding: 8px 16px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: sticky; z-index: 3; top: 0; background: var(--milk); border-bottom: 1px solid var(--line); }
main[id], main section[id] { scroll-margin-top: 108px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: italic 600 1.32rem/1 var(--display); color: var(--olive); text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 47px; height: 47px; padding-bottom: 5px; border: 1px solid var(--olive); outline: 1px solid #b7a679; outline-offset: -5px; border-radius: 50%; font-size: 1.25rem; }
.brand-mark span { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); color: var(--red); font: normal .69rem/1 system-ui, sans-serif; }
nav { display: flex; gap: clamp(16px, 4vw, 48px); }
nav a { text-decoration: none; color: var(--olive); font-weight: 600; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cart-area { position: relative; justify-self: end; }
.cart-toggle { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); color: var(--olive); background: var(--paper); border-radius: 999px; padding: 8px 12px; min-height: 44px; font-size: .9rem; font-weight: 650; transition: background .16s ease, box-shadow .16s ease; }
.cart-toggle svg { width: 22px; }
.cart-toggle span { display: grid; min-width: 23px; min-height: 23px; padding-inline: 4px; place-items: center; background: var(--sage); border-radius: 999px; font-size: .75rem; }
.cart-toggle.has-items { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.cart-toggle.has-items span { background: var(--paper); color: var(--olive); }
.cart-toggle.is-adding { color: #35290f; background: #f5cf73; border-color: #a66d1c; box-shadow: 0 0 0 5px #f5cf7366, 0 0 24px #edbc4d80; }
.cart-feedback { position: absolute; top: calc(100% + 9px); right: 0; padding: 6px 10px; border-radius: 6px; background: #f5cf73; color: #35290f; font-size: .78rem; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px #302d2426; }
.cart-feedback:empty { opacity: 0; }
.hero { display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: clamp(36px, 8vw, 112px); padding-block: clamp(36px, 5vw, 57px); }
.eyebrow { color: var(--olive); text-transform: uppercase; font-size: .73rem; letter-spacing: .12em; font-weight: 750; }
.heart { color: var(--red); }
.hero-kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hero-kicker span { color: var(--red); }
.hero h1 { margin-top: 24px; font-size: clamp(4rem, 9vw, 8.3rem); line-height: .84; letter-spacing: -.075em; }
.hero h1 em { color: var(--red); font-size: .67em; font-weight: 400; letter-spacing: -.055em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(20px, 4vw, 38px); }
.hero-actions > a:not(.button) { color: var(--olive); font-size: .9rem; font-weight: 650; text-underline-offset: 5px; }
.hero-actions .button { padding-inline: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; min-height: 44px; font-size: .9rem; font-weight: 680; text-decoration: none; }
.primary { background: var(--olive); color: var(--paper); }
.primary:hover:enabled, a.primary:hover { background: #3d4323; }
.secondary { background: var(--paper); color: var(--olive); border-color: var(--line); }
.secondary:hover { background: var(--sage); border-color: var(--olive); }
.hero-photo { position: relative; padding: 9px; margin-inline: auto; width: min(100%, 480px); background: var(--beige); border: 1px solid #cbbd9d; border-radius: 44% 44% 12px 12px / 35% 35% 12px 12px; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: .98; object-fit: cover; object-position: center 69%; border-radius: inherit; background: var(--beige); }
.hero-photo figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 11px; padding: 8px 4px 2px; color: var(--olive); }
.hero-photo figcaption span { font: italic 1.28rem var(--display); }
.hero-photo figcaption small { font-size: .75rem; letter-spacing: .045em; }
.catalog { padding-block: 38px 76px; border-top: 1px solid #b2aa8a; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-top h2, .about h2 { margin-top: 8px; }
.section-top > p { max-width: 35ch; color: var(--muted); }
.category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.category-card { display: grid; grid-template-columns: minmax(0, 1fr) clamp(65px, 8vw, 104px) auto; align-items: center; gap: 12px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--olive); text-align: left; transition: background .16s ease, border-color .16s ease; }
.category-card:hover, .category-card[aria-expanded='true'] { background: var(--sage); border-color: var(--olive); }
.category-copy { display: grid; gap: 3px; padding-left: 4px; }
.category-count { color: var(--muted); font-size: .72rem; font-weight: 650; }
.category-name { font: 500 clamp(1.15rem, 2.1vw, 1.7rem)/1.08 var(--display); overflow-wrap: anywhere; }
.category-photo { display: block; height: 76px; overflow: hidden; border-radius: 8px; background: var(--beige); }
.category-photo > * { width: 100%; height: 100%; object-fit: cover; }
.category-photo .photo-placeholder i { width: 42px; height: 42px; font-size: 1.1rem; }
.category-arrow { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; }
.category-card[aria-expanded='true'] .category-arrow { color: var(--paper); background: var(--olive); border-color: var(--olive); transform: rotate(180deg); }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 13px; }
.catalog-actions p { font-size: .88rem; }
.catalog-all[aria-expanded='true'] { background: var(--sage); border-color: var(--olive); }
.catalog-results { scroll-margin-top: 108px; padding-top: 14px; margin-top: 18px; border-top: 1px solid var(--line); }
.catalog-back { padding: 4px 0; margin-bottom: 8px; border: 0; background: transparent; color: var(--olive); font-size: .85rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.catalog-back span { display: inline-block; margin-right: 3px; }
.product-group + .product-group { margin-top: 30px; }
.product-group-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.product-group-heading h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.45rem, 4vw, 2rem); }
.product-group-heading h3 span { padding: 3px 9px; background: var(--beige); border-radius: 999px; font: 650 .8rem/1.4 system-ui, sans-serif; }
.collection-link { padding: 6px 0; border: 0; background: none; color: var(--olive); font-size: .9rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.product-media { position: relative; background: var(--beige); }
.product-media > :is(img, svg, .photo-placeholder), .about-media > * { width: 100%; aspect-ratio: 1.28; object-fit: cover; }
.product-media > .product-artwork { object-fit: contain; padding: 6px; }
.photo-placeholder { display: grid; place-items: center; background: radial-gradient(ellipse at center, var(--paper), var(--beige)); color: var(--olive); }
.photo-placeholder i { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; font: italic 1.42rem var(--display); }
.product-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 14px; gap: 8px; }
.tag { display: inline-block; background: var(--sage); border-radius: 999px; padding: 3px 9px; color: var(--olive); font-size: .72rem; font-weight: 650; }
.tag-pancakes { background: #f2e0c4; }
.tag-syrniki { background: #f4e4de; }
.product h4 { font-size: 1.3rem; line-height: 1.15; }
.product-price { color: var(--olive); font-weight: 750; }
.detail-link { font: inherit; color: inherit; text-align: left; padding: 0; border: 0; background: none; }
.detail-link::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.detail-link:focus-visible::after { outline: 2px solid var(--red); outline-offset: -3px; }
.detail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-copy .muted { font-size: .81rem; }
.gallery-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; color: var(--olive); background: var(--paper); font-size: .8rem; font-weight: 700; }
.product-copy .button { position: relative; width: 100%; margin-top: auto; }
.muted { color: var(--muted); }
.about { background: var(--sage); border-block: 1px solid var(--line); padding-block: 55px; }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(25px, 7vw, 100px); align-items: center; }
.about-media { border: 7px solid var(--paper); border-radius: 12px; overflow: hidden; }
.about-media img { height: auto; aspect-ratio: 1.05; object-position: center 58%; }
.about p:not(.eyebrow) { margin-top: 14px; max-width: 48ch; }
.signature { color: var(--olive); font: italic 1.6rem var(--display); }
.meat { padding-block: clamp(42px, 6vw, 78px); }
.meat-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 22px 14px; }
.meat-photos img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: center 56%; border: 1px solid var(--line); border-radius: 12px; }
.meat-post { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.meat-post summary { cursor: pointer; color: var(--olive); }
.meat-post summary span { display: inline-grid; gap: 3px; vertical-align: middle; }
.meat-post summary small { color: var(--muted); }
.meat-post blockquote { margin: 14px 0 3px; border-left: 2px solid var(--line); padding-left: 14px; max-width: 74ch; }
.meat-post blockquote p + p { margin-top: 10px; }
.reviews { padding-block: clamp(42px, 6vw, 78px); background: var(--sage); border-block: 1px solid var(--line); }
.reviews .section-top { align-items: center; }
#write-review {
  min-height: 54px;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 0 #3d4323;
  font-size: 1.0625rem;
  font-weight: 700;
}
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.review-card { padding: clamp(16px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow-wrap: anywhere; }
.review-author { display: flex; align-items: center; gap: 11px; }
.review-avatar { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--olive); font-weight: 700; }
.review-card h3 { font: 700 1rem/1.3 system-ui, sans-serif; }
.review-meta { color: var(--muted); font-size: .875rem; }
.review-byline { color: var(--olive); font-size: .875rem; font-weight: 650; }
.review-body { margin-top: 14px; white-space: pre-line; }
.review-stars { display: block; margin-top: 12px; color: #8c581d; font-size: 1.1rem; letter-spacing: .12em; }
#more-reviews { margin-top: 18px; }
.review-dialog-inner { max-height: 89dvh; overflow-y: auto; padding: clamp(18px, 4vw, 30px); overscroll-behavior: contain; }
.review-dialog-inner h2 { padding-right: 38px; font-size: clamp(1.7rem, 5vw, 2.45rem); }
.review-rating { min-width: 0; padding: 0; margin: 0; border: 0; }
.review-rating legend { padding: 0; color: var(--olive); font-weight: 650; }
.review-rating > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.review-rating label { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; }
.review-rating input { min-width: 0; min-height: 0; margin: 0; }
.review-rating span { font-size: 1.35rem; }
.review-rating label:has(:checked), .review-rating label:has(~ label :checked) { background: #f2e6cd; color: #8c581d; }
.review-rating label:has(:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.delivery { padding-block: clamp(40px, 6vw, 72px); background: var(--beige); border-block: 1px solid var(--line); }
.delivery-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 6vw, 70px); }
.delivery h2 { margin-top: 7px; }
.delivery p:not(.eyebrow) { margin-top: 12px; color: var(--muted); max-width: 50ch; }
.delivery-facts { margin: 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.delivery-facts > div { padding-block: 9px; }
.delivery-facts > div + div { border-top: 1px solid var(--line); }
.delivery-facts dt { font-weight: 750; color: var(--olive); }
.delivery-facts dd { margin: 2px 0 0; }
.delivery-facts dd a { display: inline-block; margin-right: 12px; color: var(--olive); text-underline-offset: 3px; }
.footer-inner { display: flex; align-items: center; gap: 15px 25px; flex-wrap: wrap; min-height: 74px; padding-block: 12px; color: var(--olive); }
.footer-inner > span { font: italic 1.2rem var(--display); }
.footer-inner > a { font-size: .85rem; text-decoration: none; }
.footer-inner > a:first-of-type { margin-left: auto; }
dialog { width: min(96%, 520px); max-height: 90vh; max-height: 90dvh; padding: 0; overflow: visible; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 60px #2b241b32; }
#product-detail, .cart-inner { max-height: 89vh; max-height: 89dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; }
dialog::backdrop { background: #2b241b70; }
body:has(dialog[open]) { overflow: hidden; }
.close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--olive); font-size: 1.5rem; line-height: 1; }
.close:hover { background: var(--sage); }
.detail-media { min-width: 0; background: var(--milk); border-bottom: 1px solid var(--line); }
.detail-gallery-stage { height: clamp(190px, 45vh, 350px); background: var(--beige); touch-action: pan-y pinch-zoom; }
.detail-gallery-main { width: 100%; height: 100%; object-fit: contain; }
.detail-photo-caption { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 12px; padding: 8px 14px; color: var(--muted); font-size: .875rem; }
.detail-photo-caption > span { margin-right: auto; }
.detail-photo-caption > a { color: var(--olive); text-underline-offset: 3px; }
.detail-gallery-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 14px; }
.detail-gallery-nav button { min-height: 44px; padding-inline: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--olive); font-size: .9rem; font-weight: 650; }
.detail-gallery-nav button:hover { background: var(--sage); }
.detail-photo-counter { color: var(--muted); font-size: .875rem; text-align: center; }
.detail-thumbnails { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.detail-thumbnail { flex: 0 0 60px; width: 60px; height: 60px; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--beige); }
.detail-thumbnail[aria-pressed='true'] { border-color: var(--olive); }
.detail-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.detail-inner, .cart-inner { padding: 24px; }
.detail-inner { padding-right: 58px; }
.detail-inner h2, .cart-inner h2 { margin-block: 8px 12px; font-size: clamp(1.8rem, 6vw, 2.7rem); }
.details { display: grid; gap: 12px; padding-block: 14px; margin: 12px 0; border-block: 1px dashed var(--line); }
.details dt { font-size: .85rem; font-weight: 750; color: var(--olive); }
.details dd { margin: 3px 0 0; white-space: pre-line; }
.label-view { display: block; width: fit-content; margin-bottom: 16px; color: var(--olive); }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 10px; }
.cart-row small { display: block; color: var(--muted); }
.cart-total { margin-top: 10px; font-weight: 750; color: var(--olive); }
.quantity { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.quantity button { border: 1px solid var(--line); border-radius: 6px; background: var(--milk); color: var(--olive); width: 36px; height: 40px; }
form { display: grid; gap: 12px; margin-top: 15px; }
form label { display: block; min-width: 0; color: var(--olive); font-weight: 650; }
form small { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; margin-top: 4px; background: var(--milk); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 16px; font-weight: 450; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-schedule { min-width: 0; padding: 0; margin: 0; border: 0; }
.order-schedule legend { padding: 0; color: var(--olive); font-weight: 650; }
textarea { resize: vertical; }
.draft-order { margin-top: 12px; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.draft-order pre { padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--milk); font: .9rem/1.55 system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { padding: 10px 14px; margin-top: 14px; border-radius: 7px; background: var(--sage); color: var(--olive); }
.notice[data-error='true'] { background: #f6e3dc; color: #882e26; }
@media (min-width: 760px) {
  #product-dialog:has(.detail-media) { width: min(calc(100% - 48px), 920px); }
  #product-detail:has(.detail-media) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .detail-media { border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 759px) {
  #product-detail:has(.detail-media) .detail-inner { padding-right: 24px; }
  .detail-gallery-stage { height: clamp(175px, 58vw, 285px); }
}
@media (max-width: 940px) {
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-block: 10px; }
  .header-inner nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-column: 1 / -1; grid-row: 2; gap: 5px; border-top: 1px solid var(--line); padding-top: 7px; font-size: clamp(.68rem, 3.1vw, .88rem); text-align: center; }
  .cart-area { grid-column: 2; grid-row: 1; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand-mark { width: 39px; height: 39px; font-size: 1.07rem; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(3.7rem, 13vw, 5.2rem); }
  .hero-photo { width: min(100%, 415px); }
  .hero-photo img { aspect-ratio: .99; }
  .section-top { display: grid; align-items: start; gap: 9px; }
  .category-list { gap: 9px; margin-top: 18px; }
  .category-card { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 8px; align-items: center; }
  .category-photo { grid-column: 1 / -1; grid-row: 1; height: auto; aspect-ratio: 1.9; }
  .category-copy { padding-left: 0; }
  .category-arrow { width: 22px; height: 22px; font-size: .76rem; }
  .category-name { font-size: clamp(1.02rem, 4vw, 1.3rem); }
  .products { gap: 10px; }
  .product-copy { padding: 10px; }
  .product h4 { font-size: 1.1rem; }
  .about-inner, .delivery-inner { grid-template-columns: 1fr; }
  #write-review { width: 100%; margin-top: 6px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-media { max-width: 380px; }
  .detail-inner, .cart-inner { padding: 17px; }
  .quantity { gap: 4px; font-size: .85rem; }
  .meat-photos { gap: 8px; }
  .meat-photos img { aspect-ratio: 1; }
  .footer-inner > a:first-of-type { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-toggle, .category-card { transition: none; }
}
