/* ==========================================================================
   Paris-Brest Patisserie
   Layout idea: a French carte. Ivory paper, navy ink, turquoise from the
   shopfront, and the grey-striped awning as the one recurring motif.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colour */
  --ivory: #faf6ee;        /* page background */
  --cream: #f2eadc;        /* secondary background */
  --sand: #e3d7c2;         /* rules and borders */
  --ink: #14253a;          /* deep navy: text and dark sections */
  --ink-soft: #4b596b;     /* secondary text */
  --turq: #5bbcc8;         /* shopfront turquoise: fills and accents */
  --turq-deep: #17727f;    /* turquoise that is legible as text on ivory */
  --awning: #9ba1a8;       /* awning stripe grey */
  --white: #ffffff;

  /* Type */
  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.5rem + 5vw, 5.6rem);

  /* Space */
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 148px);
  --max: 1280px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--turq-deep);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--turq);
  border-radius: 2px;
  background: linear-gradient(to top, var(--ink) 50%, var(--turq) 50%) 0 0 / 100% 200%;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-position 0.45s var(--ease), color 0.3s var(--ease), border-color 0.45s var(--ease);
}

.btn:hover {
  background-position: 0 100%;
  border-color: var(--ink);
  color: var(--ivory);
}

.btn--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.95rem;
}

.btn--on-dark:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink);
}

.text-link {
  position: relative;
  display: inline-block;
  padding-block: 4px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}

.text-link:hover {
  color: var(--turq-deep);
  background-size: 0 1.5px;
  background-position: 100% 100%;
}

/* Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-stuck {
  border-bottom-color: var(--sand);
  box-shadow: 0 10px 30px -22px rgba(20, 37, 58, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav-link {
  position: relative;
  padding-block: 8px;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--turq);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
}

.nav-toggle-bars {
  position: relative;
  width: 26px;
  height: 12px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars::after {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 940px) {
  :root {
    --nav-h: 66px;
  }

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

  /* The header's backdrop blur makes it the containing block, so the panel
     hangs from the header rather than using position: fixed. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 28px var(--gutter) 40px;
    background: var(--ivory);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding-block: 16px;
    border-bottom: 1px solid var(--sand);
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1.1;
  }

  .nav-link::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 28px;
  }

  .nav-links .btn {
    width: 100%;
    min-height: 54px;
    font-size: 1.05rem;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  min-height: min(calc(100svh - var(--nav-h) - 74px), 820px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 96px);
  padding-right: clamp(24px, 6vw, 96px);
}

.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--turq-deep);
}

.hero-place::before {
  content: "";
  width: 44px;
  height: 1.5px;
  background: var(--turq);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 11em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero h1 .line > span {
  display: block;
  animation: line-rise 1s var(--ease) both;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.09s;
}

.hero h1 .line:nth-child(3) > span {
  animation-delay: 0.18s;
}

.hero-text {
  max-width: 30em;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  animation: soft-in 1s 0.35s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  animation: soft-in 1s 0.45s var(--ease) both;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  animation: soft-in 1s 0.55s var(--ease) both;
}

.open-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--awning);
}

.open-status[data-state="open"]::before {
  background: #2f9e6b;
  box-shadow: 0 0 0 4px rgba(47, 158, 107, 0.18);
}

.open-status[data-state="closed"]::before {
  background: #c2603f;
}

.hero-media {
  position: relative;
  min-height: 420px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: unveil 1.3s 0.1s var(--ease) both;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: settle 2.2s 0.1s var(--ease) both;
}

.hero-inset {
  position: absolute;
  left: clamp(-90px, -7vw, -40px);
  bottom: clamp(28px, 5vw, 64px);
  width: clamp(150px, 17vw, 230px);
  margin: 0;
  border: 8px solid var(--ivory);
  background: var(--ivory);
  box-shadow: 0 30px 50px -30px rgba(20, 37, 58, 0.55);
  animation: soft-in 1.1s 0.7s var(--ease) both;
}

.hero-inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 75%;
}

.hero-inset figcaption {
  padding: 8px 4px 2px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

@keyframes line-rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes soft-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes unveil {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes settle {
  from {
    transform: scale(1.12);
  }
}

/* The awning: grey and white stripes with the words printed on the valance */

.awning {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
}

.awning::before {
  content: "";
  display: block;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--awning) 0 34px, var(--white) 34px 68px);
  box-shadow: inset 0 -6px 8px -6px rgba(20, 37, 58, 0.35);
}

