:root {
  --paper: #f3e6cc;
  --paper-light: #fbf3e3;
  --ink: #4b2a12;
  --wine: #7b1128;
  --sage: #61725a;
  --line: rgba(75, 42, 18, .62);
  --shadow: 0 18px 45px rgba(57, 31, 11, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f3e6cc 0%, #fbf3e3 52%, #ead9b9 100%);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.35;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .14;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(70, 40, 15, .035) 0 1px, transparent 1px 4px);
}

img {
  display: block;
  max-width: 100%;
}

.menu-shell {
  width: min(100% - 22px, 760px);
  margin: 12px auto;
  padding: 46px 46px 52px;
  border: 2px solid var(--ink);
  border-radius: 42px;
  background: rgba(251, 243, 227, .88);
  box-shadow: var(--shadow);
  position: relative;
}

.menu-shell::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dotted rgba(75, 42, 18, .78);
  border-radius: 32px;
  pointer-events: none;
}

.brand,
.photo-hero,
.menu-card,
.category-nav,
footer {
  position: relative;
  z-index: 1;
}

.brand {
  text-align: center;
  padding: 8px 8px 20px;
}

.ornament {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 8px;
}

.brand h1 {
  margin: 0;
  font-weight: 500;
  font-size: 5.8rem;
  line-height: .72;
  letter-spacing: 0;
}

.brand h1 span {
  display: inline-block;
  margin-top: .28em;
  font-size: .82em;
}

.brand p {
  margin: 24px 0 0;
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: 3.2rem;
}

.photo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(124px, .65fr);
  gap: 12px;
  margin: 8px auto 24px;
}

.photo-hero-main {
  margin: 0;
}

.photo-hero-main,
.photo-hero-stack img,
.photo-menu-list img {
  overflow: hidden;
  border: 1px solid rgba(75, 42, 18, .3);
  background: rgba(255, 255, 255, .32);
  box-shadow: 0 10px 24px rgba(57, 31, 11, .12);
}

.photo-hero-main {
  position: relative;
  min-height: 300px;
  border-radius: 22px 8px 8px 22px;
}

.photo-hero-main img,
.photo-hero-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-hero-main figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: var(--paper-light);
  background: rgba(75, 42, 18, .76);
  border: 1px solid rgba(251, 243, 227, .42);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
}

.photo-hero-stack {
  display: grid;
  gap: 12px;
}

.photo-hero-stack img:first-child {
  border-radius: 8px 22px 8px 8px;
}

.photo-hero-stack img:last-child {
  border-radius: 8px 8px 22px 8px;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.category-nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, .24);
  font-weight: 600;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  color: var(--paper-light);
  background: var(--wine);
  border-color: var(--wine);
  outline: none;
}

.menu-card {
  scroll-margin-top: 16px;
  padding: 22px 4px 30px;
}

.menu-card + .menu-card {
  border-top: 1px solid rgba(75, 42, 18, .28);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading span {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line));
}

.section-heading span:last-child {
  background: linear-gradient(to left, transparent, var(--line));
}

.section-heading h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
}

h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 12px;
  color: var(--wine);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
}

h3::before,
h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

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

.menu-list li {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(24px, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 7px 0;
  font-size: 1.45rem;
}

.menu-list li::before {
  content: none;
}

.menu-list li span {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.menu-list li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: .82em;
  border-bottom: 2px dotted rgba(75, 42, 18, .72);
}

.menu-list strong {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.menu-list small,
.photo-menu-list small {
  font-size: .7em;
  white-space: normal;
}

.menu-list.spacious li {
  padding: 13px 0;
}

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

.photo-menu-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(75, 42, 18, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .22);
}

.photo-menu-list img {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-menu-list span {
  min-width: 0;
  font-size: 1.45rem;
}

.item-copy {
  min-width: 0;
}

.item-copy span {
  display: block;
  line-height: 1.14;
}

.item-copy p {
  margin: 5px 0 0;
  color: rgba(75, 42, 18, .78);
  font-size: 1rem;
  line-height: 1.25;
}

.photo-menu-list strong {
  color: var(--wine);
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}

footer {
  text-align: center;
  color: var(--wine);
  padding: 28px 0 10px;
}

footer div {
  font-size: 1.7rem;
}

footer p {
  margin: 4px 0 0;
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
}

@media (max-width: 620px) {
  .menu-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding: 28px 24px;
    border-radius: 28px;
  }

  .menu-shell::before {
    inset: 6px;
    border-radius: 22px;
  }

  .brand h1 {
    font-size: 3.8rem;
  }

  .brand p {
    font-size: 2.4rem;
  }

  .photo-hero {
    grid-template-columns: 1fr;
  }

  .photo-hero-main {
    min-height: 260px;
    border-radius: 18px 18px 8px 8px;
  }

  .photo-hero-stack {
    grid-template-columns: 1fr 1fr;
  }

  .photo-hero-stack img {
    aspect-ratio: 1 / 1;
  }

  .photo-hero-stack img:first-child {
    border-radius: 8px 8px 8px 18px;
  }

  .photo-hero-stack img:last-child {
    border-radius: 8px 8px 18px 8px;
  }

  .section-heading h2 {
    font-size: 3.2rem;
  }

  h3 {
    font-size: 1.65rem;
  }

  .menu-list li {
    grid-template-columns: minmax(0, auto) 1fr auto;
    gap: 6px;
    font-size: 1.25rem;
  }

  .menu-list small {
    display: inline;
    margin-top: 0;
  }

  .photo-menu-list li {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 104px;
    padding: 8px;
  }

  .photo-menu-list img {
    width: 90px;
    height: 90px;
  }

  .photo-menu-list span {
    font-size: 1.2rem;
  }

  .photo-menu-list strong {
    font-size: 1.15rem;
  }

}

@media (max-width: 380px) {
  .menu-shell {
    padding: 24px 18px;
  }

  .brand h1 {
    font-size: 3.2rem;
  }

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

  .photo-menu-list img {
    width: 76px;
    height: 76px;
    grid-row: span 2;
  }

  .photo-menu-list strong {
    justify-self: start;
  }
}

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

.photo-hero img,
.photo-menu-list img {
  cursor: zoom-in;
}

.photo-hero img:focus-visible,
.photo-menu-list img:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(30, 17, 8, .78);
}

.image-viewer.is-open {
  display: grid;
}

.image-viewer-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88vh, 860px);
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(251, 243, 227, .42);
  border-radius: 16px;
  background: var(--paper-light);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.image-viewer-panel img {
  width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  object-fit: contain;
  background: #2f1d11;
}

.image-viewer-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.image-viewer-close,
.image-viewer-return {
  border: 1px solid var(--wine);
  color: var(--paper-light);
  background: var(--wine);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.image-viewer-close {
  position: absolute;
  top: -13px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.image-viewer-return {
  justify-self: center;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 1.15rem;
}

.image-viewer-close:focus-visible,
.image-viewer-return:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
