:root {
  --paper: #f2eadb;
  --paper-deep: #e7dcc9;
  --ink: #201f1b;
  --muted: #706b61;
  --line: rgba(32, 31, 27, 0.18);
  --red: #b72f23;
  --red-dark: #842117;
  --jade: #315e4d;
  --white: #fffdf7;
  --display: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 24px 70px rgba(61, 43, 25, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 3%, rgba(183, 47, 35, 0.08), transparent 28rem),
    linear-gradient(90deg, transparent 49.7%, rgba(80, 65, 45, 0.035) 50%, transparent 50.3%),
    var(--paper);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-seal,
.ticket-seal {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 4px;
  color: var(--paper);
  background: var(--red);
  font-family: var(--display);
  font-size: 22px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.19em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.text-button,
.sheet-close {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.icon-button svg,
.search-box svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.text-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 650;
}

.icon-button:hover,
.text-button:hover,
.outline-button:hover {
  color: var(--paper);
  background: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 570px;
  margin: 0 auto;
  padding: 70px 0 80px;
}

.hero::before {
  position: absolute;
  top: 55px;
  left: -10vw;
  width: 46vw;
  height: 1px;
  background: var(--line);
  content: "";
  transform: rotate(-9deg);
  transform-origin: left;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(183, 47, 35, 0.11);
  animation: breathe 2.6s ease-in-out infinite;
}

.hero h1 {
  max-width: 690px;
  margin: 22px 0 22px;
  font-family: var(--display);
  font-size: clamp(76px, 10vw, 148px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.83;
}

.hero h1 em {
  color: var(--red);
  font-style: italic;
  font-weight: 400;
}

.hero-intro {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(19px, 2.2vw, 28px);
}

.hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 38px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.hero-mark {
  justify-self: center;
  width: min(100%, 360px);
  text-align: center;
  transform: rotate(3deg);
}

.hero-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(32, 31, 27, 0.25);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.42);
  box-shadow:
    inset 0 0 0 18px rgba(255, 253, 247, 0.7),
    inset 0 0 0 19px var(--line),
    18px 24px 0 rgba(49, 94, 77, 0.12);
}

.hero-plate::before,
.hero-plate::after {
  position: absolute;
  top: -30px;
  right: 16%;
  width: 5px;
  height: 120%;
  border-radius: 9px;
  background: var(--red);
  content: "";
  transform: rotate(42deg);
}

.hero-plate::after {
  right: 22%;
  background: var(--ink);
}

.hero-plate > span {
  font-family: var(--display);
  font-size: clamp(88px, 10vw, 140px);
  line-height: 1;
}

.hero-plate i {
  position: absolute;
  width: 42%;
  height: 14%;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.88;
  filter: blur(20px);
  transform: translateY(70%);
}

.hero-plate small {
  position: absolute;
  right: 23%;
  bottom: 22%;
  z-index: 1;
  color: var(--paper);
  font-family: var(--display);
  font-size: 18px;
}

.hero-mark p {
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.search-panel {
  position: relative;
  z-index: 4;
  width: min(760px, calc(100% - 40px));
  margin: -28px auto 45px;
}

.search-panel[hidden] {
  display: none;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-box button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.menu-section {
  padding: clamp(68px, 9vw, 118px) max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--ink);
}

.menu-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.menu-toolbar h2,
.house-note h2,
.sheet-header h2,
.manager-header h2,
.form-header h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.menu-toolbar > p {
  margin: 0 0 8px;
  color: rgba(255, 253, 247, 0.55);
  font-size: 12px;
}

.category-wrap {
  position: relative;
  margin: 0 -2px 38px;
}

.category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 9px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid rgba(255, 253, 247, 0.25);
  border-radius: 99px;
  color: rgba(255, 253, 247, 0.72);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: 180ms ease;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

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

.dish-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.13);
  border-radius: 3px;
  background: #292823;
  animation: card-in 520ms both;
  animation-delay: var(--delay, 0ms);
  transition: border-color 180ms ease, transform 180ms ease;
}

.dish-card:hover {
  border-color: rgba(255, 253, 247, 0.38);
  transform: translateY(-3px);
}

.dish-card.is-featured {
  grid-column: span 2;
}

