/*
 * Gilded — black and gold.
 *
 * Every interaction here is CSS: a sticky header, a slide show that advances by itself, photos that
 * hold still while the page scrolls past, a phone menu opened by a link (:target), and hover effects.
 * In the editor (data-mp-mode="edit") everything moving is laid out flat, so every item can be
 * reached (D54); for visitors who ask for less motion, it holds still.
 */

/* --- fonts (SIL OFL, vendored: a published page makes no third-party requests) --------------- */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

/* --- tokens ------------------------------------------------------------------------------------ */

:root {
  --bg: #0a0a0a;
  --bg-raised: #0f0f0f;
  --card: #141414;
  --card-hover: #1a1a1a;
  --line: #222;
  --line-strong: #333;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --text: #fff;
  --muted: #a0a0a0;
  --soft: #888;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: 0.3s ease-in-out;
  --bar-height: 5rem;
  color-scheme: dark;
}

/* --- base ------------------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-height);
  scrollbar-color: #333 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--gold);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.wrap {
  width: 100%;
  max-width: 71.25rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Decorative icons are painted with a mask, so the stylesheet owns their colour. */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  background: var(--gold);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.icon--clock { --glyph: url('assets/icons/clock.svg'); }
.icon--pin { --glyph: url('assets/icons/map-pin.svg'); }
.icon--phone { --glyph: url('assets/icons/phone.svg'); }
.icon--mail { --glyph: url('assets/icons/mail.svg'); }

/* The gold button: a gradient that shifts, and a lift, on hover. */
.button {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  box-shadow: 0 5px 15px rgb(212 175 55 / 0.2);
  color: #000;
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-position 0.5s, transform 0.5s, box-shadow 0.5s;
}

.button:hover {
  background-position: right center;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgb(212 175 55 / 0.28);
}

/* --- top bar: opening hours and social links --------------------------------------------------- */

.topbar {
  background: #1a1a1a;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  color: #ccc;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
}

.topbar-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The kit writes one .run per stretch of days with the same hours: "Tue–Sat 15:00–21:30". */
.run + .run::before {
  content: '·';
  margin: 0 0.45rem;
  color: var(--gold);
}

.run-days {
  color: var(--text);
}

.run[data-state='closed'] .run-times {
  color: var(--soft);
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.socials a {
  display: block;
  opacity: 0.85;
  transition: opacity var(--ease), transform var(--ease);
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.socials img {
  width: 1rem;
  height: 1rem;
}

/* --- header: sticky, with the links becoming a panel on a phone ------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  /* No backdrop-filter: it would make the header the containing block of the fixed phone panel,
     trapping the panel inside the header's own height. */
  background: rgb(10 10 10 / 0.96);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--bar-height);
}

.bar-mark {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bar-logo {
  max-height: 3.25rem;
  width: auto;
}

.bar-nav {
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  flex: 1;
}

.bar-nav a {
  position: relative;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--ease);
}

.bar-nav a:hover::after {
  width: 100%;
}

.bar-cta {
  padding: 0.7rem 1.6rem;
}

/* Visible on a phone only. Each holds a word for screen readers; the lines are drawn here. */
.menu-open,
.menu-close {
  display: none;
  width: 2rem;
  height: 2rem;
  background: var(--text);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.menu-open { --glyph: url('assets/icons/menu-2.svg'); }
.menu-close { --glyph: url('assets/icons/x.svg'); }
.bar-nav .menu-close::after { content: none; }

/* --- hero: the photo holds still while the page moves over it --------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100svh, 56rem);
  padding: 6rem 0;
  text-align: center;
}

/* clip-path makes the fixed photo show only inside the hero: that is the whole parallax. */
.hero-media {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
}

.hero-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mp-focal-x, 50%) var(--mp-focal-y, 50%);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
}

.hero-body {
  position: relative;
  max-width: 54rem;
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
}

