/* Guillemot · Maison de Mer
   A dark, candlelit frame with cream editorial panels, set in Cormorant Garamond and Manrope.
   Layout after the "Veloria Eve" restaurant concept the owner shared: a full-bleed hero with a
   centred wordmark, a plate breaking out of its lower edge, then a two-column spread of cream
   and night panels. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/manrope-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --page: #1d1f21;          /* the charcoal around and between the panels */
  --night: #15120f;         /* candlelit panels */
  --night-2: #221c16;
  --cream: #f3ede3;
  --cream-2: #ebe3d6;
  --rule: #d8ccba;
  --ink: #1f1a15;
  --ink-2: #5d544a;
  --on-night: #f4eee5;
  --on-night-2: #bcb1a3;
  --champagne: #d9c7a4;
  --champagne-hi: #e7d8bc;
  --champagne-ink: #211b13;
  --line-night: rgba(244, 238, 229, 0.14);

  --radius: 22px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--on-night);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 16px; border-radius: 4px;
  background: var(--champagne); color: var(--champagne-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.panel--cream :focus-visible, .cuisine :focus-visible { outline-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 26px;
  border: 1px solid var(--champagne); border-radius: 3px;
  background: var(--champagne); color: var(--champagne-ink);
  font: 600 13px/1 var(--sans); letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--champagne-hi); border-color: var(--champagne-hi); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 10px 18px; font-size: 12.5px; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- The frame ---------- */
.frame {
  max-width: 1320px;
  margin: 0 auto;
  background: var(--page);
  overflow-x: clip; /* the plate may bleed off a phone's edge without making the page scroll sideways */
}
@media (min-width: 1024px) {
  .frame { margin: 28px auto 40px; width: calc(100% - 56px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 3;
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: 100vh; min-height: 100svh;
  padding: 26px var(--gutter) 34px;
  color: var(--on-night);
}
@media (min-width: 1024px) {
  .hero { min-height: clamp(640px, 88vh, 860px); padding-top: 30px; }
}
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--night);
}
@media (min-width: 1024px) {
  .hero__media { border-radius: var(--radius) var(--radius) 0 0; }
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__slide.is-on { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero__slide.is-on img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(44% 30% at 50% 45%, rgba(12, 9, 7, 0.46) 0%, rgba(12, 9, 7, 0) 100%),
    linear-gradient(180deg, rgba(12, 9, 7, 0.72) 0%, rgba(12, 9, 7, 0.28) 24%, rgba(12, 9, 7, 0.38) 58%, rgba(12, 9, 7, 0.9) 100%),
    radial-gradient(90% 70% at 50% 42%, rgba(12, 9, 7, 0) 0%, rgba(12, 9, 7, 0.35) 100%);
}

/* Navigation: links on the left, the name in the middle, the reservation on the right */
.nav {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-night);
}
.nav__links { display: none; }
.nav__cta { justify-self: end; }
.nav__short { display: none; }
.nav__toggle {
  justify-self: start;
  width: 44px; height: 44px; margin-left: -10px;
  display: grid; place-items: center;
  border: 0; background: none; cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .nav__cta { min-height: 40px; padding: 8px 14px; }
  .nav__long { display: none; }
  .nav__short { display: inline; }
  .nav.is-open .nav__links {
    display: grid; gap: 4px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 18px 20px;
    border: 1px solid var(--line-night); border-radius: 12px;
    background: rgba(21, 18, 15, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open .nav__links a { display: block; padding: 10px 4px; font-size: 16px; }
}
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
}
.nav__links a {
  font: 500 13.5px/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; color: var(--on-night);
  opacity: 0.86;
  transition: opacity 0.3s;
}
.nav__links a:hover { opacity: 1; }

.wordmark {
  display: grid; justify-items: center; gap: 6px;
  text-decoration: none; color: inherit;
}
.wordmark__name {
  font: 500 clamp(24px, 2.6vw, 34px)/1 var(--serif);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-left: 0.16em; /* balance the tracking after the last letter */
}
.wordmark__sub {
  font: 600 11px/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase;
  padding-left: 0.34em;
  color: var(--on-night-2);
}

.hero__copy {
  position: relative; z-index: 1;
  align-self: center;
  display: grid; justify-items: center; gap: 22px;
  padding: clamp(48px, 9vh, 90px) 0 clamp(120px, 18vh, 170px);
  text-align: center;
}
.hero__title {
  font: 500 clamp(46px, 6.4vw, 88px)/1.02 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__sub {
  font: 500 clamp(15px, 1.35vw, 17px)/1.5 var(--sans);
  letter-spacing: 0.02em; color: #e9e1d5;
  margin-top: -6px;
}

.hero__dots {
  position: relative; z-index: 2;
  display: flex; gap: 10px;
}
.dot {
  width: 40px; height: 24px; padding: 11px 0;
  border: 0; background: none; cursor: pointer;
}
.dot i {
  position: relative; display: block; height: 2px;
  background: rgba(244, 238, 229, 0.3); overflow: hidden;
}
.dot i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--on-night);
  transform: scaleX(0); transform-origin: left;
}
.dot.is-on i::after { transform: scaleX(1); }
.dot.is-timed i::after { animation: dot-fill var(--slide-ms, 7000ms) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* The signature plate breaks out of the hero into the page below. On a phone it hangs off
   the right edge, and the hero keeps enough room at its foot for the dots to sit above it. */
.hero { padding-bottom: calc(44vw + 18px); }
.plate {
  position: absolute; z-index: 4;
  right: -10vw; bottom: -22vw;
  width: 66vw; max-width: 460px;
  aspect-ratio: 1;
  pointer-events: none;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}
.plate img {
  width: 100%; height: 100%;
  transform: rotate(var(--turn, 0deg));
  will-change: transform;
}
@media (min-width: 700px) {
  .hero { padding-bottom: 34px; }
  .plate { right: 3vw; bottom: -150px; width: 46vw; }
  .dot { width: 58px; }
}
@media (min-width: 1024px) {
  .plate { right: 2.5%; bottom: -176px; width: 36%; }
}

/* ---------- The spread below the hero ---------- */
.lower {
  position: relative;
  display: grid; gap: 0;
}
@media (min-width: 1024px) {
  .lower {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    grid-template-areas:
      "craft cuisine"
      "tide cuisine"
      "reserve visit";
    column-gap: 26px;
  }
  .craft { grid-area: craft; }
  .cuisine { grid-area: cuisine; }
  .tide { grid-area: tide; }
  .reserve { grid-area: reserve; }
  .visit { grid-area: visit; }
}

.panel { padding: clamp(56px, 7vw, 84px) var(--gutter); }
.panel--cream { background: var(--cream); color: var(--ink); color-scheme: light; }
.panel--night { background: var(--night); color: var(--on-night); }
@media (min-width: 1024px) {
  .panel { padding: 64px clamp(40px, 4.4vw, 64px); }
}

.title {
  font: 500 clamp(31px, 3.1vw, 42px)/1.1 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.title--center { text-align: center; }
.title--light { color: var(--on-night); }
.lede {
  max-width: 34em; margin-top: 16px;
  color: var(--ink-2); font-size: 15.5px;
}
.lede--center { margin-inline: auto; text-align: center; }

/* The mosaic: one tall plate, the chef above, the pass below */
.craft { padding-top: calc(22vw + 48px); text-align: center; }
.craft .title, .craft .lede { margin-inline: auto; }
@media (min-width: 700px) { .craft { padding-top: 150px; } }
@media (min-width: 1024px) { .craft { padding-top: 72px; } }
.mosaic {
  display: grid; gap: 12px;
  grid-template-columns: 1.13fr 1fr;
  grid-template-rows: 1fr 1fr;
  margin-top: 36px;
  text-align: left;
}
.mosaic figure { overflow: hidden; border-radius: 4px; background: var(--cream-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic__a { grid-row: 1 / 3; aspect-ratio: 4 / 5.2; }
.mosaic__b, .mosaic__c { min-height: 0; }

/* The menu card: the catch in portraits, the sweet course in landscape */
.cuisine { background: var(--page); }
.cuisine__card {
  height: 100%;
  padding: clamp(56px, 7vw, 84px) var(--gutter);
  background: var(--cream); color: var(--ink); color-scheme: light;
}
@media (min-width: 1024px) {
  .cuisine { padding-top: 0; }
  .cuisine__card {
    height: auto;
    margin-top: 0;
    padding: 250px clamp(34px, 3.6vw, 52px) 56px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
}
.rule { height: 1px; margin: 34px 0 30px; border: 0; background: var(--rule); }
.label {
  margin: 0 0 14px;
  font: 600 12.5px/1.2 var(--sans); letter-spacing: 0.02em;
  color: var(--ink);
}
.shots { display: grid; gap: 12px; }
.shots + .label { margin-top: 34px; }
.shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--cream-2); }
.shots--3 figure { aspect-ratio: 3 / 4; }
.shots--2 figure { aspect-ratio: 11 / 8; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shots figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 12px 11px;
  background: linear-gradient(180deg, rgba(12, 9, 7, 0) 0%, rgba(12, 9, 7, 0.82) 100%);
  color: #efe7dc; font-size: 12px; line-height: 1.35;
}
.shots figcaption span {
  display: block; margin-bottom: 2px;
  font: 500 17px/1.15 var(--serif); color: #fff8ee;
}
.shots figure:hover img { transform: scale(1.05); }
/* On a phone the catch becomes a row you swipe, and the sweet course stacks */
@media (max-width: 559.98px) {
  .shots--3 {
    display: flex; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shots--3::-webkit-scrollbar { display: none; }
  .shots--3 li { flex: 0 0 62%; scroll-snap-align: start; }
  .shots--2 { grid-template-columns: 1fr; }
}

/* The tasting menu, on the night panel */
.tide { display: grid; gap: 30px; align-items: center; }
.tide__photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; max-height: 560px; }
.tide__photo img { width: 100%; height: 100%; object-fit: cover; }
.tide__copy { display: grid; gap: 16px; justify-items: start; }
.tide__copy p { color: var(--on-night-2); font-size: 15px; max-width: 30em; }
.tide__copy .tide__price { color: var(--on-night); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; }
@media (min-width: 700px) {
  .tide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 3vw, 44px); }
  .tide__photo { aspect-ratio: 3 / 4; }
}
@media (min-width: 1024px) {
  .tide { padding-block: 52px; }
}
.courses { width: 100%; border-top: 1px solid var(--line-night); border-bottom: 1px solid var(--line-night); }
.courses summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; cursor: pointer; list-style: none;
  font: 600 12.5px/1.3 var(--sans); letter-spacing: 0.04em; color: var(--on-night);
}
.courses summary::-webkit-details-marker { display: none; }
.courses summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.35s var(--ease);
}
.courses[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.courses ol { counter-reset: course; display: grid; gap: 10px; padding: 4px 0 16px; }
.courses li {
  counter-increment: course;
  display: grid; grid-template-columns: 26px 1fr;
  font-size: 13.5px; line-height: 1.45; color: var(--on-night-2);
}
.courses li::before {
  content: counter(course, upper-roman);
  grid-row: 1 / 3;
  font: 500 14px/1.45 var(--serif); color: var(--champagne);
}
.courses li span { font: 500 17px/1.3 var(--serif); color: var(--on-night); }

/* Reservations */
.reserve { text-align: left; }
.reserve .title { margin-bottom: 0; }
.form { display: grid; gap: 18px; margin-top: 34px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) {
  .form__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: grid; gap: 7px; align-content: start; }
.field label { font: 600 12.5px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink); }
.field__opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfc2ae; border-radius: 3px;
  background: #fbf8f2; color: var(--ink);
  font-size: 15px; line-height: 1.3;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d544a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9b9083; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 26, 21, 0.12);
}
.field.is-invalid input, .field.is-invalid select { border-color: #9b2c1f; }
.field__error { min-height: 0; font-size: 12.5px; line-height: 1.3; color: #9b2c1f; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form__note { font-size: 12.5px; color: var(--ink-2); }

.done { margin-top: 34px; padding: 30px; border: 1px solid var(--rule); border-radius: 6px; background: #fbf8f2; text-align: center; }
.done:focus { outline: none; }
.done__kicker { font: 600 12px/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
.done__title { margin-top: 12px; font: 500 30px/1.15 var(--serif); }
.done__text { margin: 10px auto 22px; max-width: 30em; color: var(--ink-2); font-size: 15px; }

/* Visit: on the desktop it sits on the page itself, the way the reference signs off */
.visit { display: grid; align-content: start; gap: 30px; }
.visit__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.seal { width: 92px; height: 92px; flex: none; color: var(--champagne); }
.seal__ring { font: 600 10px/1 var(--sans); letter-spacing: 0.3em; fill: currentColor; }
.seal__g { font: 500 34px/1 var(--serif); fill: currentColor; }
@media (min-width: 1024px) {
  .visit { background: transparent; align-content: center; padding-block: 56px; }
}
.visit__list { display: grid; gap: 22px; }
@media (min-width: 560px) { .visit__list { grid-template-columns: 1fr 1fr; gap: 26px 30px; } }
.visit__list dt {
  margin-bottom: 6px;
  font: 600 11.5px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--champagne);
}
.visit__list dd { font-size: 15px; line-height: 1.6; color: var(--on-night-2); }
.visit__list a { text-decoration: none; border-bottom: 1px solid rgba(217, 199, 164, 0.4); color: var(--on-night); }
.visit__list a:hover { border-bottom-color: var(--champagne); }

/* Footer */
.foot {
  display: grid; justify-items: center; gap: 16px;
  padding: 46px var(--gutter) 40px;
  text-align: center; color: var(--on-night-2);
}
.wordmark--small .wordmark__name { font-size: 24px; color: var(--on-night); }
.foot__small { font-size: 12.5px; max-width: 46em; }
.foot__small a { color: var(--on-night); text-decoration-color: rgba(244, 238, 229, 0.35); text-underline-offset: 3px; }

/* The slim bar that follows the hero */
.topbar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(21, 18, 15, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-night);
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease);
}
.topbar.is-on { transform: none; }
.topbar__mark {
  font: 500 20px/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--on-night);
}

/* Entrances: everything is visible without script; with it, sections rise into place once */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .hero__slide img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