.dish-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.2;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 48% 43%, var(--dish-b) 0 19%, transparent 20%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.8) 0 35%, rgba(255, 255, 255, 0.4) 36% 38%, transparent 39%),
    linear-gradient(145deg, var(--dish-a), var(--dish-b));
  cursor: pointer;
}

.dish-card.is-featured .dish-visual {
  aspect-ratio: 2.48;
}

.dish-visual::before {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(255, 255, 255, 0.045) 23px 24px);
  content: "";
}

.dish-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dish-card:hover .dish-visual img {
  transform: scale(1.035);
}

.dish-emoji {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 20px 40px rgba(47, 27, 12, 0.22);
  font-size: clamp(46px, 7vw, 88px);
  transform: rotate(-6deg);
}

.dish-card.is-featured .dish-emoji {
  width: 25%;
}

.dish-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.dish-unavailable {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(32, 31, 27, 0.68);
  font-family: var(--display);
  font-size: 24px;
  backdrop-filter: grayscale(1);
}

.dish-body {
  padding: 18px 18px 20px;
}

.dish-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.dish-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.dish-price {
  flex: 0 0 auto;
  color: #e7bd6c;
  font-family: var(--display);
  font-size: 21px;
}

.dish-description {
  display: -webkit-box;
  min-height: 42px;
  margin: 9px 0 16px;
  overflow: hidden;
  color: rgba(255, 253, 247, 0.58);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.dish-tags {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.dish-tags span {
  flex: 0 0 auto;
  color: rgba(255, 253, 247, 0.42);
  font-size: 10px;
}

.add-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 253, 247, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: 160ms ease;
}

.add-button:hover,
.add-button.has-items {
  border-color: var(--red);
  background: var(--red);
  transform: rotate(8deg);
}

.add-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed rgba(255, 253, 247, 0.24);
  text-align: center;
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 253, 247, 0.35);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 28px;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
}

.empty-state p {
  margin: 6px 0 22px;
  color: rgba(255, 253, 247, 0.5);
  font-size: 13px;
}

.empty-state .outline-button {
  border-color: rgba(255, 253, 247, 0.4);
  color: var(--white);
}

.house-note {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(260px, 0.6fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}

.house-note__number {
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(72px, 8vw, 112px);
  font-style: italic;
}

.house-note h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.house-note > p {
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cart-bar {
  position: fixed;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 13px;
  align-items: center;
  min-width: min(380px, calc(100vw - 36px));
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 18px 44px rgba(69, 22, 16, 0.34);
  cursor: pointer;
  animation: cart-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cart-count {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--red);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.cart-bar__label {
  justify-self: start;
  font-size: 14px;
  font-weight: 720;
}

.cart-bar strong {
  font-family: var(--display);
  font-size: 20px;
}

.cart-arrow {
  font-size: 21px;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(22, 21, 18, 0.7);
  backdrop-filter: blur(6px);
}

.sheet {
  position: fixed;
  inset: auto 0 0 auto;
  width: min(590px, 100%);
  max-height: min(88dvh, 900px);
  margin: 0;
  overflow: auto;
  border-radius: 18px 0 0 0;
}

.sheet[open] {
  animation: sheet-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(242, 234, 219, 0.82);
  font-size: 27px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.sheet-close--inline {
  position: static;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
}

.sheet-handle {
  display: none;
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 9px;
  background: var(--line);
}

.detail-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  background:
    radial-gradient(circle at 50% 42%, var(--dish-b) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.82) 0 35%, rgba(255, 255, 255, 0.4) 36% 38%, transparent 39%),
    linear-gradient(145deg, var(--dish-a), var(--dish-b));
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-emoji {
  position: relative;
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 24px 50px rgba(47, 27, 12, 0.24);
  font-size: 78px;
  transform: rotate(-5deg);
}

.detail-body {
  padding: 32px 30px max(30px, env(safe-area-inset-bottom));
}

.detail-category {
  color: var(--red);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.15em;
}

.detail-title-row {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-top: 7px;
}

.detail-title-row h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.detail-title-row strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.detail-description {
  margin: 18px 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.75;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.detail-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
}

.detail-add {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 7px 16px 7px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
}

.detail-add span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  color: var(--red);
  background: var(--paper);
  font-size: 23px;
}

.detail-add b {
  justify-self: start;
}

.detail-add:disabled {
  background: #79766d;
  cursor: not-allowed;
}

.sheet-header,
.manager-header,
.form-header {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  padding: 30px 30px 20px;
}

.sheet-header h2,
.manager-header h2,
.form-header h2 {
  font-size: 40px;
}

.cart-lines {
  max-height: 40dvh;
  overflow: auto;
  padding: 0 30px;
}

.cart-empty {
  padding: 55px 10px 65px;
  color: var(--muted);
  text-align: center;
}

.cart-empty span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 44px;
}

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-deep);
  font-size: 25px;
}

