/*
 * Ember — a dark, photo-led restaurant landing page.
 *
 * Shipped byte for byte: the build copies this file unchanged into a content-hashed directory, so
 * what a designer wrote is what a visitor receives. Fonts are vendored rather than loaded from a
 * font CDN, because the page promises no third-party requests.
 */

@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: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

:root {
  --ink: #f4f1ec;
  --ink-muted: #9b958c;
  --page: #0b0b0b;
  --band: #121212;
  --card: #171717;
  --card-hover: #1c1c1c;
  --accent: #f2b705;
  --leaf: #3e820c;
  --leaf-light: #6fbf2a;
  --line: #242424;
  --radius: 999px;
  --gap: clamp(1.15rem, 4vw, 2.5rem);
  --shell: 74rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /*
   * The page's own scrollbar: thin, in the accent, softened toward the page so it does not glare
   * against the photography. The standard properties win in Chrome and Firefox; Safari reads only
   * the -webkit- rules below. Phones draw their own and ignore both.
   *
   * The editor sets its own bar over this while a client edits, and hides it inside its phone and
   * tablet frames; Preview and the published page show this one.
   */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 70%, var(--page)) var(--page);
}

html::-webkit-scrollbar {
  width: 10px;
  background: var(--page);
}

html::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 70%, var(--page));
  border: 2px solid var(--page);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  position: relative;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  /* A last line of defence. Any single runaway element should scroll its own container rather
     than drag the whole page sideways on a phone. */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Bound images carry a focal point as a custom property, so a crop keeps its subject in frame.
   The renderer sets it per image; this is the only place that decides what it means. */
.hero-photo,
.card-photo,
.about-photo,
.shot img {
  object-fit: cover;
  object-position: var(--mp-focal-x, 50%) var(--mp-focal-y, 50%);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* Long words break rather than widening the page. */
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.9rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  font-weight: 700;
  text-transform: uppercase;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

.lede {
  color: var(--ink-muted);
  max-width: 34rem;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #171200;
  border-radius: var(--radius);
  padding: 0.85rem 1.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- brand bar ----------------------------------------------------------- */

/* Floated over the hero photograph rather than sitting on a strip above it, so the first screen
   is the photograph and nothing else. */
.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem var(--gap);
  padding: 1.15rem var(--gap);
  max-width: var(--shell);
  margin: 0 auto;
}

.bar-mark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.bar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.bar-nav a {
  transition: color 180ms var(--ease);
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  /* svh rather than vh: on a phone vh is measured without the address bar, so a 100vh hero is
     taller than what you can actually see and the first screen arrives already cut off. */
  min-height: 100vh;
  min-height: 100svh;
  padding: 8rem var(--gap) 4rem;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-body {
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

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

.band {
  background: var(--band);
  padding: clamp(3rem, 8vw, 5.5rem) var(--gap);
  text-align: center;
  display: grid;
  /* The column must be allowed to shrink. Without minmax(0, …) a grid track is sized by its
     widest child's min-content, so one wide row inside drags the whole page past the viewport. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1rem;
}

.band-intro {
  color: var(--ink-muted);
  max-width: 34rem;
}

/* Decorative marks are painted with a mask so the page owns their colour. An <img> cannot: an
   SVG loaded that way has no page context, so its currentColor resolves to black. */
.motif {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--leaf-light), var(--leaf) 70%);
  -webkit-mask: url('assets/icons/leaf.svg') center / contain no-repeat;
  mask: url('assets/icons/leaf.svg') center / contain no-repeat;
}

/* --- showcase: a CSS-only carousel --------------------------------------- */

.cards {
  list-style: none;
  margin: 1rem 0 0;
  /* Vertical room for the hover lift. A scroll container clips both axes — CSS computes
     overflow-y to auto as soon as overflow-x is not visible — so a card rising 5px would be
     sliced off at the top without padding to rise into. */
  padding: 0.6rem 0;
  display: flex;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--shell);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  text-align: left;
  /* No scrollbar: the peeking next card is the affordance, and a bar across the bottom of a
     photo-led page is noise. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

/* Sized so roughly three and a half fit and the next one peeks, which is how a carousel says
   "there is more" without a script to announce it. */
.card {
  flex: 0 0 clamp(13.5rem, 27%, 18rem);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.card-photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
}

.card-note {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

/* Pushed to the bottom, so cards with longer descriptions still line their prices up. */
.price {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

/* --- about --------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gap);
}

.about-photo {
  width: 100%;
  height: 100%;
  max-height: 28rem;
  border-radius: 0.5rem;
}

.about-body {
  display: grid;
  gap: 1rem;
  color: var(--ink-muted);
  min-width: 0;
}

.about-body h2 {
  color: var(--ink);
}

/* The about text is left-aligned, so its leaf sits at the start rather than centred. */
.about-body .motif {
  justify-self: start;
}

.highlights {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.highlight {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.highlight-icon {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0.8rem;
  border-radius: 50%;
  background: #1d1d1d;
  border: 1px solid var(--line);
}

/* --- offer band ---------------------------------------------------------- */

.offer {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gap);
}

.offer-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.55rem;
  font-size: clamp(1.45rem, 4.4vw, 2.9rem);
}

/* The emphasis is its own bound slot rather than inline markup inside one value, so the client
   still chooses every word while the template decides what emphasis looks like. */
.accent {
  color: var(--accent);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: var(--shell);
  margin-top: 1.25rem;
}

.shot {
  margin: 0;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.4rem;
}

.shot img {
  width: 100%;
  height: 100%;
}

/* Three across, then the remainder centred beneath, done with structural selectors so the content
   needs no layout hints. Three and six fill their rows exactly; four and five centre what is left
   rather than leaving it hanging off one edge.

   Only on a wide screen, the one layout these column numbers describe. Below 52rem the gallery is
   a carousel on the page and a flattened grid in the editor, and a photo pinned to "column 2, two
   wide" there was stretched to double width in the editor's tablet frame and, in its phone frame,
   forced a third column into a grid with room for one. */
@media (width > 52rem) {
  .gallery-grid .shot:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }
  .gallery-grid .shot:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
}

/* --- contact ------------------------------------------------------------- */

.contact-rows {
  display: grid;
  /* min() so a narrow viewport collapses to one column instead of overflowing: a bare 14rem
     minimum cannot fit inside 390px of screen, and the track refuses to shrink below it. */
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: var(--shell);
  margin-top: 1.25rem;
  text-align: left;
}

.contact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'icon label' 'icon value';
  column-gap: 0.7rem;
  align-content: start;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.contact-icon {
  grid-area: icon;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  background: var(--accent);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.contact-icon--pin {
  -webkit-mask-image: url('assets/icons/map-pin.svg');
  mask-image: url('assets/icons/map-pin.svg');
}
.contact-icon--phone {
  -webkit-mask-image: url('assets/icons/phone.svg');
  mask-image: url('assets/icons/phone.svg');
}
.contact-icon--mail {
  -webkit-mask-image: url('assets/icons/mail.svg');
  mask-image: url('assets/icons/mail.svg');
}

.contact-row address,
.contact-row a {
  grid-area: value;
  font-style: normal;
  white-space: pre-line;
}

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

.foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--gap);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.foot-links a {
  transition: color 180ms var(--ease);
}

/* --- hover --------------------------------------------------------------- */

/*
 * Guarded by (hover: hover) so a touch device never gets stuck in a hover state after a tap.
 * Restrained on purpose: a small rise and a colour change, nothing that bounces.
 */
@media (hover: hover) {
  .card {
    transition:
      transform 200ms var(--ease),
      border-color 200ms var(--ease),
      background-color 200ms var(--ease);
  }
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--card-hover);
  }

  .button {
    transition:
      transform 180ms var(--ease),
      filter 180ms var(--ease);
  }
  .button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }

  .bar-nav a:hover,
  .foot-links a:hover {
    color: var(--accent);
  }
}