.hero h1 {
  font-size: clamp(2.25rem, 6.2vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.lede {
  max-width: 37.5rem;
  margin: 1.25rem auto 2.5rem;
  color: #ddd;
  font-size: 1.125rem;
}

/* --- bands --------------------------------------------------------------------------------------- */

.band {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.band-title {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  text-align: center;
}

.band-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 3px;
  margin: 0.9rem auto 0;
  background: var(--gold);
}

.band-intro {
  max-width: 40rem;
  margin: 1rem auto 0;
  text-align: center;
}

/* --- menu: grouped by category, with tabs that jump to each group ------------------------------ */

.menu {
  background: var(--bg-raised);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2.25rem;
}

/* A menu with no categories has no tabs: nothing to show. */
.tabs:not(:has(a)) {
  display: none;
}

.tabs a {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid transparent;
  color: var(--soft);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  transition: color var(--ease), border-color var(--ease);
}

.tabs a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.dishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  margin-top: 2.5rem;
}

.dish-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--gold);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

.dish-group:first-child {
  margin-top: 0;
}

.dish-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgb(212 175 55 / 0.45), transparent);
}

.dish {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  transition: background var(--ease), border-color var(--ease);
}

.dish:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
}

.dish-photo {
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--mp-focal-x, 50%) var(--mp-focal-y, 50%);
}

.dish-body {
  flex: 1;
  min-width: 0;
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

/* The name gives way, never the price: a flex item will not shrink below its longest word unless
   told it may, and a long dish name on a phone would otherwise push the price off the screen. */
.dish h4 {
  min-width: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.dish-dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted #555;
  transform: translateY(-0.3rem);
}

.dish-price {
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.dish-note {
  margin-top: 0.3rem;
  color: var(--soft);
  font-size: 0.8125rem;
}

/* --- offerings: a slide show over a still background photo ----------------------------------- */

.offerings {
  position: relative;
  isolation: isolate;
  background: url('assets/photos/service-background.webp') center / cover fixed;
}

.offerings::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.9);
}

/* All slides share one grid cell, so the show is as tall as its tallest slide. */
.slides {
  display: grid;
  margin-top: 3rem;
}

.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
  opacity: 0;
  animation: var(--show) both;
  animation-delay: calc((var(--n, 1) - 1) * 6s);
}

.slide:nth-child(2) { --n: 2; }
.slide:nth-child(3) { --n: 3; }
.slide:nth-child(4) { --n: 4; }

/* One cycle is six seconds per slide; each slide is shown for its six, fading in and out. */
.slides:has(> .slide:only-child) .slide {
  opacity: 1;
  animation: none;
}
.slides:has(> .slide:nth-child(2):last-child) .slide { --show: gilded-show-2 12s infinite; }
.slides:has(> .slide:nth-child(3):last-child) .slide { --show: gilded-show-3 18s infinite; }
.slides:has(> .slide:nth-child(4):last-child) .slide { --show: gilded-show-4 24s infinite; }

@keyframes gilded-show-2 {
  0% { opacity: 0; visibility: visible; }
  6% { opacity: 1; }
  44% { opacity: 1; }
  50% { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes gilded-show-3 {
  0% { opacity: 0; visibility: visible; }
  4% { opacity: 1; }
  29% { opacity: 1; }
  33.3% { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes gilded-show-4 {
  0% { opacity: 0; visibility: visible; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}

.slide-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.5);
  object-fit: cover;
  object-position: var(--mp-focal-x, 50%) var(--mp-focal-y, 50%);
}

.slide h3 {
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
}

.slide-lead {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.125rem;
  font-style: italic;
}

.points li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  color: #ccc;
}

/* An empty point is simply not shown. */
.points li:empty {
  display: none;
}

.points li::before {
  content: '';
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--gold);
  -webkit-mask: url('assets/icons/check.svg') center / contain no-repeat;
  mask: url('assets/icons/check.svg') center / contain no-repeat;
  transform: translateY(0.12rem);
}

/* --- gallery -------------------------------------------------------------------------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 5 / 4;
  background: var(--card);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mp-focal-x, 50%) var(--mp-focal-y, 50%);
  transition: transform 0.5s, opacity 0.5s;
}

.shot:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

/* --- lower band: about and contact ------------------------------------------------------------ */

.lower {
  padding: 4.5rem 0;
  border-top: 1px solid #1a1a1a;
  background: #050505;
}

.lower-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem 5rem;
}

