@font-face {
  font-family: "Bangers";
  src: url("fonts/bangers/Bangers-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-primary: #2c2a2a;
  --brand-accent: #c32025;
  --brand-canvas: #f7f5ef;
  --brand-surface: #fffefa;
  --brand-surface-muted: #efede5;
  --brand-ink: var(--brand-primary);
  --brand-ink-muted: #6b6566;
  --brand-line: #e5e1d6;
  --color-page: var(--brand-canvas);
  --color-surface: var(--brand-surface);
  --color-surface-muted: var(--brand-surface-muted);
  --color-text: var(--brand-ink);
  --color-text-muted: var(--brand-ink-muted);
  --color-primary: var(--brand-primary);
  --color-accent: var(--brand-accent);
  --color-border: var(--brand-line);
  --color-shadow: 0 18px 55px rgb(43 53 42 / 7%);
  --page: var(--color-page);
  --surface: var(--color-surface);
  --surface-muted: var(--color-surface-muted);
  --ink: var(--color-text);
  --ink-soft: var(--color-text-muted);
  --green: var(--color-primary);
  --accent: var(--color-accent);
  --line: var(--color-border);
  --shadow: var(--color-shadow);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --display: "Bangers", Impact, "Arial Narrow", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-page: #1c1a1a;
  --color-surface: #272425;
  --color-surface-muted: #353031;
  --color-text: #f4eeee;
  --color-text-muted: #c0b8b8;
  --color-primary: #f4eeee;
  --color-accent: #ff7777;
  --color-border: #443d3e;
  --color-shadow: 0 18px 55px rgb(0 0 0 / 17%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--page);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(100% - 2.5rem, 1180px);
  height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.wordmark__icon {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.wordmark__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.wordmark__name span,
.site-footer__brand span {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 0.82rem var(--sans);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.theme-toggle:hover {
  border-color: var(--green);
}

.theme-toggle:focus-visible,
.category-nav__link:focus-visible,
.hero__link:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle__icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-toggle__icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

.hero {
  position: relative;
  display: flex;
  min-height: 23rem;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 4rem;
  background: var(--surface-muted);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 19rem;
  height: 19rem;
  border: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -12rem;
  left: calc(50% - 9.5rem);
  box-shadow: 0 0 0 2rem var(--surface-muted), 0 0 0 2.1rem color-mix(in srgb, var(--green) 12%, transparent);
}

.hero::after {
  right: -15rem;
  bottom: -15rem;
  width: 27rem;
  height: 27rem;
}

.hero__ornament {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.hero__ornament--one {
  top: 34%;
  left: 12%;
}

.hero__ornament--two {
  right: 14%;
  bottom: 25%;
  width: 0.35rem;
  height: 0.35rem;
}

.hero h1 {
  position: relative;
  margin: 0;
  line-height: 0;
}

.hero__logo {
  display: block;
  width: clamp(8rem, min(40vw, 24vh), 12rem);
  max-width: 100%;
  height: auto;
  border-radius: 0.55rem;
  box-shadow: 0 8px 24px rgb(43 53 42 / 12%);
  object-fit: contain;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.7rem;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.hero__link svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 150ms ease;
}

.hero__link:hover svg {
  transform: translateY(3px);
}

.category-nav {
  position: sticky;
  z-index: 2;
  top: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

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

.category-nav__inner {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem max(1.25rem, calc((100vw - 850px) / 2));
}

.category-nav__link {
  flex: 0 0 auto;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.category-nav__link:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.menu {
  width: min(100% - 2.5rem, 850px);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.menu__intro {
  margin-bottom: 2rem;
  text-align: center;
}

.menu__intro h2 {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

#menu-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.menu-category {
  scroll-margin-top: 5.8rem;
  align-self: start;
  padding: 1.55rem 1.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-category__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.8rem;
  color: var(--green);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.menu-category__title::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.66rem 0;
  border-bottom: 1px dashed var(--line);
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item__details {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.menu-item__name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.menu-item__contents {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.menu-item__price {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  text-align: center;
}

.site-footer__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.site-footer__slogan {
  margin: 0.1rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.payment-notes {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.payment-notes__divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 2rem);
    height: 4rem;
  }

  .hero {
    min-height: 22rem;
    padding-block: 2.5rem 3rem;
  }

  .category-nav__inner {
    justify-content: flex-start;
    padding: 0.6rem 0.85rem;
  }

  .menu {
    width: calc(100% - 2rem);
    padding: 3rem 0 3.5rem;
  }

  #menu-sections {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .menu-category {
    padding: 1.3rem 1.2rem 1rem;
  }

  .menu-item__name {
    font-size: 0.88rem;
  }
}

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