@font-face { font-family: Doran; src: url("assets/fonts/Doran-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Doran; src: url("assets/fonts/Doran-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Doran; src: url("assets/fonts/Doran-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #F0EFEB;
  --paper: #f6f0e8;
  --ink: #39312e;
  --soft: #62584f;
  --rule: #d6cec5;
  --gap: clamp(.75rem, 1.7vw, 1.65rem);
  --radius: clamp(1.45rem, 2vw, 2.15rem);
  background: var(--canvas);
  color: var(--ink);
  font: 400 100%/1.5 Doran, Tahoma, sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: #ab783342; }
button, dialog { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; padding: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #885719; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.collection { width: min(100% - clamp(1.5rem, 6vw, 6rem), 82rem); margin: clamp(1.25rem, 3.8vw, 3.8rem) auto; }
.collection section + section { margin-top: clamp(1.8rem, 3vw, 3.2rem); }
.category-title { display: flex; align-items: center; gap: 1rem; margin: 0 .2rem .8rem; font-size: clamp(1.65rem, 2.5vw, 2.6rem); line-height: 1.3; }
.category-title::after { content: ""; height: 1px; flex: 1; background: #776b5e55; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); list-style: none; padding: 0; }
.products li { min-width: 0; }
.card {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 3px rgb(57 49 46 / 6%), 0 4px 12px -4px rgb(57 49 46 / 9%);
}
.open-product { position: relative; display: flex; flex-direction: column; isolation: isolate; border-radius: inherit; overflow: hidden; min-height: 100%; }
.card h3 { font-size: clamp(1.3rem, 1.7vw, 1.75rem); line-height: 1.3; }
.price { display: flex; align-items: baseline; gap: .28em; white-space: nowrap; font-size: 1.18rem; line-height: 1.25; }
.price data { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.price span { font-size: .76em; }
.product-image { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.product-copy { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: clamp(.85rem,1.4vw,1.4rem); }
.product-copy .price { margin-top: auto; padding-top: .65rem; border-top: 1px solid var(--rule); }
.category-empty { font-size: 1rem; padding: .6rem .2rem; }
dialog { width: min(27rem,calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 0; background: var(--paper); border: 0; border-radius: 1.8rem; }
dialog::backdrop { background: #2e2520a3; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.detail-body { position: relative; }
#detail-image { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; }
.close { position: absolute; top: 13px; left: 13px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); }
.detail-copy { padding: 1.25rem 1.5rem 1.5rem; }
.detail-copy h2 { font-size: 1.9rem; }
.detail-copy h3 { font-size: 1.1rem; margin-top: .7rem; }
#detail-ingredients { font-size: 1.06rem; color: var(--soft); }
#detail-price { border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: 1rem; font-size: 1.3rem; }
@media (hover:hover) { .open-product:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; } }
@media (max-width: 59rem) {
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 35rem) {
  .collection { width: calc(100% - 1.25rem); margin: 1rem auto 1.5rem; }
  .category-title { margin-bottom: .55rem; }
  .card h3 { font-size: 1.2rem; }
  .product-copy { padding: .72rem; }
  .product-image { aspect-ratio: 1.25; }
}
@media (max-width: 21rem) {
  .products { gap: .5rem; }
}
