:root {
  color-scheme: light;
  --paper: #fff4df;
  --paper-deep: #f3d4a3;
  --paper-warm: #ffe7bf;
  --ink: #21150d;
  --muted: #74563d;
  --rule: #2b1a10;
  --orange: #f47a1f;
  --orange-deep: #c94f17;
  --orange-soft: #ffd08a;
  --cream: #fffaf0;
  --shadow: 0 24px 90px rgba(84, 43, 15, 0.22);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(33, 21, 13, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  background-size: 18px 18px, auto;
  color: var(--ink);
}

.menu-page {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 20px;
}

.menu-sheet {
  width: min(100%, 480px);
  min-height: calc(100vh - 40px);
  border: 3px solid var(--rule);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 122, 31, 0.18), transparent 32%),
    linear-gradient(180deg, var(--cream), var(--paper));
  box-shadow: var(--shadow);
  padding: 20px 18px 24px;
}

.menu-header {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 4px double var(--rule);
  padding-bottom: 18px;
}

.logo-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 3px solid var(--rule);
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Arial, sans-serif;
  font-size: 26px;
  font-stretch: condensed;
  font-weight: 950;
}

.eyebrow,
.category-index,
.note-topline,
.menu-meta,
.menu-footer {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange-deep);
}

h1,
h2,
.category-header h3 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Arial, sans-serif;
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 {
  font-size: 46px;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-note {
  margin: 18px 0;
  border: 2px solid var(--rule);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 208, 138, 0.68), rgba(244, 122, 31, 0.9)),
    var(--orange);
  color: var(--ink);
  padding: 15px;
}

.note-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.note-topline span:first-child {
  background: var(--ink);
  color: var(--cream);
  padding: 7px 9px;
}

.note-topline span:last-child {
  padding: 7px 0;
}

.hero-note h2 {
  max-width: 360px;
  font-size: 32px;
}

.hero-note p {
  max-width: 360px;
  margin: 10px 0 0;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.menu-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  color: var(--muted);
  padding: 9px 0;
}

.category {
  border-top: 2px solid var(--rule);
  margin-top: 18px;
  padding-top: 14px;
}

.category-header {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.category-index {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--rule);
  border-radius: 50%;
  background: var(--orange-soft);
  margin: 0;
}

.category-header h3 {
  font-size: 30px;
}

.category-header p:not(.category-index) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.menu-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
}

.item-line {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(24px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.item-name,
.item-price {
  font-weight: 950;
}

.item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-price {
  white-space: nowrap;
}

.leader {
  min-width: 24px;
  border-bottom: 2px dotted rgba(33, 21, 13, 0.5);
  transform: translateY(-4px);
}

.item-description {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.menu-footer {
  border-top: 4px double var(--rule);
  color: var(--muted);
  margin-top: 22px;
  padding-top: 14px;
}

.menu-footer p {
  margin: 0;
  line-height: 1.45;
}

.menu-footer strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.state-panel {
  display: grid;
  min-height: 360px;
  align-content: center;
  gap: 10px;
  text-align: left;
}

.empty-note {
  border: 2px dotted rgba(33, 21, 13, 0.45);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0 0;
  padding: 12px;
}

@media (max-width: 520px) {
  .menu-page {
    padding: 0;
  }

  .menu-sheet {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 16px 22px;
  }
}

@media (max-width: 380px) {
  .menu-header {
    grid-template-columns: 54px 1fr;
    gap: 12px;
  }

  .logo-mark {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-note h2 {
    font-size: 28px;
  }

  .category-header h3 {
    font-size: 27px;
  }

  .note-topline,
  .menu-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