.awning-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  padding: 14px var(--gutter) 15px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.72rem, 0.6rem + 0.5vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.awning-list li + li::before {
  content: "\2013";
  margin-inline: clamp(8px, 1.4vw, 20px);
  color: var(--turq-deep);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-left: 0;
  }

  .hero-media {
    order: -1;
    min-height: 0;
    height: min(48svh, 440px);
  }

  .hero-inset {
    left: auto;
    right: var(--gutter);
    bottom: -44px;
    width: 124px;
    border-width: 6px;
  }

  .hero-inset figcaption {
    display: none;
  }

  .hero-copy {
    gap: 22px;
    padding: 56px var(--gutter) 48px;
  }

  .hero-place {
    padding-right: 120px;
  }

  .hero-place::before {
    flex: none;
    width: 28px;
  }

  .hero h1 {
    max-width: 9.5em;
  }
}

/* Sections
   ========================================================================== */

.section {
  padding-block: var(--section);
}

.section--cream {
  background: var(--cream);
}

.section--ink {
  background: var(--ink);
  color: var(--ivory);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.section--ink .lead {
  color: rgba(250, 246, 238, 0.74);
}

/* Photo frames: a slow settle as each photograph comes into view.
   The resting state is always visible. */

.frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--sand);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.9s var(--ease);
}

.js .frame[data-reveal]:not(.is-in) img {
  transform: scale(1.09);
  opacity: 0.55;
}

/* Our story
   ========================================================================== */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.story-media {
  position: relative;
  padding-bottom: clamp(40px, 6vw, 84px);
  padding-right: clamp(28px, 5vw, 72px);
}

.story-media .frame--main {
  aspect-ratio: 4 / 5;
}

.story-media .frame--small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 5 / 4;
  border: 8px solid var(--ivory);
  box-sizing: content-box;
}

.story-copy {
  display: grid;
  gap: 24px;
  max-width: 34rem;
}

.story-copy p {
  color: var(--ink-soft);
}

.story-copy .lead {
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--sand);
}

.facts dt {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.facts dd {
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-media {
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .facts div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    align-items: baseline;
    gap: 12px;
  }

  .facts dd {
    margin: 0;
  }
}

/* Menu
   ========================================================================== */

.menu-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 26px;
  align-items: start;
}

.menu-intro {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 20px;
}

.menu-intro .lead {
  font-size: var(--step-0);
}

.menu-tabs-scroller {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.menu-panels {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}

.menu-tabs {
  display: grid;
  border-top: 1px solid var(--sand);
}

.menu-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 0 13px 0;
  border-bottom: 1px solid var(--sand);
  text-align: left;
  font-size: 1.02rem;
  color: var(--ink-soft);
  transition: color 0.25s, padding-left 0.35s var(--ease);
}

.menu-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1.5px;
  background: var(--turq-deep);
  transition: width 0.35s var(--ease);
}

.menu-tab:hover {
  color: var(--ink);
}

.menu-tab[aria-selected="true"] {
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}

.menu-tab[aria-selected="true"]::before {
  width: 20px;
}

.menu-count {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--turq-deep);
}

.menu-panel {
  background: var(--ivory);
  padding: clamp(26px, 4.5vw, 60px);
  border: 1px solid var(--sand);
  box-shadow: 0 40px 60px -50px rgba(20, 37, 58, 0.4);
}

.js .menu-panel.is-active {
  animation: panel-in 0.5s var(--ease);
}

.no-js .menu-panel + .menu-panel {
  margin-top: 24px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.menu-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(22px, 3vw, 36px);
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--ink);
}

.menu-panel-head h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
}

.menu-note {
  font-size: 0.98rem;
  color: var(--turq-deep);
}

.menu-columns {
  columns: 2;
  column-gap: clamp(32px, 5vw, 64px);
}

.menu-columns--single {
  columns: 1;
  max-width: 34rem;
}

.menu-columns--groups > .menu-group + .menu-group {
  break-before: column;
}

.menu-columns--groups > .menu-group.menu-group--stay {
  break-before: auto;
  margin-top: 34px;
}

.menu-extras {
  margin-top: 4px;
}

