:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62615d;
  --line: #e9e7e1;
  --yellow: #f5ca36;
}

* { box-sizing: border-box; }

html {
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.menu-page {
  width: min(100%, 680px);
  margin-inline: auto;
  padding: 24px 24px 32px;
  animation: page-arrive 600ms ease-out both;
}

.menu-header {
  padding-bottom: 29px;
  text-align: center;
}

.logo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 7px;
  object-fit: contain;
  filter: invert(1);
  clip-path: inset(20.8% 18.2% 17% 15.4%);
  transform: scale(1.45);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.title-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 2vw, 12px);
  padding-bottom: 20px;
}

.title-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--yellow);
}

.coffee-doodle,
.cookie-doodle {
  display: block;
  flex-shrink: 0;
  height: auto;
  overflow: visible;
  color: var(--ink);
}

.coffee-doodle { width: clamp(32px, 10vw, 52px); }
.cookie-doodle { width: clamp(30px, 9vw, 46px); }

.coffee-mug { animation: cup-float 5.2s ease-in-out infinite; }

.coffee-steam {
  opacity: .45;
  animation: steam-rise 3.6s ease-in-out infinite;
}

.steam-one { animation-delay: -.2s; }
.steam-two { animation-delay: -1.4s; }
.steam-three { animation-delay: -2.6s; }

.cookie-shape {
  transform-box: fill-box;
  transform-origin: center;
  animation: cookie-sway 5.8s ease-in-out infinite;
}

@keyframes page-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(3px); }
  25% { opacity: .6; }
  75% { opacity: .25; }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes cup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

@keyframes cookie-sway {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-2px) rotate(5deg); }
}

.service-notice {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.menu-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.number-column { width: 34px; }
.price-column { width: 76px; }

thead th {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: left;
}

thead th:last-child { text-align: right; }

.category th { padding: 30px 0 10px; text-align: left; }

.category h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.35px;
}

tbody:first-of-type .category th { padding-top: 24px; }

.product-row th,
.product-row td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.product-row th {
  padding-right: 14px;
  font-weight: 400;
  text-align: left;
  overflow-wrap: anywhere;
}

.product-row td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.product-row .item-number {
  padding-right: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.currency {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.product-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.menu-footer {
  padding-top: 42px;
  text-align: center;
}

.menu-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  background: var(--yellow);
}

@media (min-width: 600px) {
  .number-column { width: 42px; }
  .price-column { width: 87px; }
  .menu-page { padding: 40px 44px 42px; }
  .menu-header { padding-bottom: 35px; }
  .logo { width: 154px; height: 154px; }
  .product-row th, .product-row td { padding-block: 15px; }
  .category th { padding-top: 36px; }
}

@media print {
  .menu-page { max-width: 680px; padding: 0; animation: none; }
  .coffee-mug, .coffee-steam, .cookie-shape { animation: none; }
  .menu-header { padding-bottom: 20px; }
  .logo { width: 100px; height: 100px; }
  .category, .product-row { break-inside: avoid; }
  .menu-footer { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-page, .coffee-mug, .coffee-steam, .cookie-shape {
    animation: none;
  }
}