.cart-line h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.cart-line p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 34px 28px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.quantity-control span {
  text-align: center;
  font-size: 12px;
  font-weight: 760;
}

.order-customer,
.order-note {
  display: block;
  margin: 24px 30px 0;
}

.order-customer span,
.order-note span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 720;
}

.order-customer input,
.order-note textarea,
.form-grid textarea,
.form-grid input,
.manager-profile input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.6);
}

.order-customer input,
.order-note textarea {
  padding: 12px;
  resize: vertical;
}

.order-customer input:focus,
.order-note textarea:focus,
.form-grid textarea:focus,
.form-grid input:focus,
.manager-profile input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(183, 47, 35, 0.1);
}

.cart-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 24px 30px 18px;
}

.cart-summary span {
  font-size: 13px;
  font-weight: 720;
}

.cart-summary small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.cart-summary strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 35px;
  font-weight: 500;
}

.primary-button,
.outline-button,
.ghost-button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: 160ms ease;
}

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

.primary-button:disabled,
.publish-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.primary-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.primary-button--wide {
  width: calc(100% - 60px);
  min-height: 54px;
  margin: 0 30px max(28px, env(safe-area-inset-bottom));
  font-size: 14px;
}

.primary-button--wide span {
  margin-left: auto;
  font-size: 20px;
}

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

.ghost-button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.danger-text {
  color: var(--red);
}

.ticket-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: 92dvh;
  margin: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.ticket-dialog[open] {
  animation: ticket-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ticket {
  position: relative;
  max-height: 72dvh;
  padding: 38px 38px 32px;
  overflow: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ticket::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 10px;
  background: linear-gradient(135deg, var(--white) 6px, transparent 0) 0 0 / 12px 12px repeat-x;
  content: "";
}

.ticket-notch {
  position: absolute;
  top: 46%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #26251f;
}

.ticket-notch--left {
  left: -11px;
}

.ticket-notch--right {
  right: -11px;
}

.ticket header {
  text-align: center;
}

.ticket-seal {
  width: 34px;
  margin: 0 auto 10px;
}

.ticket header p {
  margin: 0;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.ticket header h2 {
  margin: 6px 0 2px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
}

.ticket header small {
  color: var(--muted);
  font-size: 10px;
}

.ticket-divider {
  height: 1px;
  margin: 22px 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px);
  opacity: 0.4;
}

.ticket-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin: 11px 0;
  font-size: 13px;
}

.ticket-line span:nth-child(2) {
  color: var(--muted);
}

.ticket-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ticket-total strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 30px;
}

.ticket-note {
  margin: 22px 0 0;
  padding: 12px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
}

.ticket-status {
  margin: 18px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(49, 94, 77, 0.2);
  color: var(--jade);
  background: rgba(49, 94, 77, 0.07);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.ticket-thanks {
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  text-align: center;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.ticket-actions .outline-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.ticket-actions .ghost-button {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.7);
}

.manager-dialog,
.form-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: 90dvh;
  margin: auto;
  overflow: auto;
  border-radius: 5px;
}

.manager-dialog[open],
.form-dialog[open] {
  animation: dialog-in 300ms ease both;
}

.manager-header,
.form-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(242, 234, 219, 0.94);
  backdrop-filter: blur(15px);
}

.manager-header p:not(.section-kicker) {
  max-width: 590px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.manager-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.logout-button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.logout-button:hover {
  color: var(--red);
}

.manager-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 8px 30px 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.38);
}

.manager-profile label,
.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.manager-profile input,
.form-grid input,
.form-grid textarea {
  min-height: 43px;
  padding: 10px 11px;
}

.form-grid textarea {
  resize: vertical;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 30px 22px;
}

.publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--jade);
  border-radius: 3px;
  color: var(--white);
  background: var(--jade);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.publish-button:hover {
  background: #254b3d;
}

.publish-status {
  align-self: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.publish-status.is-published {
  color: var(--jade);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.manager-list {
  padding: 0 30px 32px;
}

.manager-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.manager-row__emoji {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-deep);
  font-size: 24px;
}

.manager-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.manager-row p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.availability {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--jade);
  background: rgba(49, 94, 77, 0.1);
  font-size: 10px;
}

.availability.is-off {
  color: var(--red);
  background: rgba(183, 47, 35, 0.08);
}

.row-actions {
  display: flex;
  gap: 4px;
}

.row-actions button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.row-actions button:hover {
  border-color: var(--ink);
  background: var(--white);
}

.form-dialog {
  width: min(680px, calc(100% - 32px));
}

.auth-dialog {
  width: min(500px, calc(100% - 32px));
}

.auth-body {
  padding: 4px 30px 24px;
}

.auth-body > p:first-child {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.auth-body label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.auth-body input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  background: var(--white);
}

.auth-body input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(183, 47, 35, 0.1);
}

.form-error {
  margin: 10px 0 0 !important;
  color: var(--red) !important;
  font-size: 11px !important;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 30px 26px;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-grid .check-field {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
}

.check-field input {
  width: 17px;
  min-height: 0;
  height: 17px;
  padding: 0;
  accent-color: var(--red);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 30px 30px;
}

.orders-panel {
  padding: 32px 30px 38px;
  border-top: 7px solid var(--ink);
  background: var(--white);
}

.orders-panel > header {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.orders-panel h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.orders-empty {
  padding: 34px 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--paper);
}

.order-card[data-status="accepted"] {
  border-left-color: #d58c28;
}

.order-card[data-status="done"] {
  border-left-color: var(--jade);
  opacity: 0.78;
}

.order-card[data-status="cancelled"] {
  border-left-color: #8c8880;
  opacity: 0.6;
}

.order-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.order-card h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
}

.order-card__meta {
  color: var(--muted);
  font-size: 10px;
}

.order-card__items {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.8;
}

.order-card__note {
  margin: 8px 0 0;
  padding-left: 9px;
  border-left: 2px solid var(--red);
  color: var(--muted);
  font-size: 11px;
}

.order-card__side {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 14px;
}

.order-card__side strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 22px;
}

