:root {
  color-scheme: dark;
  --ink: #090807;
  --panel: #100f0e;
  --panel-soft: #171310;
  --cream: #f6efe2;
  --muted: #b9ae9f;
  --gold: #d9a441;
  --gold-light: #f0cd7b;
  --wine: #5c1018;
  --line: rgba(217, 164, 65, 0.24);
  --shell: min(1140px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 4%, rgba(92, 16, 24, 0.15), transparent 25rem),
    var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background: url("assets/images/menu-pattern.webp") repeat;
  background-size: 720px 720px;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 74svh;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.56), rgba(9, 8, 7, 0.2) 50%, rgba(9, 8, 7, 0.56)),
    url("assets/images/hero-restobar.webp") center / cover no-repeat;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: min(36vw, 490px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 164, 65, 0.16);
  transform: rotate(45deg);
}

.hero::before {
  top: -26%;
  left: -13%;
  box-shadow: 0 0 0 18px rgba(217, 164, 65, 0.025), 0 0 0 36px rgba(217, 164, 65, 0.025);
}

.hero::after {
  right: -15%;
  bottom: -30%;
  background: rgba(92, 16, 24, 0.06);
  box-shadow: 0 0 0 18px rgba(217, 164, 65, 0.025), 0 0 0 36px rgba(217, 164, 65, 0.025);
}

.hero__glow {
  position: absolute;
  z-index: -2;
  top: 20%;
  left: 50%;
  width: min(90vw, 720px);
  height: 320px;
  border-radius: 50%;
  background: rgba(126, 30, 32, 0.28);
  filter: blur(100px);
  transform: translateX(-50%);
}

.hero__content {
  padding: 80px 0 64px;
  text-align: center;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 46% 46% 52% 52% / 34% 34% 66% 66%;
  box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 6px rgba(217, 164, 65, 0.4);
  color: var(--gold-light);
  font: 46px/1 Georgia, "Times New Roman", serif;
}

.brand-mark::before {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 48px;
  content: "✦";
  color: var(--gold);
  font-size: 14px;
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 0;
  color: var(--gold-light);
  font: clamp(4rem, 13vw, 9.2rem)/0.92 Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(217, 164, 65, 0.12);
}

.hero__tagline {
  margin: 25px 0 32px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.03em;
}

.hero__action {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--gold);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__action span {
  color: var(--gold);
  transition: transform 160ms ease;
}

.hero__action:hover span {
  transform: translateY(3px);
}

.category-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 8, 7, 0.92);
  backdrop-filter: blur(14px);
}

.category-nav__scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}

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

.category-nav a {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 150ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(217, 164, 65, 0.07);
  color: var(--gold-light);
  outline: none;
}

.menu {
  padding-block: 108px 120px;
}

.intro {
  max-width: 620px;
  margin-bottom: 100px;
}

.intro h2 {
  margin: 8px 0 12px;
  font: clamp(2.6rem, 7vw, 5.3rem)/1 Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro > p:last-child {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.menu-section {
  position: relative;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 38px;
}

.section-heading__number {
  padding-top: 5px;
  color: var(--gold);
  font: italic 0.8rem/1 Georgia, "Times New Roman", serif;
}

.section-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold-light);
  font: clamp(2.2rem, 5vw, 3.8rem)/1.05 Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

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

.menu-grid--single {
  grid-template-columns: minmax(0, 560px);
  max-width: 560px;
}

.menu-item {
  min-width: 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--panel), #0d0c0b);
}

.menu-item.featured {
  background:
    linear-gradient(135deg, rgba(92, 16, 24, 0.2), transparent 65%),
    var(--panel-soft);
}

.menu-item__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.menu-item h3 {
  margin: 0;
  font: 700 1.06rem/1.28 Georgia, "Times New Roman", serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.menu-item__top span {
  color: var(--gold-light);
  font: 700 1.22rem/1 Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.menu-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.drink-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
}

.drink-card {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.drink-card:last-child {
  border-right: 0;
}

.drink-card h3 {
  margin: 0 0 24px;
  color: var(--gold-light);
  font: 700 0.85rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drink-card h3 span {
  margin-right: 7px;
  color: var(--gold);
}

.price-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.28;
}

.price-list strong {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

footer {
  display: grid;
  place-items: center;
  padding: 68px 20px 72px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__mark {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font: 27px/1 Georgia, "Times New Roman", serif;
  transform: rotate(45deg);
}

.footer__mark span {
  display: block;
  transform: rotate(-45deg);
}

footer p {
  margin: 10px 0 4px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer p span {
  color: var(--wine);
}

footer small {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .menu-grid--three {
    grid-template-columns: 1fr;
  }

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

  .drink-card:nth-child(2) {
    border-right: 0;
  }

  .drink-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1140px);
  }

  .hero {
    min-height: 68svh;
    background:
      linear-gradient(rgba(9, 8, 7, 0.38), rgba(9, 8, 7, 0.56)),
      url("assets/images/hero-restobar-mobile.webp") center / cover no-repeat;
  }

  .hero__content {
    padding-top: 70px;
  }

  .brand-mark {
    width: 64px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.6rem);
    letter-spacing: 0.015em;
  }

  .category-nav__scroll {
    width: 100%;
    padding-inline: 14px;
  }

  .menu {
    padding-block: 78px 76px;
  }

  .intro {
    margin-bottom: 72px;
  }

  .menu-section {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

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

  .menu-item,
  .drink-card {
    padding: 24px 21px;
  }

  .drink-card,
  .drink-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drink-card:last-child {
    border-bottom: 0;
  }

  .menu-item__top {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
