:root {
  color-scheme: dark;
  --paper: #111b23;
  --ink: #f3ede2;
  --muted: #b9c9cf;
  --line: #344a56;
  --accent: #284a5e;
  --surface: #192934;
  --surface-hover: #213643;
  --display: "Cormorant Garamond", Georgia, serif;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #c0e2f2; outline-offset: 5px; }
::selection { color: #11212e; background: #c0e2f2; }

.page-width {
  width: min(100% - clamp(2rem, 12vw, 12rem), 75rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  inset: 1rem auto auto 1rem;
  padding: .8rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
}

.skip:focus { transform: none; }

.masthead {
  min-height: 5.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 4.55rem;
  min-height: 3.75rem;
}

.brand img {
  width: 100%;
  height: auto;
  filter: grayscale(1) invert(1) brightness(1.12) sepia(.18);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.8rem, 3vw, 2.5rem);
}

.masthead nav a, .footer a {
  font-size: .875rem;
  font-weight: 700;
  text-underline-offset: .3em;
  text-decoration: none;
}

.masthead nav a:hover, .footer a:hover { text-decoration: underline; }

.nav-location {
  border: 1px solid #647c89;
  border-radius: 99px;
  padding: .66rem 1.17rem;
}

.hero {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(44rem, max(34rem, 77svh));
  margin-inline: clamp(.5rem, 1.45vw, 1.5rem);
  border-radius: .9rem;
  color: #f5f3e6;
  background: #142e45 url(surf-still.webp) center / cover no-repeat;
  box-shadow: 0 0 0 1px #334954;
}

.hero-surf, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-surf { object-fit: cover; }
.surf-control {
  position: absolute;
  z-index: 1;
  inset: auto clamp(.8rem, 2vw, 1.5rem) clamp(.8rem, 2vw, 1.5rem) auto;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #f3f3e9b3;
  border-radius: 50%;
  color: #fff;
  background: #0d2135b8;
  cursor: pointer;
}
.surf-control[hidden] { display: none; }
.surf-control:hover { background: #0d2135; }
.surf-control:focus-visible { outline-color: #fff; }
.surf-control span {
  width: 0;
  height: 0;
  margin-left: .15rem;
  border-block: .36rem solid transparent;
  border-left: .58rem solid currentColor;
}
.surf-control.is-playing span {
  width: .59rem;
  height: .75rem;
  margin: 0;
  border: 0;
  border-inline: .15rem solid currentColor;
}
.hero-shade {
  background:
    linear-gradient(90deg, #091b31da, #091b31a3 34%, #091b3129 67%, transparent),
    linear-gradient(0deg, #091b3147, transparent 60%);
}

.hero-content { position: relative; padding-block: clamp(3rem, 8vw, 7rem); }
.hero-copy { max-width: 54rem; }

.overline {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero .overline { color: #e0ebf3; }

h1, h2, .location-name {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.045em;
}

h1 {
  margin: .13em 0 .15em -.035em;
  font-size: clamp(4.6rem, 10.3vw, 10.5rem);
  line-height: .85;
  text-wrap: balance;
  text-align: start;
}

.hero-intro {
  max-width: 24rem;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: #f0f0e7;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: .78rem 1.45rem;
  border-radius: 99px;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease;
}

.pill-light { margin-top: 1.85rem; color: #142e45; background: #eff3ed; }
.pill-light:hover { background: #fff; }
.pill-light:focus-visible { outline-color: #f4f3e5; }

.locations { padding-block: clamp(4.3rem, 9vw, 7.7rem); scroll-margin-top: 1.5rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(1.55rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(3.15rem, 6.25vw, 6.75rem);
  line-height: .93;
}

.section-head > p {
  max-width: 24rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-card {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.location-card:hover { border-color: #648596; background: var(--surface-hover); box-shadow: 0 14px 35px #080f1780; }
.location-photo {
  display: block;
  aspect-ratio: 1.74;
  overflow: hidden;
  background: #14232d;
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.location-card:hover img { transform: scale(1.035); }
.location-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem .65rem;
  padding: clamp(1.05rem, 2.4vw, 1.65rem);
}

.location-body > :not(.location-plus) { grid-column: 1; }
.location-body .overline { color: var(--muted); }
.location-name { font-size: clamp(2.12rem, 3.8vw, 4rem); line-height: .97; }
.location-address { margin-top: .25rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.location-plus, .dialog-close button {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #587383;
  border-radius: 50%;
}

.location-plus {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  color: var(--ink);
  transition: background-color .22s ease, border-color .22s ease;
}

.location-card:hover .location-plus { background: var(--accent); border-color: #648596; }
.location-plus::before, .location-plus::after, .dialog-close span::before, .dialog-close span::after {
  content: "";
  position: absolute;
  width: .8rem;
  height: 1.5px;
  background: currentColor;
}
.location-plus::after { transform: rotate(90deg); }

.kitchen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(22rem, 37vw, 32rem);
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
  border-radius: .8rem;
  background: #223c4c;
  color: #f5f1e4;
  overflow: hidden;
  scroll-margin-top: 1.5rem;
}

.kitchen-photo { position: relative; min-height: 100%; }
.kitchen-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kitchen-copy { align-self: center; padding: clamp(2rem, 5.2vw, 5.25rem); }
.kitchen-copy .overline { color: #b9d9e6; }
.kitchen-copy h2 { margin-block: .15em .26em; font-size: clamp(3.1rem, 5.35vw, 5.65rem); }
.kitchen-copy > p:last-child { max-width: 26rem; line-height: 1.7; color: #dce6eb; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-block: 1.25rem 1.9rem;
  border-top: 1px solid var(--line);
}

.footer span { font-size: .875rem; color: var(--muted); }

body:has(dialog[open]) { overflow: hidden; }

.location-dialog {
  width: min(44rem, 100% - 2rem);
  max-width: none;
  max-height: min(48rem, 100dvh - 2rem);
  border: 0;
  border-radius: .95rem;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 90px #07170c66;
  overscroll-behavior: contain;
}

.location-dialog[open] { animation: arrive .22s ease-out both; }
.location-dialog::backdrop { background: #060e18d6; backdrop-filter: blur(6px); }
.dialog-inner { position: relative; }
.dialog-close { position: absolute; z-index: 1; top: .85rem; right: .85rem; }
.dialog-close button {
  color: var(--ink);
  background: var(--surface);
  border: 0;
  cursor: pointer;
}
.dialog-close button:hover { background: var(--surface-hover); }
.dialog-close button:focus-visible { outline-color: #f3efe6; }
.dialog-close span { display: grid; place-items: center; }
.dialog-close span::before { transform: rotate(45deg); }
.dialog-close span::after { transform: rotate(-45deg); }
.dialog-photo { padding-bottom: .4rem; background: #14232d; }
.dialog-photo img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.dialog-photo figcaption { padding: .35rem .9rem 0; color: var(--muted); text-align: end; font-size: .8rem; }
.dialog-photo a { text-underline-offset: .2em; }
.dialog-copy { padding: clamp(1.25rem, 3.5vw, 2.75rem); }
.dialog-copy h2 { font-size: clamp(2.65rem, 6vw, 4.5rem); margin-block: .15em .27em; }
.dialog-copy .overline, #dialog-description { color: var(--muted); }
.dialog-copy address { font-style: normal; font-weight: 700; }
#dialog-description { margin-top: .7rem; line-height: 1.65; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(1rem) scale(.989); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: hero-enter .64s cubic-bezier(.18, .7, .24, 1) both;
  }

  .hero-copy > *, .surf-control {
    animation: arrive .5s cubic-bezier(.18, .7, .24, 1) both;
  }

  .hero-copy .overline { animation-delay: .4s; }
  .hero-copy h1 { animation-delay: .5s; }
  .hero-intro { animation-delay: .63s; }
  .hero-copy .pill, .surf-control { animation-delay: .75s; }

  .hero a:focus-visible, .surf-control:focus-visible { animation: none; }

  .reveal-on-scroll [data-reveal].is-visible {
    transition-property: opacity, transform;
    transition-duration: .6s;
    transition-timing-function: cubic-bezier(.2, .68, .25, 1);
    transition-delay: var(--reveal-delay, 0s);
  }

  .reveal-on-scroll [data-reveal]:not(.is-visible, :focus-within) {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  .reveal-on-scroll [data-reveal].is-visible:focus-within { transition: none; }

  @media (min-width: 46.001rem) {
    .location[data-reveal] { --reveal-delay: .07s; }
    .location[data-reveal]:nth-child(even) { --reveal-delay: .18s; }
  }
}

@media (max-width: 46rem) {
  .page-width { width: calc(100% - 2.4rem); }
  .masthead { min-height: 4.9rem; }
  .brand { width: 3.8rem; }
  .hero { min-height: min(38rem, max(29rem, 74svh)); }
  .hero-content { padding-inline: .4rem; }
  .hero-shade {
    background: linear-gradient(105deg, #091b31c9, #091b3193 55%, #091b3130),
                linear-gradient(0deg, #091b3147, transparent 70%);
  }
  h1 { font-size: clamp(4.65rem, 13.5vw, 7rem); }
  .section-head { align-items: start; flex-direction: column; }
  .location-grid { grid-template-columns: 1fr; }
  .location-photo { aspect-ratio: 1.8; }
  .kitchen { grid-template-columns: 1fr; }
  .kitchen-photo { aspect-ratio: 1.46; }
}

@media (max-width: 25rem) {
  h1 { max-width: 6ch; }
  .masthead nav { gap: .65rem; }
  .nav-location { padding-inline: .75rem; }
  .footer > span { max-width: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
