:root {
  --paper: #e2d6cc;
  --ink: #352a23;
  --muted: #66554a;
  --line: #bcada0;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(14px, 4vw, 48px);
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
body { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid #6c442c; outline-offset: 2px; }
.masthead { text-align: center; padding: clamp(24px, 4vw, 52px) var(--gutter) 18px; }
.masthead img { display: block; margin: auto; width: clamp(204px, 30vw, 320px); max-width: 100%; height: auto; }
.masthead p { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.categories {
  z-index: 1; position: sticky; top: 0; display: flex; justify-content: center;
  background: var(--paper); border-block: 1px solid var(--line); padding-inline: 4px;
}
.categories a {
  display: grid; place-items: center; text-align: center; padding: 9px clamp(8px, 2.5vw, 28px);
  min-height: 46px; font-size: .9375rem; font-weight: 600; white-space: nowrap;
}
.categories a:focus-visible { outline-offset: -4px; }
.menu { max-width: 1150px; padding: 0 var(--gutter); margin: 0 auto; }
section { scroll-margin-top: 58px; padding-top: clamp(24px, 4vw, 44px); }
section h2 {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); justify-content: center;
  font: 400 clamp(21px, 2.2vw, 31px)/1.2 var(--serif); letter-spacing: .055em; text-transform: uppercase;
}
section h2::before, section h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tea-brand { font: .75rem/1.6 var(--serif); text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin-top: 4px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(8px, 2vw, 24px); list-style: none; padding: 0; }
.menu-grid li { min-width: 0; display: flex; }
.drink {
  width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; padding: 17px 3px 14px; border-bottom: 1px solid #c8b9ad;
  overflow-wrap: anywhere; word-break: keep-all;
}
.drink:focus-visible { outline-offset: -2px; border-radius: 4px; }
.illustration { display: flex; align-items: end; justify-content: center; width: 100%; height: clamp(99px, 19vw, 142px); margin: 0 0 10px; }
.illustration img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
#tea .illustration { height: clamp(90px, 16vw, 124px); }
.drink strong { font-size: clamp(1rem, 1.45vw, 1.125rem); font-weight: 650; line-height: 1.35; }
.english { margin-top: 3px; color: var(--muted); font: .875rem/1.3 var(--serif); }
.temperature { margin-top: 7px; font-size: .6875rem; letter-spacing: .09em; font-weight: 650; }
.special { font: italic 600 .875rem/1.3 var(--serif); color: #83461e; margin-top: 4px; }
.description { color: var(--muted); font-size: .8125rem; line-height: 1.5; margin-top: 6px; max-width: 22ch; }
footer { display: flex; justify-content: center; padding: 32px 0 max(40px, env(safe-area-inset-bottom)); }
.open-order, .dialog-head button { display: inline-grid; place-items: center; min-height: 44px; border-radius: 6px; }
.open-order { padding: 8px 23px; background: #493b30; color: #fffaf5; }
dialog { width: min(480px, 95vw); max-height: 92vh; max-height: 92dvh; border: 0; border-radius: 12px; background: #f7f3ee; padding: 0; color: var(--ink); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgb(43 31 23 / 48%); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; padding: 8px 18px; border-bottom: 1px solid #d7ccc1; }
.dialog-head h2 { font-size: 1.125rem; }
.dialog-head button { padding: 6px 12px; border: 0; background: transparent; }
#order-frame { display: block; width: 100%; height: min(580px, 72vh); height: min(580px, 72dvh); min-height: 0; border: 0; }
.print-menu { display: none; }
@media (hover: hover) {
  .drink:hover strong, .categories a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .open-order:hover { background: #322920; }
}
@media (min-width: 600px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #ade .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; margin: auto; }
}
@media (min-width: 980px) {
  .menu-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #coffee .menu-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .categories { position: static; }
  section { scroll-margin-top: 8px; }
}
@media print {
  @page { size: 245mm 335mm; margin: 0; }
  body { padding: 0; }
  .masthead, .categories, .menu, dialog[open] { display: none; }
  .print-menu, .print-menu img { display: block; width: 100%; height: auto; }
}
