:root {
  --paper: #fbf7ec;
  --ink: #181614;
  --muted: #6f6960;
  --line: #ded3bf;
  --sun: #efb85f;
  --sea: #6ea7b5;
  --white: #fffdf7;
  --shadow: 0 18px 50px rgba(24, 22, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(239, 184, 95, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--paper), #fffaf0);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header,
main,
footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(120, 92, 48, 0.14);
}

.eyebrow,
.intro-kicker,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 4.7rem);
  line-height: 0.92;
}

.qr-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 253, 247, 0.7);
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 10px 0;
  overflow-x: auto;
  background: rgba(251, 247, 236, 0.92);
  border-block: 1px solid rgba(222, 211, 191, 0.75);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

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

.category-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  background: var(--white);
  transition: border-color 160ms ease, background 160ms ease;
}

.category-nav a.is-active {
  border-color: var(--ink);
  background: #fff5dd;
}

@media (hover: hover) {
  .category-nav a:hover {
    border-color: var(--ink);
    background: #fff5dd;
  }
}

.intro {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 560px;
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5vw, 3.65rem);
  line-height: 1.02;
}

.octopus {
  width: min(260px, 34vw);
  aspect-ratio: 1;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.welcome-note {
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
}

.welcome-note p {
  max-width: 780px;
  margin: 0;
  color: #2a2520;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 3.6vw, 2rem);
  line-height: 1.35;
}

.menu-section {
  scroll-margin-top: 84px;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.4fr);
  gap: 28px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  position: sticky;
  top: 74px;
  align-self: start;
}

h2 {
  margin-top: 4px;
  font-size: clamp(2.25rem, 7vw, 4.6rem);
  line-height: 0.9;
}

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

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  min-height: 54px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(222, 211, 191, 0.72);
}

.menu-item span {
  min-width: 0;
  font-size: clamp(1.03rem, 2.8vw, 1.32rem);
  line-height: 1.3;
}

.menu-item strong {
  color: #2a2520;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  font-weight: 750;
  white-space: nowrap;
}

.menu-item.no-price {
  grid-template-columns: 1fr;
}

.allergy-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 42px 0;
  color: var(--muted);
}

footer img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

footer p {
  margin: 0;
  font-size: 0.92rem;
}

.qr-page {
  min-height: 100vh;
}

.qr-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 118px);
}

.qr-panel {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
}

.qr-panel h1 {
  font-size: clamp(2.3rem, 10vw, 4.2rem);
}

.qr-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.qr-form {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.qr-form label {
  font-size: 0.9rem;
  font-weight: 700;
}

.qr-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.qr-form button,
.print-button {
  min-height: 48px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.qr-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  padding: 12px;
  border: 1px solid var(--ink);
  background: white;
}

.qr-box img {
  width: 196px;
  height: 196px;
  border-radius: 0;
}

.qr-card-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.qr-url {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.back-link {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
  }

  .intro {
    min-height: 170px;
  }

  .octopus {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 150px;
    opacity: 0.18;
  }

  .menu-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  .section-heading {
    position: static;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .qr-form,
  .print-button,
  .back-link {
    display: none;
  }

  .qr-main {
    min-height: 100vh;
  }

  .qr-panel {
    border: 0;
    box-shadow: none;
  }
}
