/* ==========================================================================
   Frames — shared design foundation
   Palette: ink, bone, charcoal, ember (the only accent).
   Type: Instrument Serif for display, Inter Tight for everything else.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --ink: #0C0B0A;
  --bone: #F3EDE2;
  --ember: #D2681C;
  --charcoal: #1B1917;

  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter Tight", Arial, sans-serif;

  --label-size: 11px;
  --label-tracking: 0.22em;

  --muted: rgba(243, 237, 226, 0.66);
  --line: rgba(243, 237, 226, 0.18);
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--ember);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

/* Fine film grain over the whole composition. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Body typography ---------- */

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
}

p {
  line-height: 1.7;
}

em,
i {
  font-family: var(--display);
  font-style: italic;
}

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  color: var(--bone);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 11, 10, 0.72), rgba(12, 11, 10, 0));
}

.site-header--light {
  color: var(--ink);
}

.site-header--light::before {
  background: linear-gradient(to bottom, rgba(243, 237, 226, 0.9), rgba(243, 237, 226, 0));
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.35rem var(--gutter);
}

.site-title {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.site-logo {
  width: auto;
  height: clamp(46px, 5vw, 62px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.4rem;
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--ember);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-link:hover {
  opacity: 1;
  color: var(--ember);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  color: inherit;
  border: 1px solid currentColor;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-toggle:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Full-screen mobile navigation overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--gutter);
  background: var(--charcoal);
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.nav-overlay.open,
.nav-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.nav-overlay > a {
  font-family: var(--display);
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1.05;
  transition: color 0.25s var(--ease);
}

.nav-overlay > a:hover {
  color: var(--ember);
}

.nav-overlay .social-links {
  margin-top: 2rem;
}

.nav-overlay-close {
  position: absolute;
  top: 1.25rem;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bone);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-overlay-close svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-overlay-close:hover {
  color: var(--ink);
  background: var(--ember);
  border-color: var(--ember);
  transform: rotate(90deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.9rem 2rem;
  border: 1px solid var(--ember);
  background: var(--ember);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--ember);
}

.btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.btn--ghost:hover {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--ink);
}

/* ---------- Page scaffolding ---------- */

.page-wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 6rem;
}

.page-heading {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.page-heading h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
}

.page-heading p,
.page-heading .subtitle {
  max-width: 56ch;
  margin: 1.25rem auto 0;
  color: var(--muted);
}

.page-heading .subtitle {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--ember);
}

/* ---------- Menu ---------- */

.menu-list {
  max-width: 760px;
  margin-inline: auto;
}

.menu-group {
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}

.menu-group:first-child {
  border-top: 0;
}

h3.menu-group-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  text-align: center;
}

h3.menu-group-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 0.9rem auto 0;
  background: var(--ember);
}

.menu-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding-block: 0.6rem;
}

.menu-item-name {
  font-weight: 500;
}

.menu-leader {
  flex: 1 1 2rem;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-0.25rem);
}

.menu-item-price {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ember);
  white-space: nowrap;
}

.menu-item-desc {
  display: block;
  flex-basis: 100%;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

.menu-note {
  max-width: 60ch;
  margin: 1.5rem auto 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 240px);
  gap: 6px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
  cursor: zoom-in;
}

.gallery-grid figure.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
  opacity: 0.88;
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(12, 11, 10, 0.85));
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-grid figure:hover figcaption,
.gallery-grid figure:focus-within figcaption {
  opacity: 1;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 11, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.open,
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--bone);
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ink);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev {
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 26px;
  height: 26px;
}

/* ---------- Contact ---------- */

.contact-block {
  max-width: 760px;
  margin-inline: auto;
}

.contact-block h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  column-gap: 1.25rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.contact-item .contact-icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--ember);
}

.contact-item .contact-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), color 0.25s var(--ease);
}

a.contact-item:hover .contact-arrow {
  opacity: 1;
  color: var(--ember);
  transform: translateX(4px);
}

