.taste-section {
  --taste-paper: #f5f3ec;
  --taste-text: #242722;
  --taste-muted: #51564e;
  --taste-line: #d6d7cd;
  background: var(--taste-paper);
  color: var(--taste-text);
  padding-block: clamp(56px, 7vw, 112px);
}
.taste-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(36px, 7.5vw, 124px);
}
.taste-copy { min-width: 0; }
.taste-heading {
  margin: 0;
  font: 650 clamp(2.45rem, 4.4vw, 4.5rem)/1.05 var(--display, Unbounded, sans-serif);
  letter-spacing: -.062em;
}
.taste-lead {
  max-width: 29em;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.38vw, 1.25rem);
  line-height: 1.52;
  color: var(--taste-muted);
}
.taste-demo { max-width: 560px; margin-top: clamp(28px, 3.3vw, 50px); }
.taste-question { margin: 0 0 14px; font-size: 1.1rem; font-weight: 650; }
.taste-foods {
  --taste-column-gap: 5px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(4.25rem, calc((100% - 3 * var(--taste-column-gap)) / 4))), 1fr));
  gap: 12px var(--taste-column-gap);
}
.taste-food {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 2px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: 550 clamp(.82rem, 1.04vw, .98rem)/1.28 var(--body, Inter, sans-serif);
}
.taste-art {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, clamp(64px, 7.35vw, 108px));
  aspect-ratio: 1;
  pointer-events: none;
}
.taste-art img {
  display: block;
  position: absolute;
  width: 800%;
  height: 400%;
  max-width: none;
  top: calc(-100% * var(--taste-y));
  left: calc(-100% * var(--taste-x));
}
.taste-onion { --taste-x: 0; --taste-y: 0; }
.taste-mushroom { --taste-x: 4; --taste-y: 0; }
.taste-broccoli { --taste-x: 1; --taste-y: 1; }
.taste-fish { --taste-x: 3; --taste-y: 2; }
.taste-soft-carrot { --taste-x: 2; --taste-y: 0; }
.taste-fresh-carrot { --taste-x: 3; --taste-y: 0; }
.taste-curd { --taste-x: 6; --taste-y: 2; }
.taste-avocado { --taste-x: 6; --taste-y: 1; }
.taste-food[aria-pressed="true"] { background: #e7eadf; border-color: #8b9784; }
.taste-food[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(white,white) center / 9px 2px no-repeat #344e39;
}
.taste-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 48px; margin-top: 14px; }
.taste-feedback { margin: 0; flex: 1 1 min(19ch, 100%); min-width: 0; font-size: .94rem; line-height: 1.45; }
.taste-reset {
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 2px;
  min-height: 44px;
  color: #344e39;
  text-underline-offset: .2em;
  text-decoration: underline;
  font-size: .875rem;
  font-weight: 600;
}
.taste-note, .taste-caption { color: var(--taste-muted); font-size: .8rem; line-height: 1.5; }
.taste-note { margin: 8px 0 0; max-width: 44ch; }
.taste-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
  justify-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
.taste-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--taste-line);
  background: #eeeee6;
}
.taste-tab {
  padding: 8px clamp(14px, 1.45vw, 24px);
  min-height: 44px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--taste-muted);
  font-size: .9rem;
  font-weight: 550;
}
.taste-tab[aria-selected="true"] { background: #fffef9; box-shadow: 0 1px 5px #2427221c; color: var(--taste-text); }
.taste-panel { width: min(100%, clamp(252px, 22vw, 314px)); }
.taste-enlarge {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid #29251e20;
  border-radius: 25px;
  background: #f9f6ee;
  box-shadow: 0 16px 40px -22px #3d372e66;
  color: var(--taste-text);
}
.taste-enlarge > img { width: 100%; height: auto; display: block; }
.taste-zoom {
  display: flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  bottom: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid #d9d8cf;
  border-radius: 28px;
  background: #fffef9;
  box-shadow: 0 2px 7px #25231616;
  font-size: .76rem;
  font-weight: 600;
}
.taste-zoom svg, .taste-close svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.taste-caption { text-align: center; }
.taste-dialog {
  padding: 0 12px 12px;
  width: min(510px, calc(100% - 16px));
  max-width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--taste-line);
  border-radius: 20px;
  background: var(--taste-paper);
  color: var(--taste-text);
}
.taste-dialog::backdrop { background: rgb(25 29 25 / .79); }
html:has(.taste-dialog[open]) { overflow: hidden; }
.taste-dialog-head {
  display: flex;
  position: sticky;
  z-index: 1;
  top: 0;
  justify-content: space-between;
  align-items: center;
  padding-block: 8px;
  gap: 8px;
  background: var(--taste-paper);
}
.taste-dialog-head h3 { margin: 0; font: 600 1rem/1.3 var(--body, Inter, sans-serif); }
.taste-close { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--taste-line); border-radius: 50%; background: #fffef9; color: inherit; }
.taste-detail { display: block; width: 100%; height: auto; border-radius: 12px; }
.taste-section :is(a, button):focus-visible { outline: 3px solid #805314; outline-offset: 3px; z-index: 1; }
@media (hover: hover) {
  .taste-food:hover { border-color: #b0b6a9; }
  .taste-enlarge:hover .taste-zoom { border-color: #8b9784; }
}
@media (prefers-reduced-motion: no-preference) {
  .taste-food, .taste-tab { transition: background-color 160ms ease, border-color 160ms ease; }
  .taste-art { transition: transform 180ms ease-out; }
  .taste-food[aria-pressed="true"] .taste-art { transform: scale(.94); }
  @media (hover: hover) {
    .taste-food:not([aria-pressed="true"]):hover .taste-art { transform: translateY(-3px); }
  }
}
@media (max-width: 760px) {
  .taste-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .taste-heading { font-size: clamp(2.2rem, 8.8vw, 3.35rem); }
  .taste-lead { margin-top: 17px; }
  .taste-art { width: min(100%, clamp(58px, 17vw, 92px)); }
  .taste-foods { --taste-column-gap: 3px; row-gap: 10px; }
  .taste-panel { width: min(80%, 305px); }
  .taste-viewer { padding-top: 24px; border-top: 1px solid var(--taste-line); }
}
@container (max-width: 13rem) {
  .taste-tabs { display: grid; border-radius: 22px; }
  .taste-zoom { position: static; max-width: 100%; justify-content: center; border: 0; border-top: 1px solid var(--taste-line); border-radius: 0; }
}
@media (max-width: 380px) {
  .taste-summary { flex-wrap: wrap; gap: 0 12px; }
  .taste-food { font-size: .75rem; }
  .taste-reset { font-size: .8rem; }
}
@media (forced-colors: active) {
  .taste-food[aria-pressed="true"], .taste-tab[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
