:root {
  --ink: #201a17;
  --muted: #756a64;
  --line: #ebe3de;
  --paper: #fffaf7;
  --surface: #ffffff;
  --rose: #b44d5f;
  --rose-dark: #7d2d3b;
  --mint: #226c62;
  --gold: #bd8a37;
  --shadow: 0 18px 38px rgba(62, 38, 28, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 250, 247, 0.96)),
    url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1200&q=70");
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(235, 227, 222, 0.9);
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.icon-link {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 14px 92px;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-content: end;
  margin: 12px 0 16px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.page-hero {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: end;
  margin: 12px 0 18px;
  padding: 24px 18px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 26, 23, 0.18), rgba(32, 26, 23, 0.8)),
    var(--page-image);
  background-size: cover;
  background-position: center;
}

.page-hero > * {
  position: relative;
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 30rem;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.menu-page {
  --page-image: url("https://images.unsplash.com/photo-1499636136210-6f4ee915583e?auto=format&fit=crop&w=1200&q=84");
}

.order-page {
  --page-image: url("https://images.unsplash.com/photo-1488477181946-6428a0291777?auto=format&fit=crop&w=1200&q=84");
}

.info-page {
  --page-image: url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1200&q=84");
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 26, 23, 0.14), rgba(32, 26, 23, 0.77)),
    url("https://images.unsplash.com/photo-1558326567-98ae2405596b?auto=format&fit=crop&w=1200&q=84");
  background-size: cover;
  background-position: center 42%;
}

.hero-copy {
  position: relative;
  padding: 26px 18px 24px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd891;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.55rem, 12vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 30rem;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.hero-actions,
.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.button,
.add-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--rose);
  color: #fff;
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.quick-links a,
.notice,
.order-panel,
.menu-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(62, 38, 28, 0.06);
}

.quick-links a {
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
}

.quick-links span,
.quick-links strong {
  display: block;
}

.quick-links span {
  color: var(--muted);
  font-size: 0.76rem;
}

.quick-links strong {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.25;
}

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

.feature-card {
  min-height: 220px;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(32, 26, 23, 0.82));
}

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

.feature-card strong,
.feature-card span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
}

.feature-card strong {
  font-size: 1rem;
}

.feature-card span {
  padding-bottom: 14px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.notice a {
  flex: none;
  color: var(--mint);
  font-weight: 800;
}

.section-head {
  padding: 28px 2px 10px;
}

.section-head.compact {
  padding-top: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.12;
}

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

.menu-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
}

.menu-card img {
  width: 88px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 13px;
  background: var(--line);
}

.menu-card h3 {
  margin: 0;
  font-size: 1rem;
}

.menu-card p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.menu-card strong {
  color: var(--rose-dark);
}

.add-button {
  min-width: 58px;
  padding: 0 12px;
  background: #f3e8e5;
  color: var(--rose-dark);
}

.order-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
}

.sticky-summary {
  position: sticky;
  bottom: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(235, 227, 222, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sticky-summary span,
.sticky-summary strong {
  display: block;
}

.sticky-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sticky-summary strong {
  margin-top: 2px;
  font-size: 1.15rem;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(62, 38, 28, 0.06);
}

.info-row span,
.info-row strong {
  display: block;
}

.info-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.info-row strong {
  text-align: right;
}

.cart-empty {
  padding: 18px;
  border: 1px dashed #d9cbc4;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.cart-list {
  display: grid;
  gap: 8px;
}

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

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.qty {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.qty button {
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.qty output {
  text-align: center;
  font-weight: 800;
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(180, 77, 95, 0.12);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.total-row strong {
  color: var(--rose-dark);
  font-size: 1.3rem;
}

.checkout-actions .button {
  flex: 1 1 120px;
}

.helper-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 11;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 24px), 720px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(235, 227, 222, 0.9);
  border-radius: 999px;
  background: rgba(32, 26, 23, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-weight: 800;
}

.bottom-nav a.active {
  color: #ffd891;
}

.bottom-nav span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 82px;
  left: 16px;
  z-index: 12;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--mint);
  color: #fff;
  font-weight: 800;
  text-align: center;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.admin-body {
  background: #f5f2ef;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-nav a {
  flex: none;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f3e8e5;
  color: var(--rose-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 14px 50px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(62, 38, 28, 0.06);
}

.admin-card.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.admin-card h1,
.admin-card h2 {
  margin: 0 0 14px;
}

.admin-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-card > strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8e0e4;
  color: var(--rose-dark);
  font-weight: 800;
}

.admin-alert.ok {
  background: #e2f1ed;
  color: var(--mint);
}

.admin-form {
  display: grid;
  gap: 12px;
}

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

.grid-form .wide {
  grid-column: span 4;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-table td span,
.admin-table td small {
  color: var(--muted);
}

.inline-edit {
  display: grid;
  gap: 8px;
}

.inline-edit input,
.inline-edit textarea,
.status-form select {
  min-width: 180px;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.seo-fieldset legend {
  padding: 0 6px;
  font-weight: 900;
}

@media (min-width: 720px) {
  .hero {
    min-height: 680px;
  }

  .hero-copy {
    padding: 42px;
  }

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

  .menu-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .menu-card img {
    width: 104px;
  }

  .add-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .menu-card img {
    width: 76px;
  }

  .add-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-grid,
  .grid-form {
    grid-template-columns: 1fr;
  }

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

  .status-form {
    align-items: stretch;
    flex-direction: column;
  }
}
