:root {
  --paper: #ffffff;
  --panel: #ffffff;
  --soft: #f6f6f6;
  --mist: #e8e8e8;
  --ink: #050505;
  --ink-soft: #666666;
  --line: rgba(0, 0, 0, 0.14);
  --line-strong: rgba(0, 0, 0, 0.32);
  --shadow: none;
  --radius: 0;
  --sans: "Inter", "Avenir Next", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
}

.brand img {
  width: 28px;
  height: 32px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 6vw, 76px) 72px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  display: none;
}

.hero-media {
  display: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.82);
}

.hero-content {
  width: min(960px, 100%);
  color: var(--ink);
}

.hero-logo {
  width: min(300px, 54vw);
  margin: 0 0 clamp(30px, 4vw, 54px);
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12em;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 94px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 0;
  font-weight: 900;
}

.button.primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.button.secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.notice-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.notice-band article {
  padding: clamp(20px, 3vw, 34px);
  background: var(--panel);
}

.notice-band span,
.menu-card small,
.item-note,
.bean-card span,
.search-box label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-band strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.notice-band p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
}

.section-head.compact {
  width: 100%;
  margin-bottom: 18px;
}

.section-head.compact h2 {
  margin-bottom: 6px;
}

.bean-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bean-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
  min-width: 0;
}

.bean-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.bean-card header > div {
  min-width: 0;
}

.bean-card h3 {
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-card .surcharge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.bean-card p {
  overflow: hidden;
  margin-bottom: 0;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bean-meta {
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  min-width: 0;
}

.bean-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px);
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.menu-tools {
  position: sticky;
  top: 82px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.search-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  outline: 0;
}

.search-box input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.category-tabs {
  display: grid;
  gap: 8px;
}

.category-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.category-tabs button:hover,
.category-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.category-tabs small {
  color: inherit;
  font-weight: 800;
  opacity: 0.72;
}

.menu-board {
  min-width: 0;
}

.menu-groups {
  display: grid;
  gap: 22px;
}

.menu-group {
  scroll-margin-top: 92px;
}

.group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  min-width: 0;
}

.group-head h3 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 40px);
  white-space: nowrap;
}

.group-head span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
}

.menu-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.menu-card header > div {
  min-width: 0;
}

.menu-card h4 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.25;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.price::before {
  content: "$";
  margin-right: 1px;
  font-size: 13px;
  vertical-align: 0.42em;
}

.item-note {
  color: var(--ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-card p {
  overflow: hidden;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-card.is-highlight {
  border-color: var(--ink);
  background: var(--panel);
}

.empty-state {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  text-align: center;
}

.top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .notice-band,
  .bean-grid,
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-shell {
    grid-template-columns: 1fr;
  }

  .menu-tools {
    position: static;
  }

  .category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-tabs button {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding-top: 92px;
  }

  .hero::after {
    background:
      linear-gradient(to top, rgba(23, 20, 18, 0.88), rgba(23, 20, 18, 0.4) 62%, rgba(23, 20, 18, 0.16)),
      linear-gradient(90deg, rgba(23, 20, 18, 0.48), rgba(23, 20, 18, 0.08));
  }

  h1 {
    max-width: 100%;
    font-size: clamp(32px, 8.5vw, 38px);
    overflow-wrap: anywhere;
  }

  .hero-logo {
    width: min(220px, calc(100vw - 60px));
    margin-bottom: 34px;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .notice-band,
  .bean-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-shell,
  .section {
    padding-inline: 14px;
  }

  .menu-card {
    min-height: 0;
  }

  .menu-card h4 {
    font-size: clamp(15px, 4.1vw, 18px);
  }

  .menu-card p,
  .group-head span,
  .item-note {
    font-size: 13px;
  }
}