a.contact-item:hover .contact-value {
  color: var(--ember);
}

.contact-label {
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.3;
  transition: color 0.25s var(--ease);
}

.visit-map {
  max-width: var(--container);
  margin-block: 3rem;
}

.visit-map iframe {
  width: 100%;
  height: clamp(260px, 40vw, 380px);
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(0.92) brightness(1.02);
}

.visit-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.visit-split img {
  width: 100%;
  height: clamp(320px, 45vw, 520px);
  object-fit: cover;
}

.hours-block h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hours-block p {
  color: var(--muted);
  line-height: 2;
}

/* Contact page booking action */
.contact-page .contact-booking p {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--muted);
  text-align: center;
}

.contact-page .contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Get in Touch sits on a dark panel so the icons read as white. */
.contact-page .contact-direct {
  max-width: 900px;
  margin-block: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--bone);
}

.contact-page .contact-direct h2 {
  color: var(--bone);
}

.contact-page .contact-direct .contact-item {
  border-bottom-color: rgba(243, 237, 226, 0.18);
  color: var(--bone);
}

.contact-page .contact-direct .contact-icon {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.contact-page .contact-direct .contact-label {
  color: rgba(243, 237, 226, 0.62);
}

.contact-page .contact-direct .contact-value,
.contact-page .contact-direct .contact-arrow {
  color: var(--bone);
}

.contact-page .contact-direct a.contact-item:hover .contact-value {
  color: var(--ember);
}

/* ---------- Legal and error pages ---------- */

.legal-page .page-heading,
.error-page .page-heading {
  padding-bottom: 2rem;
}

.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-content ul {
  margin-left: 1.25rem;
}

.legal-content a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-underline-offset: 3px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 3rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  text-align: center;
}

.footer-logo {
  width: auto;
  height: clamp(48px, 6vw, 72px);
  margin-inline: auto;
}

.footer-address {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-cta {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--ember);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  transition: color 0.25s var(--ease);
}

.footer-cta:hover {
  color: var(--ember);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-social .social-link svg {
  width: 22px;
  height: 22px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--ember);
  text-decoration-color: var(--ember);
}

.footer-credit {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.footer-credit a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--ember);
  border-color: var(--ember);
}

/* ---------- Mobile breakpoint ---------- */

@media (max-width: 820px) {
  :root {
    --header-h: 72px;
  }

  .site-nav,
  .header-inner .social-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding-block: 1rem;
  }

  .page-wrap {
    padding-block: calc(var(--header-h) + 2rem) 4.5rem;
  }

  .visit-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .visit-split img {
    height: clamp(260px, 60vw, 420px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 35vw, 240px);
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .site-logo {
    height: 44px;
  }

  .menu-item {
    gap: 0.25rem 0.5rem;
  }

  .menu-item-price {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-grid figure.is-featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-grid img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .contact-item {
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    column-gap: 0.85rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close svg,
  .lightbox-prev svg,
  .lightbox-next svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- Reduced motion ---------- */

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

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

  .gallery-grid figure:hover img,
  .social-link:hover {
    transform: none !important;
  }
}

/* ---------- Menu page ---------- */

#food,
#drink {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.menu-page .menu-section + .menu-section {
  margin-top: 3rem;
}

.menu-page .menu-section__title {
  margin-bottom: 2.75rem;
  color: var(--ember);
  font-family: var(--display);
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  text-transform: none;
}

.menu-page .menu-section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--ember);
  opacity: 0.65;
}

.menu-page .photo-block {
  max-width: 760px;
  margin: 2.5rem auto;
  overflow: hidden;
  background: var(--charcoal);
}

.menu-page .photo-block img {
  width: 100%;
  height: clamp(220px, 34vw, 400px);
  object-fit: cover;
}

.menu-page .photo-block--narrow {
  max-width: 520px;
}

.menu-page .menu-section__cta {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
}

.menu-page .menu-cta {
  margin-top: 1.5rem;
}