.order-status-select {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
  font-size: 11px;
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  padding: 11px 17px;
  border-radius: 3px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes breathe {
  50% { box-shadow: 0 0 0 8px rgba(183, 47, 35, 0.04); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes cart-rise {
  from { opacity: 0; transform: translateY(30px); }
}

@keyframes sheet-in {
  from { transform: translateX(100%); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

@keyframes ticket-in {
  from { opacity: 0; transform: rotate(-2deg) translateY(22px); }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr 230px;
    min-height: 510px;
  }

  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .house-note {
    grid-template-columns: auto 1fr;
  }

  .house-note > p {
    grid-column: 2;
  }

  .manager-profile {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 28px);
    padding: 15px 0;
  }

  .brand-seal {
    width: 34px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .text-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .hero {
    display: block;
    width: calc(100% - 28px);
    min-height: 0;
    padding: 74px 0 78px;
  }

  .hero::before {
    top: 47px;
  }

  .hero h1 {
    max-width: 390px;
    margin-top: 19px;
    font-size: clamp(68px, 23vw, 94px);
  }

  .hero-intro {
    font-size: 19px;
  }

  .hero-meta {
    margin-top: 28px;
  }

  .hero-mark {
    position: absolute;
    right: -42px;
    bottom: 38px;
    width: 145px;
    opacity: 0.3;
    transform: rotate(13deg);
  }

  .hero-plate {
    box-shadow: inset 0 0 0 9px rgba(255, 253, 247, 0.7), inset 0 0 0 10px var(--line), 8px 10px 0 rgba(49, 94, 77, 0.12);
  }

  .hero-plate > span {
    font-size: 60px;
  }

  .hero-plate small,
  .hero-mark p {
    display: none;
  }

  .search-panel {
    width: calc(100% - 28px);
    margin-top: -26px;
  }

  .search-box {
    padding: 13px 15px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .menu-section {
    padding: 68px 14px 78px;
  }

  .menu-toolbar {
    padding: 0 4px;
  }

  .menu-toolbar h2 {
    font-size: 47px;
  }

  .category-wrap {
    margin-right: -14px;
    margin-left: -14px;
  }

  .category-tabs {
    padding-left: 18px;
    scroll-padding-left: 18px;
  }

  .category-tabs::after {
    flex: 0 0 8px;
    content: "";
  }

  .dish-grid {
    gap: 10px;
  }

  .dish-card.is-featured {
    grid-column: span 2;
  }

  .dish-visual {
    aspect-ratio: 1.06;
  }

  .dish-card.is-featured .dish-visual {
    aspect-ratio: 2.1;
  }

  .dish-emoji {
    width: 54%;
    font-size: 43px;
  }

  .dish-card.is-featured .dish-emoji {
    width: 27%;
  }

  .dish-badge {
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .dish-body {
    padding: 13px 12px 14px;
  }

  .dish-head {
    display: block;
  }

  .dish-head h3 {
    font-size: 20px;
    line-height: 1.15;
  }

  .dish-price {
    display: block;
    margin-top: 4px;
    font-size: 17px;
  }

  .dish-description {
    min-height: 0;
    margin: 7px 0 12px;
    font-size: 11px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .dish-tags span:nth-child(n+2) {
    display: none;
  }

  .add-button {
    width: 32px;
    height: 32px;
  }

  .house-note {
    grid-template-columns: 65px 1fr;
    gap: 18px;
    width: calc(100% - 28px);
    padding: 78px 0;
  }

  .house-note h2 {
    font-size: 38px;
  }

  .house-note > p {
    grid-column: 1 / -1;
    margin-left: 65px;
  }

  footer {
    width: calc(100% - 28px);
    padding-bottom: 100px;
  }

  .cart-bar {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-width: calc(100% - 28px);
  }

  .sheet {
    inset: auto 0 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
  }

  .sheet[open] {
    animation-name: sheet-up;
  }

  .sheet-handle {
    display: block;
  }

  .detail-sheet {
    max-height: 92dvh;
  }

  .detail-hero {
    min-height: 290px;
  }

  .detail-body {
    padding: 26px 20px max(22px, env(safe-area-inset-bottom));
  }

  .detail-title-row h2 {
    font-size: 39px;
  }

  .detail-emoji {
    font-size: 66px;
  }

  .sheet-header {
    padding: 22px 20px 18px;
  }

  .cart-lines {
    padding: 0 20px;
  }

  .cart-line {
    grid-template-columns: auto 1fr;
  }

  .cart-line .quantity-control {
    grid-column: 2;
    justify-self: start;
  }

  .order-note {
    margin-right: 20px;
    margin-left: 20px;
  }

  .order-customer {
    margin-right: 20px;
    margin-left: 20px;
  }

  .cart-summary {
    margin-right: 20px;
    margin-left: 20px;
  }

  .primary-button--wide {
    width: calc(100% - 40px);
    margin-right: 20px;
    margin-left: 20px;
  }

  .manager-dialog,
  .form-dialog {
    width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .manager-header,
  .form-header {
    padding: 22px 20px 17px;
  }

  .manager-header-actions {
    gap: 2px;
  }

  .logout-button {
    display: none;
  }

  .manager-header h2,
  .form-header h2 {
    font-size: 35px;
  }

  .manager-profile {
    grid-template-columns: 1fr;
    margin: 5px 20px 24px;
  }

  .manager-actions,
  .manager-list {
    padding-right: 20px;
    padding-left: 20px;
  }

  .manager-actions .primary-button,
  .manager-actions .outline-button,
  .manager-actions .publish-button {
    flex: 1 1 calc(50% - 9px);
  }

  .publish-status {
    flex-basis: 100%;
    margin: 2px 0 0;
  }

  .manager-row {
    grid-template-columns: auto 1fr auto;
  }

  .manager-row .availability {
    display: none;
  }

  .manager-row .row-actions {
    grid-column: 2 / -1;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding-right: 20px;
    padding-left: 20px;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-actions {
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .orders-panel {
    padding: 27px 20px 34px;
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .order-card__side {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