/* Keyboard users get the same affordance, and it has to be visible on a dark ground. */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

/* --- narrow screens ------------------------------------------------------ */

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

  .about-photo {
    max-height: 22rem;
  }

  /* Wider cards, so one fills the screen and the next still peeks. */
  .card {
    flex: 0 0 min(78%, 20rem);
  }

  /* The gallery becomes a swipeable carousel too. CSS only: the page ships no script. */
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .shot {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

@media (max-width: 40rem) {
  .bar {
    justify-content: center;
    text-align: center;
  }

  .bar-nav {
    justify-content: center;
    gap: 0.35rem 1.1rem;
  }

  /* The bar can wrap to two lines here, so the hero text needs more room above it. */
  .hero {
    padding-top: 10rem;
  }

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

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

/* --- edit mode ----------------------------------------------------------- */

/*
 * A carousel hides most of its items behind a scroll position, and a client cannot click what
 * they cannot see. The kit sets data-mp-mode="edit" on the root and the template degrades — which
 * keeps the kit at a single attribute toggle instead of teaching it to reason about CSS.
 *
 * Degrade only what is actually a carousel, and only where it is one. The showcase is a scroller at
 * every width, so it flattens unconditionally. The gallery is a proper grid on a wide screen and
 * only becomes a scroller below 52rem — so flattening it everywhere replaced a symmetric
 * three-then-two arrangement with an auto-fill grid that left 251px of dead space beside the first
 * row and pushed the second hard against the other edge. Worse than ugly: the editor was showing a
 * layout the published page does not have, which is the one thing a single renderer exists to avoid.
 */
[data-mp-mode='edit'] .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
  overflow-x: visible;
  scroll-snap-type: none;
}

[data-mp-mode='edit'] .card {
  flex: none;
  grid-column: auto;
  scroll-snap-align: none;
}

@media (max-width: 52rem) {
  [data-mp-mode='edit'] .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
  }

  [data-mp-mode='edit'] .shot {
    flex: none;
    grid-column: auto;
    scroll-snap-align: none;
  }
}

/* --- powered by -------------------------------------------------------------- */

/* A quiet line under the footer, in its colours. Part of every page, not of its content. */
.powered {
  margin: 0;
  padding: 0 var(--gap) 1.2rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

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

.powered a:hover,
.powered a:focus-visible {
  text-decoration: underline;
}

/* --- reduced motion ------------------------------------------------------ */

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

  .card,
  .button,
  .bar-nav a,
  .foot-links a {
    transition: none;
  }

  .card:hover,
  .button:hover {
    transform: none;
  }
}