.menu-subhead {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.menu-subnote {
  margin: -6px 0 16px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.menu-item {
  break-inside: avoid;
  padding-block: 11px;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-name {
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.3;
}

.menu-row::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 18px;
  border-bottom: 1.5px dotted var(--awning);
  transform: translateY(-4px);
}

.menu-price {
  order: 2;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

.menu-row--plain::after {
  display: none;
}

.menu-desc {
  margin-top: 3px;
  max-width: 30em;
  padding-right: 3.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.menu-item--extra .menu-name {
  font-weight: 400;
  color: var(--ink-soft);
}

.menu-item--extra {
  padding-block: 4px;
  padding-left: 16px;
}

.menu-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.menu-feature .frame {
  aspect-ratio: 4 / 5;
}

.menu-foot {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 1020px) {
  .menu-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 24px;
  }

  .menu-intro,
  .menu-tabs-scroller,
  .menu-panels {
    grid-column: 1;
    grid-row: auto;
  }

  .menu-tabs-scroller {
    top: var(--nav-h);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
  }

  .menu-tabs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 12px var(--gutter);
    border: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .menu-tabs::-webkit-scrollbar {
    display: none;
  }

  .menu-tab {
    flex: none;
    width: auto;
    padding: 9px 16px;
    border: 1px solid var(--sand);
    border-radius: 2px;
    background: var(--ivory);
    font-size: 0.98rem;
    white-space: nowrap;
    scroll-snap-align: center;
  }

  .menu-tab::before,
  .menu-count {
    display: none;
  }

  .menu-tab[aria-selected="true"] {
    padding-left: 16px;
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ivory);
  }
}

@media (max-width: 720px) {
  .menu-columns {
    columns: 1;
  }

  .menu-columns--groups > .menu-group + .menu-group {
    break-before: auto;
    margin-top: 34px;
  }

  .menu-feature {
    grid-template-columns: 1fr;
  }

  .menu-feature .frame {
    aspect-ratio: 16 / 11;
  }

  .menu-desc {
    padding-right: 2.5rem;
  }
}

/* Patisserie showcase
   ========================================================================== */

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}

.showcase-col {
  display: grid;
  gap: clamp(16px, 2.4vw, 36px);
}

.showcase-col:nth-child(2) {
  padding-top: clamp(0px, 7vw, 112px);
}

.showcase-col:nth-child(3) {
  padding-top: clamp(0px, 2.5vw, 40px);
}

.showcase-intro {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(12px, 3vw, 48px);
}

.plate {
  margin: 0;
}

.plate .frame {
  aspect-ratio: 3 / 4;
}

.plate--wide .frame {
  aspect-ratio: 5 / 4;
}

.plate--square .frame {
  aspect-ratio: 1;
}

.plate:hover .frame.is-in img,
.no-js .plate:hover .frame img {
  transform: scale(1.045);
}

.plate figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.14rem;
  line-height: 1.3;
  color: rgba(250, 246, 238, 0.92);
}

.plate figcaption::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--turq);
  transform: translateY(-5px);
  transition: width 0.5s var(--ease);
}

.plate:hover figcaption::before {
  width: 44px;
}

.showcase-note {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: 0.94rem;
  color: rgba(250, 246, 238, 0.6);
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-col:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .showcase-col:nth-child(2),
  .showcase-col:nth-child(3) {
    padding-top: 0;
  }

  .showcase-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .showcase-grid,
  .showcase-col:first-child {
    grid-template-columns: 1fr;
  }

  .plate figcaption {
    font-size: 1.08rem;
  }
}

/* Gallery
   ========================================================================== */

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 262px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 16px);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
}

.gallery-cell--big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-cell--tall {
  grid-row: span 2;
}

.gallery-cell--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.9s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(20, 37, 58, 0.78), rgba(20, 37, 58, 0));
  color: var(--ivory);
  font-size: 0.92rem;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 42vw, 260px);
  }

  .gallery-item::after {
    display: none;
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(13, 24, 38, 0.96);
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 32px);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 246, 238, 0.28);
  border-radius: 50%;
  color: var(--ivory);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.lightbox-btn:hover {
  background: var(--turq);
  border-color: var(--turq);
  color: var(--ink);
}

.lightbox-btn:focus-visible {
  outline-color: var(--turq);
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
}

.lightbox-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  padding-inline: clamp(12px, 3vw, 32px);
  min-height: 0;
}

.lightbox-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}

.lightbox-figure img.is-swapping {
  opacity: 0;
  transform: scale(0.985);
}

.lightbox-caption {
  padding: 18px var(--gutter) 26px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  .lightbox-stage {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 10px;
    z-index: 2;
    background: rgba(13, 24, 38, 0.6);
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }
}