.lower h2 {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--gold);
  font-size: 1.5rem;
  font-weight: 400;
}

.about p {
  color: var(--soft);
  line-height: 1.8;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
  color: #aaa;
}

.contact-line .icon {
  margin-top: 0.3rem;
}

.contact-line address {
  white-space: pre-line;
}

/* --- footer --------------------------------------------------------------------------------------- */

.foot {
  padding: 1.25rem 0;
  border-top: 1px solid #111;
  background: #000;
  font-size: 0.875rem;
  color: #666;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.foot-links {
  display: flex;
  gap: 1.5rem;
}

.foot-links a {
  color: var(--soft);
}

/* --- smaller screens ------------------------------------------------------------------------------ */

@media (max-width: 62rem) {
  .dishes {
    grid-template-columns: minmax(0, 1fr);
  }

  .slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

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

  .lower-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The links become a panel from the left, opened by the menu link and closed by its cross. */
  .menu-open,
  .menu-close {
    display: block;
  }

  .menu-open {
    order: 3;
    margin-left: auto;
  }

  .bar-cta {
    order: 2;
    margin-left: auto;
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
  }

  .bar-inner {
    gap: 1rem;
  }

  .bar-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(18rem, 82vw);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem 1.75rem;
    border-right: 1px solid var(--line-strong);
    background: #000;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
  }

  .bar-nav:target {
    transform: none;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.55);
  }

  .bar-nav .menu-close {
    align-self: flex-end;
    margin-bottom: 1.5rem;
  }

  .bar-nav a:not(.menu-close) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .bar-nav a::after {
    content: none;
  }
}

@media (max-width: 40rem) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.6rem 1.25rem;
    text-align: center;
  }

  /* On a phone the week does not fit one line, and wrapping it mid-run strands separators and
     splits times. Each run of days becomes a small pill instead, wrapping as a whole. */
  .topbar-hours .icon {
    display: none;
  }

  .runs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .run {
    padding: 0.15rem 0.6rem;
    border: 1px solid rgb(212 175 55 / 0.35);
    border-radius: 999px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .run + .run::before {
    content: none;
  }

  .bar-cta {
    display: none;
  }

  .dish {
    align-items: flex-start;
  }

  .dish-photo {
    width: 4rem;
    height: 4rem;
  }

  .shots {
    gap: 0.75rem;
  }
}

/* --- in the editor, nothing moves and nothing is hidden (D54) ---------------------------------- */

[data-mp-mode='edit'] .slide,
[data-mp-mode='edit'] .slides .slide {
  grid-area: auto;
  opacity: 1;
  animation: none;
}

[data-mp-mode='edit'] .slides {
  gap: 3rem;
}

[data-mp-mode='edit'] .hero-photo {
  position: absolute;
}

[data-mp-mode='edit'] .offerings {
  background-attachment: scroll;
}

@media (max-width: 62rem) {
  [data-mp-mode='edit'] .bar-nav {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0;
    border: 0;
    background: none;
    transform: none;
    transition: none;
  }

  [data-mp-mode='edit'] .bar-inner {
    flex-wrap: wrap;
  }

  [data-mp-mode='edit'] .menu-open,
  [data-mp-mode='edit'] .menu-close {
    display: none;
  }

  [data-mp-mode='edit'] .bar-nav a:not(.menu-close) {
    padding: 0;
    border: 0;
  }
}

/* --- for visitors who ask for less motion ------------------------------------------------------- */

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

  .slide {
    grid-area: auto;
    opacity: 1;
    animation: none;
  }

  .slides {
    gap: 3rem;
  }

  .hero-photo {
    position: absolute;
  }

  .offerings {
    background-attachment: scroll;
  }

  .button,
  .bar-nav,
  .shot img,
  .dish,
  .socials a {
    transition: none;
  }

  .button:hover,
  .shot:hover img {
    transform: none;
  }
}
