:root {
  color-scheme: light;
  --paper: #fdfaf5;
  --porcelain: #f4ede4;
  --ink: #30261f;
  --muted: #62574e;
  --wine: #742f47;
  --wine-hover: #542034;
  --wine-tint: #f7edf0;
  --border: #e7ddd5;
  --serif: Georgia, "Batang", serif;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body.has-selection { padding-bottom: 150px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
h1, h2, h3 { letter-spacing: -.035em; word-break: keep-all; }
h2 { font-size: clamp(25px, 3vw, 42px); line-height: 1.24; font-weight: 650; }
.masthead, main { width: min(1360px, calc(100% - 2 * clamp(15px, 5vw, 72px))); margin-inline: auto; }
.masthead { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); }
.wordmark { color: var(--wine); font: 700 clamp(16px, 2vw, 23px)/1.1 var(--serif); letter-spacing: .035em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); font-size: 14px; }
nav a:hover, .product-source:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 5px; }
.quiet { padding: 7px 13px; border: 1px solid var(--border); background: var(--paper); border-radius: 3px; white-space: nowrap; }
.masthead .quiet { justify-self: end; color: var(--wine); }
#header-count { margin-left: 4px; font-weight: 700; }
.signature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(430px, 44vw, 620px);
  margin-block: 22px clamp(32px, 4.5vw, 64px);
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(125deg, #35241c, #231714 68%);
  color: #fbf3e7;
}
.signature-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  max-width: 620px;
  padding: clamp(32px, 5.2vw, 82px) clamp(24px, 4.2vw, 66px);
}
.signature h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.35vw, 64px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.055em;
}
.signature h1 span { display: block; }
.signature-figure { grid-area: 1 / 1; position: relative; min-width: 0; min-height: 0; background: #2c1f19; }
.signature-photo { position: absolute; inset: 0; display: block; overflow: hidden; }
.signature-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #21140fea 0%, #21140fc9 30%, #21140f59 55%, transparent 80%);
  content: "";
  pointer-events: none;
}
.signature-photo picture { display: block; width: 100%; height: 100%; }
.signature-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 51%; }
.signature-figure figcaption { position: absolute; right: 14px; bottom: 12px; margin: 0; padding: 3px 7px; border-radius: 3px; background: #231714b8; font-size: 12px; color: #fff3e4; }
.signature :focus-visible { outline-color: #f0d4ac; outline-offset: 3px; }
.gallery-link, .primary { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--wine); border-radius: 3px; background: var(--wine); color: #fffaf2; font-size: 14px; font-weight: 650; white-space: nowrap; }
.gallery-link { margin-top: 22px; }
.signature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; margin-top: 25px; }
.signature-actions .gallery-link { min-height: 44px; margin: 0; border-color: #f5e8d3; border-radius: 999px; background: #f5e8d3; color: #332119; }
.signature-actions .gallery-link:hover { background: #f6e8d4; }
.signature-secondary { display: inline-flex; align-items: center; min-height: 44px; color: #f6e5ce; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.signature-secondary:hover { color: #fffaf2; }
.gallery-link:hover, .primary:hover { background: var(--wine-hover); }

.brand-collection { margin: clamp(52px, 7vw, 96px) 0; padding: clamp(22px, 3.5vw, 48px); border-radius: 12px; background: #f5eee5; }
.brand-collection:focus { outline: none; }
.brand-collection h2 { padding-bottom: 20px; border-bottom: 1px solid #dfd2c5; }
.brand-directory { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); margin-top: 24px; }
.brand-entry { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; }
.brand-entry-photo { min-width: 0; align-self: start; width: 100%; }
.brand-entry-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; background: var(--porcelain); border-radius: 7px; }
.brand-entry-letao img { object-position: 50% 55%; }
.brand-entry-matcha img { object-position: center 55%; }
.brand-entry-basilur img { object-position: center; }
.brand-entry-photo figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.brand-entry-photo figcaption a { text-underline-offset: 3px; }
.brand-entry-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 15px 0 18px; border-bottom: 1px solid #dfd2c5; }
.brand-entry h3 { font-size: clamp(19px, 1.9vw, 25px); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.brand-entry h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.brand-entry p { color: var(--muted); font-size: 14px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.brand-entry .brand-entry-origin { color: #795c4b; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.brand-entry .brand-entry-description { margin-top: 4px; }
.brand-entry-actions { margin-top: auto; padding-top: 8px; }
.brand-entry-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--wine); font-size: 14px; font-weight: 650; }
.brand-entry h3 a:hover, .brand-entry-action:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 5px; }
.brand-entry-secondary { grid-column: span 3; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 2vw, 28px); padding-top: 20px; border-top: 1px solid #dfd2c5; }
.brand-entry-secondary .brand-entry-photo img { aspect-ratio: 1.25; }
.brand-entry-secondary .brand-entry-copy { padding: 0 0 12px; border-bottom: 0; }
#brands, #menu, #matcha, #stores, #gift, #matcha-products { scroll-margin-top: 24px; }
#menu { padding: clamp(16px, 3.8vw, 50px); border-block: 1px solid #e5dac9; border-radius: 12px; background: #f7f0e4; }
#menu:focus, #matcha-products:focus { outline: none; }
#menu:focus-visible { border-top-color: var(--wine); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 5px; }
.filters button { min-height: 42px; border: 1px solid transparent; border-radius: 999px; background: transparent; padding: 8px 14px; font-size: 14px; color: var(--muted); }
.filters button:hover { background: var(--porcelain); }
.filters button[aria-pressed="true"] { border-color: #ead7de; color: var(--wine); background: var(--wine-tint); font-weight: 700; }
.note { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.2vw, 46px) clamp(16px, 2.35vw, 34px); margin-top: 24px; }
.product { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid #ded1be; padding-bottom: 12px; }
.product-photo { aspect-ratio: 1.22; overflow: hidden; border-radius: 9px; background: #fcf8ef; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product[data-category="cheesecake"] .product-photo img,
.product[data-category="matcha"] .product-photo img { object-fit: cover; }
.product[data-category="cheesecake"] .product-photo img { object-position: 52% 60%; }
.product-heading { padding-top: 13px; }
.product-brand { margin-bottom: 3px; color: #675549; font-size: 13px; font-weight: 650; }
.product[data-category="matcha"] .product-brand { color: #4e603d; }
.product-copy { display: flex; flex: 1; flex-direction: column; gap: 7px; padding-top: 6px; }
a.product-cover:hover h3, a.product-cover:focus-visible h3 { color: var(--wine-hover); text-decoration: underline; text-underline-offset: 4px; }
.product h3 { color: #392a22; font-size: clamp(16px, 1.5vw, 21px); }
.product-price { white-space: nowrap; color: var(--wine-hover); font-size: 16px; }
.product-description, .product-source { font-size: 14px; }
.product-description { color: var(--muted); }
.product-source { text-decoration: underline; text-underline-offset: 3px; }
.product-links { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.stepper { display: inline-flex; align-items: center; gap: 7px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; margin-top: auto; padding-top: 8px; }
.stepper button { width: 42px; min-height: 42px; border: 1px solid var(--border); background: transparent; border-radius: 2px; font-size: 17px; }
.product .stepper button { width: 44px; min-height: 44px; border-color: #d9cbb7; border-radius: 50%; }
.product .stepper button[data-step="1"]:enabled { border-color: #745449; background: #745449; color: #fff8ed; }
.product .stepper button[data-step="1"]:hover:enabled { background: #563d31; }
.stepper button:hover:not(:disabled) { border-color: var(--wine); }
.stepper output { min-width: 1.2em; text-align: center; }
/* Store visit guide */
.store-collection { margin-top: clamp(45px, 8vw, 94px); }
.store-visit-nav { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.store-visit-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); font-size: 14px; font-weight: 650; }
.store-visit-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: 22px; }
.store-story { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #f7f1e9; border: 1px solid var(--border); border-radius: 8px; scroll-margin-top: 24px; }
.store-story figure { min-width: 0; }
.store-story img { display: block; width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; background: #eae0d5; }
.store-grid figcaption { margin: 0; padding: 7px 16px 0; line-height: 1.4; }
.store-grid figcaption a:hover { color: var(--wine); }
.store-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: clamp(18px, 2vw, 28px); }
.store-story p.store-place { max-width: none; color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.store-grid h3 { margin-top: 6px; color: var(--wine-hover); font-size: clamp(21px, 2vw, 28px); font-weight: 550; line-height: 1.3; }
.store-description { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; word-break: keep-all; }
.store-facts { margin: 20px 0 0; padding: 0; border-top: 1px solid #ded2c8; font-size: 13px; }
.store-facts > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #e7ddd5; }
.store-facts dt { color: var(--muted); }
.store-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.store-actions a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 14px; font-size: 14px; font-weight: 650; }
.store-actions .gallery-link { margin-top: 0; }
.store-actions .quiet { color: var(--wine); border-color: #d5bfc5; background: transparent; }
.store-actions .quiet:hover { background: var(--wine-tint); }
.store-visit-note { margin-top: 12px; }
.matcha-story { min-width: 0; background: var(--porcelain); border-radius: 15px; overflow: hidden; }
.matcha-story > div { padding: clamp(16px, 3vw, 30px); }
.matcha-story img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: center 70%; }
.matcha-shop-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.matcha-shop-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; }
figcaption a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1049px) { .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gift { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 52px); margin: 44px 0; padding: clamp(18px, 4vw, 44px); background: var(--wine-tint); border-radius: 15px; border-top: 1px solid var(--border); }
.gift p { margin-top: 8px; }
.gift .primary { margin-top: 18px; }
.tray { display: none; position: fixed; z-index: 5; inset: auto 0 0; align-items: center; justify-content: space-between; gap: 10px; padding: 10px max(14px, calc((100% - 1200px)/2)) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #5a4033; background: #302019; color: #fff8ed; }
.tray .note, .tray-total > span { color: #e5d4c2; }
.tray .primary { border-color: #eddbc4; background: #eddbc4; color: #302019; }
.tray .primary:hover { background: #fff3e3; }
.tray :focus-visible { outline-color: #fff3df; }
.has-selection .tray { display: flex; }
.tray-action { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tray-total { display: flex; align-items: baseline; gap: 5px; }
.tray-total > span { font-size: 12px; }
@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lead-photo img { transition: transform 220ms ease-out; transform: translate(calc(var(--photo-x, 0px) * .2), calc(var(--photo-y, 0px) * .2)) rotate(calc(var(--photo-angle, 0deg) * .2)); }
  .signature-photo img { transform: translate(calc(var(--photo-x, 0px) * .2), calc(var(--photo-y, 0px) * .2)) rotate(calc(var(--photo-angle, 0deg) * .2)) scale(1.035); }
}
@media (max-width: 800px) {
  .signature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .signature-copy { grid-area: auto; padding: 24px clamp(18px, 5vw, 38px) 28px; }
  .signature-figure { grid-area: auto; min-height: clamp(230px, 70vw, 480px); }
  .signature-photo img { object-position: 75% 51%; }
  .signature-photo::after { background: linear-gradient(180deg, #291b1680, transparent 25%, #291b1640); }
  .signature h1 { margin-bottom: 10px; font-size: clamp(32px, 6.5vw, 48px); }
  .signature h1 span { display: inline; }
  .signature-actions { margin-top: 15px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .masthead { grid-template-columns: minmax(0,1fr) auto; padding-top: 12px; gap: 10px; }
  nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: 10px; flex-wrap: wrap; font-size: 13px; }
  #storefront-nav { column-gap: clamp(10px, 3.4vw, 18px); row-gap: 0; padding-bottom: 3px; }
  #storefront-nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  .signature { margin-top: 13px; }
  .signature-copy { padding-block: 20px 24px; }
  .signature-actions { gap: 8px 14px; }
  .brand-collection { margin-block: 50px; padding: 20px 15px; }
  .brand-directory { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; }
  .brand-entry, .brand-entry-secondary { grid-column: 1; }
  .brand-entry-copy { padding-top: 10px; }
  .brand-entry h3 { font-size: 20px; }
  .brand-entry p { font-size: 13px; }
  .brand-entry-matcha, .brand-entry-basilur {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  .brand-entry-matcha .brand-entry-photo img, .brand-entry-basilur .brand-entry-photo img { aspect-ratio: .9; }
  .brand-entry-matcha .brand-entry-copy, .brand-entry-basilur .brand-entry-copy { padding-top: 0; }
  .brand-entry-matcha h3, .brand-entry-basilur h3 { font-size: 18px; }
  .brand-entry-secondary { grid-template-columns: minmax(90px, 36%) minmax(0, 1fr); gap: 14px; padding-top: 16px; }
  .brand-entry-secondary .brand-entry-copy { padding-top: 0; }
  .brand-entry-secondary h3 { font-size: 17px; }
  .grid { gap: 22px 12px; }
  .product h3 { font-size: 16px; }
  .product-brand, .product-description, .product-source { font-size: 13px; }
  .store-grid { grid-template-columns: 1fr; }
  .gift { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 375px) {
  .filters button { padding-inline: 10px; }
  .product-actions { column-gap: 5px; }
  .product-actions .stepper { gap: 4px; }
  #menu { padding-inline: 12px; }
}

/* Editorial pairings */
.tea-time { scroll-margin-top: 24px; margin: 0 0 clamp(48px, 7vw, 88px); }
.tea-time:focus { outline: none; }
.tea-time-intro { margin-bottom: clamp(22px, 3vw, 36px); }
.tea-time-intro h2 { color: var(--ink); font-weight: 500; }
.tea-time-intro p { max-width: 55ch; margin-top: 8px; color: var(--muted); word-break: keep-all; }
.tea-time-pairings { display: grid; gap: clamp(16px, 2.8vw, 36px); }
.tea-time-pairing { display: grid; align-items: center; gap: clamp(24px, 4vw, 64px); min-width: 0; padding: clamp(20px, 3.5vw, 48px); border-radius: 20px; background: #eef0e7; color: #293b2d; }
.tea-time-pairing-tea { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); background: #f2e8db; color: #382921; }
.tea-time-visual { min-width: 0; margin: 0; }
.tea-time-visual-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); align-items: start; container-type: inline-size; }
.tea-time-photo { min-width: 0; margin: 0; }
.tea-time-photo img { display: block; width: 100%; height: clamp(112px, 43cqw, 270px); border-radius: 12px; object-fit: cover; }
.tea-time-pairing-tea .tea-time-photo-table img { height: auto; aspect-ratio: 1.55; border-radius: 12px clamp(32px, 8vw, 100px) 12px 12px; object-position: center; }
.tea-time-photo figcaption { margin-top: 7px; color: #556654; font-size: 11px; line-height: 1.4; word-break: keep-all; }
.tea-time-pairing-tea .tea-time-photo figcaption { color: #69564a; }
.tea-time-photo figcaption a { color: inherit; }
.tea-time-pairing-matcha { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
.tea-time-pairing-matcha .tea-time-visual { grid-column: 2; grid-row: 1; }
.tea-time-pairing-matcha .tea-time-copy { grid-column: 1; grid-row: 1; }
.tea-time-copy { min-width: 0; }
.tea-time-pairing h3 { color: #354b39; font-size: clamp(25px, 2.7vw, 38px); font-weight: 500; line-height: 1.25; word-break: keep-all; }
.tea-time-pairing-tea h3 { color: #382921; font-size: clamp(29px, 3.6vw, 50px); }
.tea-time-description { margin-top: 12px; color: #4e5b4c; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.tea-time-pairing-tea .tea-time-description { color: #5f4d41; }
.tea-time-products { margin-top: 12px; border-top: 1px solid #bdc8b7; }
.tea-time-product { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; min-width: 0; padding: 10px 0; border-bottom: 1px solid #bdc8b7; }
.tea-time-product h4 { margin: 0; font-size: 14px; line-height: 1.4; word-break: keep-all; }
.tea-time-product > a { color: #354b39; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: keep-all; }
.tea-time-pairing-tea .tea-time-products, .tea-time-pairing-tea .tea-time-product { border-color: #d3c0af; }
.tea-time-pairing-tea .tea-time-product a { color: #674637; }
.tea-time-product a:hover { text-decoration-thickness: 2px; }
.tea-time-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding-top: 18px; }
.tea-time-actions button { min-height: 44px; }
.tea-time-pairing-tea .tea-time-actions .primary { border-color: #493124; background: #493124; color: #fffaf2; }
.tea-time-pairing-tea .tea-time-actions .primary:hover:enabled { background: #342118; }
.tea-time-pairing-matcha .tea-time-actions .primary { border-color: #354b39; background: #354b39; }
.tea-time-pairing-matcha .tea-time-actions .primary:hover:enabled { background: #293b2d; }
.tea-time-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }
.tea-time-price strong { color: #354b39; font-size: 18px; white-space: nowrap; }
.tea-time-price small { color: #526150; font-size: 12px; }
.tea-time-pairing-tea .tea-time-price strong { color: #382921; }
.tea-time-pairing-tea .tea-time-price small, .tea-time-pairing-tea .tea-time-actions .note { color: #69564a; }
.tea-time-actions .note { flex-basis: 100%; word-break: keep-all; }
.tea-time-actions .note:not(:empty) { margin-top: 0; }
@media (max-width: 660px) {
  .tea-time-pairing, .tea-time-pairing-tea, .tea-time-pairing-matcha { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tea-time-pairing-matcha .tea-time-visual, .tea-time-pairing-matcha .tea-time-copy { grid-column: auto; grid-row: auto; }
  .tea-time-pairing-tea .tea-time-photo-table img { aspect-ratio: 1.25; }
}
@media (max-width: 375px) {
  .tea-time-pairing { padding: 16px; }
  .tea-time-price { flex-basis: 100%; }
}

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 8; padding: 8px 13px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.catalog-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 15px; }
.catalog-note { color: var(--muted); font-size: 14px; word-break: keep-all; }
.site-footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid var(--border); padding: 23px max(15px, calc((100% - min(1360px, 90%))/2)); background: var(--porcelain); color: var(--muted); font-size: 14px; }
.site-footer .wordmark { margin-right: auto; }
.site-footer a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Six-piece gift box */
.gift-box { width: min(100%, 480px); flex: 0 1 480px; }
.box-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid #d8c6b9;
  border-radius: 8px;
  background: #e9dace;
  box-shadow: inset 0 1px 5px #6b42301a, 0 7px 18px #53352710;
}
.box-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1.28;
  overflow: hidden;
  border: 1px solid #dbcbbf;
  border-radius: 3px;
  background: #f9f3eb;
  color: #9c8276;
  font: 12px/1 var(--serif);
}
.box-slot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fffdf9; }
#tray-items { grid-template-columns: repeat(3, 30px); gap: 3px; padding: 4px; border-color: #a78b78; border-radius: 5px; background: #d6c2ad; }
#tray-items .box-slot { aspect-ratio: 1; font-size: 10px; }

.detail-product-link { display: inline-block; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.detail-product-link:hover { color: var(--wine-hover); }
@media (max-width: 660px) {
  .gift-box { flex: auto; width: 100%; }
}

/* Catalog details */
.product h3 { line-height: 1.4; font-weight: 650; }
.product-description { line-height: 1.55; word-break: keep-all; }

/* Gift box review */
#review {
  width: min(820px, calc(100% - 28px));
  max-height: min(88dvh, 900px);
  padding: 0;
  overflow: auto;
  scroll-padding-top: 105px;
  border: 1px solid #d8c6b9;
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 65px #2f221a35;
}
#review::backdrop { background: #2f221ac4; }
#review .review-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
#review .review-heading { flex: 1 1 auto; min-width: 0; }
#review .review-head h2 { color: var(--wine-hover); font-size: clamp(20px, 2.5vw, 26px); line-height: 1.25; }
#review-progress { margin-top: 3px; }
#review .review-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6d9ce; font-size: 13px; }
#review-total { color: var(--wine); font-size: 17px; white-space: nowrap; }
#review .review-head form { flex: none; }
#review .review-head button { min-width: 44px; min-height: 44px; }
.review-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 18px 16px 24px; }
.review-display, .review-purchase { min-width: 0; }
.review-box {
  padding: 13px;
  border: 1px solid #6a403f;
  border-radius: 8px;
  background: linear-gradient(145deg, #65433c, #49312f);
  box-shadow: inset 0 1px 1px #ffffff40, 0 8px 20px #5335271c;
}
.review-box-mark { padding: 0 0 9px; color: #ead4bb; text-align: center; font: 700 11px/1.2 var(--serif); letter-spacing: .15em; }
#review-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 7px; border: 1px solid #aa8876; border-radius: 4px; background: #b89b88; box-shadow: inset 0 2px 5px #3b201f38; }
#review-slots .box-slot { aspect-ratio: 1.15; border-color: #dfcfc0; background: #f7eee3; box-shadow: inset 0 2px 5px #74513d1c; }
#review-slots .box-slot img { background: #fbf5ed; }
#review-slots [data-product-category="cheesecake"] img, #review-slots [data-product-category="matcha"] img { object-fit: cover; }
#review.is-complete .review-box { border-color: #502130; background: linear-gradient(145deg, #784252, #48242e); box-shadow: inset 0 1px 1px #ffffff54, 0 10px 24px #4c263127; }
#review.is-complete #review-slots { border-color: #c29d83; background: #b28b79; }
.review-disclaimer { margin-top: 12px; line-height: 1.6; word-break: keep-all; }
#review-slot-guide { margin-top: 9px; word-break: keep-all; }
#review-continue { width: 100%; min-height: 44px; margin-top: 14px; }
#review.is-complete #review-continue {
  width: auto;
  margin-top: 4px;
  padding-inline: 4px;
  border-color: transparent;
  color: var(--wine);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#review.is-complete #review-continue:hover { background: var(--wine-tint); }
#review-purchase-title { padding-bottom: 10px; border-bottom: 1px solid #d8c6b9; color: var(--wine-hover); font-size: 18px; }
#review-items > p { padding-top: 12px; }
.review-seller { padding-top: 15px; }
.review-seller-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.review-seller-head h4 { margin: 0; font-size: 15px; }
.review-seller-head span { color: var(--wine); font-size: 13px; font-weight: 650; white-space: nowrap; }
.review-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-row-copy { flex: 1 1 135px; min-width: 0; }
.review-row-copy h5 { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.review-row-copy .note { margin-top: 3px; }
.review-row-copy .product-source { display: inline-block; margin-top: 3px; color: var(--wine); font-size: 13px; }
#review .stepper { flex: none; }
@media (min-width: 661px) {
  .review-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px 22px 28px; }
  #review-slots .box-slot { aspect-ratio: 1; }
}
@media (max-width: 660px) {
  #review { max-height: 90dvh; }
  #review .review-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 12px 16px; }
  #review .review-head form { grid-column: 2; grid-row: 1 / 3; }
  #review-total { font-size: 15px; }
  .tray { flex-wrap: nowrap; gap: 8px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
  .tray-summary { min-width: 0; }
  .tray-summary > strong { display: none; }
  .tray #progress { white-space: normal; line-height: 1.3; }
  #tray-items { grid-template-columns: repeat(3, 20px); gap: 2px; padding: 3px; flex: none; }
  .tray-action { flex-direction: column; align-items: stretch; gap: 4px; }
  .tray-total { justify-content: space-between; }
  .tray-action { margin-left: auto; }
  .tray-action .primary { min-height: 44px; }
}
@media (max-width: 375px) {
  .tray { font-size: 14px; }
  .tray-action { gap: 6px; }
  .tray-action .primary { padding-inline: 11px; }
  .tray-total { gap: 3px; }
  .tray-total > span { font-size: 11px; }
}

.review-filled-slot { position: relative; display: block; width: 100%; height: 100%; min-width: 44px; min-height: 44px; padding: 0; overflow: hidden; border: 0; background: transparent; }
.review-filled-slot:hover { z-index: 1; outline: 2px solid var(--wine); outline-offset: -3px; }
.review-filled-slot:focus-visible { z-index: 1; outline-offset: -4px; }
.review-slot-link { display: grid; width: 100%; height: 100%; min-width: 44px; min-height: 44px; place-items: center; color: var(--wine); font: 24px/1 var(--serif); }
.review-slot-link:hover { background: var(--wine-tint); }
.review-slot-link:focus-visible { outline-offset: -4px; }

/* Home catalog: a shared table for the featured selection */
#menu { padding: clamp(24px, 3vw, 42px) 0 0; border: 0; border-top: 1px solid #d9cab9; border-radius: 0; background: transparent; }
#menu .catalog-intro { align-items: end; gap: 16px 32px; }
#menu .catalog-intro h2 { font-weight: 500; }
#menu .catalog-deck { max-width: 48ch; margin-top: 9px; color: var(--muted); line-height: 1.7; word-break: keep-all; }
#menu .catalog-note { max-width: 35ch; line-height: 1.6; }
#menu .filters { margin-top: 24px; }
.catalog-table {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(18px, 3vw, 42px);
  border-radius: 4px 42px 4px 4px;
  background: linear-gradient(135deg, #f6efe3, #e9ddcb);
}
.catalog-table .product { padding-bottom: 0; border: 0; }
.catalog-table .product-photo { aspect-ratio: 1.17; border-radius: 4px 32px 4px 4px; background: #fbf7ee; }
.catalog-table .product-photo img { object-fit: cover; }
.catalog-table .product-heading { padding-top: 16px; }
.catalog-table .product-copy { gap: 8px; }
.catalog-table .product-actions { padding-top: 14px; }
#gift.gift { margin-block: clamp(52px, 7vw, 96px); padding: clamp(26px, 4.5vw, 62px); border: 0; border-radius: 4px 44px 4px 4px; background: radial-gradient(ellipse at 100% 0%, #a98a70 0%, transparent 55%), linear-gradient(115deg, #392820, #5b4033 65%, #80634f); color: #fff9ef; }
#gift h2 { font-weight: 500; }
#gift p { color: #f1e4d5; line-height: 1.65; word-break: keep-all; }
#gift .gift-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
#gift .gift-actions .primary, #gift .gift-actions .quiet { min-height: 44px; margin: 0; }
#gift .gift-actions .primary { border-color: #f2dfc7; background: #f2dfc7; color: #38261e; }
#gift .gift-actions .primary:hover { background: #fff4e4; }
#gift .gift-actions .quiet { border-color: #e4cdb5; background: transparent; color: #fff9ef; }
#gift .gift-actions .quiet:hover { background: #ffffff1c; }
#gift :focus-visible { outline-color: #fff4df; }
#gift .box-slots { border-color: #cbb49f; background: #d4c0ad; }
#gift .box-slot { border-color: #dccabd; background: #f9f1e6; color: #816858; }
@media (max-width: 660px) {
  #menu { padding-inline: 0; }
  #menu .catalog-intro { align-items: start; }
  #menu .filters { margin-top: 18px; }
  .catalog-table { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px; border-radius: 4px 30px 4px 4px; }
  .catalog-table .product { display: grid; grid-template-columns: minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid #d8c8b5; }
  .catalog-table .product:first-child { padding-top: 0; }
  .catalog-table .product:last-child { padding-bottom: 0; border-bottom: 0; }
  .catalog-table .product-cover { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); align-items: center; gap: 14px; }
  .catalog-table .product-photo { aspect-ratio: 1.05; }
  .catalog-table .product-heading { padding-top: 0; }
  .catalog-table .product-copy { padding-top: 10px; }
  .catalog-table .product-actions { padding-top: 5px; }
  #gift.gift { padding: 26px 20px; }
}

/* Origin stories: a place to discover the shops and their brands. */
#brands.brand-collection { padding: clamp(28px, 4vw, 56px); border-radius: 4px 42px 4px 4px; background: #f5eee5; }
#brands > h2 { padding-bottom: 0; border: 0; font-weight: 500; }
#brands .origin-intro { max-width: 62ch; margin-top: 12px; color: var(--muted); line-height: 1.7; word-break: keep-all; }
#brands .origin-stores { margin-top: clamp(28px, 4vw, 48px); }
#brands .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 0; }
#brands .store-story { border: 0; border-radius: 4px; background: #fffaf3; }
#brands .store-story img { aspect-ratio: 1.35; }
#brands .store-grid figcaption { color: var(--muted); font-size: 12px; }
#brands .store-grid figcaption a { text-decoration: underline; text-underline-offset: 3px; }
#brands .store-copy { padding: clamp(20px, 2.5vw, 34px); }
#brands .store-description { max-width: 56ch; font-size: 15px; }
#brands .origin-product { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: 8px; color: var(--wine); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
#brands .origin-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 22px; margin-top: auto; padding-top: 14px; }
#brands .origin-links > a, #brands .origin-official { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
#brands .origin-visit { min-width: 0; }
#brands .origin-links .origin-visit[open] { flex-basis: 100%; }
#brands .origin-visit summary { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--wine); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
#brands .origin-visit summary::-webkit-details-marker { display: none; }
#brands .origin-visit summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }
#brands .origin-visit[open] summary::after { content: "−"; }
#brands .origin-visit summary:hover, #brands .origin-links a:hover, #brands .origin-product:hover, #brands .origin-official:hover { color: var(--wine-hover); }
#brands .origin-visit .store-facts { margin-top: 4px; }
#brands .origin-more { margin-top: 20px; padding: 8px 20px; border: 1px solid #dfd2c5; border-radius: 4px; background: #fffaf3; }
#brands .origin-more .origin-visit { max-width: 680px; }
#matcha-pangyo { scroll-margin-top: 24px; }
#brands .origin-brands { margin-top: clamp(38px, 5vw, 68px); padding-top: clamp(24px, 3vw, 38px); border-top: 1px solid #d9cbbd; }
#brands .origin-brands > h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 550; }
#brands .origin-brand-directory { margin-top: 20px; }
#brands .origin-brand-directory h4 { margin: 0; color: var(--ink); font-size: clamp(19px, 2vw, 26px); font-weight: 550; line-height: 1.25; word-break: keep-all; }
#brands .origin-brand-directory h4 a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 660px) {
  #brands.brand-collection { padding: 24px 18px; border-radius: 4px 28px 4px 4px; }
  #brands .store-grid { grid-template-columns: minmax(0, 1fr); }
  #brands .store-story img { aspect-ratio: 1.3; }
  #brands .origin-links { gap: 0 18px; }
  #brands .origin-brand-directory .brand-entry { display: flex; }
  #brands .origin-brand-directory .brand-entry-photo img { aspect-ratio: 1.4; }
  #brands .origin-brand-directory .brand-entry-copy { padding-top: 10px; }
}