/* Why visit
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.why-intro {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  display: grid;
  gap: 24px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.rating-score {
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 0.9;
  font-variant-numeric: lining-nums;
}

.rating-meta {
  display: grid;
  gap: 4px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.stars {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 20px;
  background: var(--sand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 1l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L11 16l-5.9 3.2 1.2-6.6L1.5 8l6.6-.9z'/%3E%3C/svg%3E") 0 0 / 22px 20px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 1l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L11 16l-5.9 3.2 1.2-6.6L1.5 8l6.6-.9z'/%3E%3C/svg%3E") 0 0 / 22px 20px repeat-x;
}

.stars::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 96%;
  background: var(--turq-deep);
}

.themes {
  border-top: 1.5px solid var(--ink);
}

.theme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr);
  gap: 10px clamp(20px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--sand);
}

.theme h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
}

.theme p {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 32em;
}

.theme-meter {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.theme-bar {
  height: 6px;
  background: var(--cream);
  overflow: hidden;
}

.theme-bar span {
  display: block;
  height: 100%;
  background: var(--turq);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}

.js .themes:not(.is-in) .theme-bar span {
  transform: scaleX(0.12);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 7vw, 96px);
}

.quote {
  margin: 0;
  padding-top: 22px;
  border-top: 1.5px solid var(--turq);
}

.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.22;
  text-wrap: balance;
}

.quote figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-intro {
    position: static;
  }

  .quotes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .theme {
    grid-template-columns: 1fr;
  }
}

/* Find us
   ========================================================================== */

.find-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}

.find-copy {
  display: grid;
  gap: 30px;
  align-content: start;
}

.find-block h3 {
  margin-bottom: 10px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--turq-deep);
}

.find-address {
  font-style: normal;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.18;
}

.find-phone {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.18;
  text-decoration: none;
  background: linear-gradient(var(--turq), var(--turq)) 0 100% / 100% 1.5px no-repeat;
  transition: color 0.3s;
}

.find-phone:hover {
  color: var(--turq-deep);
}

.hours {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: 8px 0;
  border-bottom: 1px solid var(--sand);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
}

.hours tr.is-today th,
.hours tr.is-today td {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--turq);
}

.hours tr.is-today th::after {
  content: " (today)";
  font-weight: 400;
  color: var(--turq-deep);
}

.hours-note {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.find-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.good-to-know {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.good-to-know li {
  padding: 6px 14px;
  border: 1px solid var(--sand);
  background: var(--ivory);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.find-media {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.find-media .frame {
  aspect-ratio: 4 / 3;
}

.find-media .frame img {
  object-position: 50% 14%;
}

.hours-status {
  margin-top: 14px;
  animation: none;
}

.map {
  position: relative;
  min-height: 260px;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85);
}

.map-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(circle at 78% 30%, rgba(91, 188, 200, 0.22) 0 2px, transparent 3px),
    repeating-linear-gradient(0deg, rgba(250, 246, 238, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(250, 246, 238, 0.05) 0 1px, transparent 1px 46px),
    var(--ink);
}

.map-pin {
  width: 46px;
  height: 46px;
  color: var(--turq);
}

.map-card p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.18;
}

.map-card .text-link {
  align-self: flex-start;
  color: var(--turq);
}

.map-card .text-link:hover {
  color: var(--ivory);
}

@media (max-width: 960px) {
  .find-grid {
    grid-template-columns: 1fr;
  }

}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 238, 0.78);
  font-size: 0.98rem;
}

.site-footer .awning-edge {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--awning) 0 34px, var(--white) 34px 68px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

.site-footer .brand-logo {
  width: 96px;
  height: 96px;
}

.footer-about {
  display: grid;
  gap: 22px;
  align-content: start;
  max-width: 24rem;
}

.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--turq);
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  text-decoration: none;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--turq);
}

.footer-col address {
  font-style: normal;
  line-height: 1.55;
}

.footer-hours {
  display: grid;
  gap: 6px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-hours dd {
  margin: 0;
  white-space: nowrap;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.25s;
}

.social:hover {
  color: var(--turq);
}

.social svg {
  width: 22px;
  height: 22px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid rgba(250, 246, 238, 0.14);
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.55);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }

  .js .frame[data-reveal]:not(.is-in) img {
    transform: none;
    opacity: 1;
  }

  .js .themes:not(.is-in) .theme-bar span {
    transform: none;
  }
}
