@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/russo-one-latin.woff2") format("woff2");
}

:root {
  --ink: #0a0a0c;
  --ink-soft: #17171b;
  --paper: #f5f1e9;
  --white: #fff;
  --red: #c9223a;
  --red-dark: #9d1429;
  --gold: #db9423;
  --muted: #686468;
  --line: rgba(10, 10, 12, 0.12);
  --shadow: 0 18px 48px rgba(11, 9, 8, 0.16);
  --radius: 18px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Home */

.home-page {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
}

.home-hero__video,
.home-hero__poster,
.home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__poster {
  z-index: -3;
  object-fit: cover;
}

.home-hero__video {
  z-index: -2;
  object-fit: cover;
}

.home-hero__shade {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
}

.home-hero__content {
  display: flex;
  width: min(92vw, 760px);
  padding: clamp(1.5rem, 5vw, 4rem) 1rem 6rem;
  color: var(--white);
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.home-logo {
  width: clamp(78px, 9vw, 112px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.home-title {
  max-width: 16ch;
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.7);
}

.home-subtitle {
  max-width: 34rem;
  margin: 1rem 0 1.75rem;
  font-family: "Russo One", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.84);
}

.home-actions {
  display: flex;
  width: min(100%, 640px);
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.85rem 1.3rem;
  color: var(--white);
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  background: rgba(4, 4, 5, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.home-button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.home-contact {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.home-contact a {
  text-underline-offset: 0.2em;
}

.home-contact__dot {
  color: var(--red);
}

/* Shared header */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: min(100% - 2rem, 1200px);
  min-height: 76px;
  margin-inline: auto;
  color: var(--white);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.brand-link img {
  width: 116px;
  height: auto;
  filter: invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
}

.site-nav .site-nav__phone {
  margin-left: 0.35rem;
  color: var(--ink);
  background: var(--white);
}

.site-nav .site-nav__phone:hover {
  background: var(--paper);
}

/* Carta */

.menu-page {
  background: #f7f5f1;
}

.menu-hero {
  position: relative;
  display: grid;
  min-height: clamp(390px, 55vh, 590px);
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(5, 5, 8, 0.82), rgba(5, 5, 8, 0.28)),
    url("/assets/images/carta-hero.webp");
  background-position: center;
  background-size: cover;
  align-items: end;
}

.menu-hero__inner {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: 8.5rem 0 4.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #f0b551;
  font-family: "Russo One", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.menu-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(3.2rem, 8vw, 7.25rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.menu-hero__copy {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.6;
}

.category-shell {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 7px 28px rgba(18, 13, 9, 0.07);
  backdrop-filter: blur(16px);
}

.category-bar {
  display: flex;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  gap: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.category-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  color: #383539;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  background: #efedeb;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-button:hover {
  color: var(--white);
  background: #3c3839;
  transform: translateY(-1px);
}

.category-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 7px 18px rgba(201, 34, 58, 0.25);
}

.menu-main {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: 3rem 0 5rem;
}

.menu-section-heading {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.menu-section-heading h2 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.menu-section-heading p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.menu-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(10, 10, 12, 0.07);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 15, 10, 0.08);
  cursor: pointer;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.menu-card:hover {
  border-color: rgba(201, 34, 58, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.menu-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ebe8e4;
}

.menu-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.menu-card:hover .menu-card__media img {
  transform: scale(1.035);
}

.menu-card__body {
  display: flex;
  min-height: 142px;
  padding: 1rem;
  flex: 1;
  flex-direction: column;
}

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

.menu-card__meta {
  display: flex;
  margin-top: auto;
  padding-top: 0.9rem;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  display: inline-flex;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  background: var(--ink);
  border-radius: 999px;
  align-items: center;
}

.allergen-preview {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.allergen-preview img {
  width: 23px;
  height: 23px;
  margin-left: -0.3rem;
  object-fit: contain;
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.allergen-more {
  display: grid;
  width: 23px;
  height: 23px;
  margin-left: -0.2rem;
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 900;
  background: var(--red);
  border: 2px solid var(--white);
  border-radius: 50%;
  place-items: center;
}

.dish-dialog {
  width: min(92vw, 590px);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.dish-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.dialog-inner {
  max-height: 90vh;
  overflow-y: auto;
}

.dialog-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eae6e0;
}

.dialog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 44px;
  height: 44px;
  z-index: 2;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  place-items: center;
}

.dialog-content {
  padding: 1.4rem;
}

.dialog-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-title-row h2 {
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
}

.dialog-description {
  margin: 1rem 0 1.2rem;
  color: #4f4b4d;
  font-size: 1rem;
  line-height: 1.6;
}

.dialog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.allergen-tag {
  display: inline-flex;
  min-height: 38px;
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  color: #3d393b;
  font-size: 0.84rem;
  font-weight: 700;
  background: #f1efec;
  border-radius: 999px;
  align-items: center;
  gap: 0.4rem;
}

.allergen-tag img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.site-footer {
  color: var(--white);
  background: var(--ink);
}

.site-footer__inner {
  display: grid;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: 3.5rem 0;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__brand img {
  width: 136px;
  filter: invert(1);
}

.site-footer p,
.site-footer address {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer a {
  text-underline-offset: 0.22em;
}

.site-footer__phone {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  text-decoration: none;
}

.site-footer__copyright {
  padding: 1.1rem 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Poster pages */

.poster-page {
  min-height: 100vh;
  background: var(--paper);
}

.poster-page--dark {
  background: #000;
}

.poster-header {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  display: flex;
  max-width: 1180px;
  min-height: 54px;
  margin-inline: auto;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  color: var(--white);
  background: rgba(10, 10, 12, 0.83);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.poster-header__brand {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.poster-header__brand img {
  width: 102px;
  filter: invert(1);
}

.poster-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.poster-nav a {
  display: inline-flex;
  min-height: 42px;
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  align-items: center;
}

.poster-nav a:hover,
.poster-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

.poster-main {
  display: grid;
  min-height: 100svh;
  padding: 5.5rem 1rem 1rem;
  place-items: center;
}

.poster {
  display: block;
  width: min(64vw, 920px);
  height: auto;
  margin-inline: auto;
  box-shadow: 0 20px 60px rgba(28, 22, 18, 0.14);
}

.poster-page--dark .poster {
  box-shadow: none;
}

/* Error page */

.error-page {
  display: grid;
  min-height: 100svh;
  padding: 2rem;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.82)),
    url("/assets/images/home-poster.webp") center / cover;
  place-items: center;
}

.error-page__inner {
  max-width: 36rem;
}

.error-page img {
  width: 90px;
}

.error-page h1 {
  margin: 1rem 0 0.75rem;
  font-family: "Russo One", sans-serif;
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

.error-page p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .site-footer__contact {
    grid-column: 2;
  }
}

@media (max-width: 740px) {
  .home-page {
    min-height: 100%;
  }

  .home-hero__content {
    padding-bottom: 7.25rem;
  }

  .home-actions {
    max-width: 360px;
    flex-direction: column;
  }

  .home-button {
    width: 100%;
  }

  .site-header {
    width: calc(100% - 1.25rem);
    min-height: 68px;
  }

  .brand-link img {
    width: 98px;
  }

  .site-nav a:not([aria-current="page"]):not(.site-nav__phone) {
    display: none;
  }

  .site-nav .site-nav__phone {
    margin-left: 0;
  }

  .menu-hero__inner {
    width: calc(100% - 1.5rem);
    padding: 7rem 0 3.25rem;
  }

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

  .menu-section-heading {
    padding-inline: 0.25rem;
  }

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

  .menu-card {
    border-radius: 13px;
  }

  .menu-card__body {
    min-height: 130px;
    padding: 0.78rem;
  }

  .menu-card h3 {
    font-size: 0.93rem;
  }

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

  .allergen-preview {
    justify-content: flex-start;
  }

  .site-footer__inner {
    padding: 2.75rem 0;
    grid-template-columns: 1fr;
  }

  .site-footer__contact {
    grid-column: auto;
  }

  .poster-nav a:not([aria-current="page"]) {
    display: none;
  }

  .poster {
    width: 100%;
  }

  .poster-main {
    padding: 5rem 0 0;
    align-items: start;
  }
}

@media (max-width: 390px) {
  .home-contact {
    font-size: 0.78rem;
  }

  .home-contact__dot {
    display: none;
  }

  .home-contact span,
  .home-contact a {
    width: 100%;
  }

  .site-nav__phone {
    font-size: 0.82rem !important;
  }

  .menu-section-heading p {
    display: none;
  }

  .menu-card__body {
    min-height: 124px;
  }

  .price {
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
