/* Maré Baixa – concept site
   Sea green, big italic serif, wide colour fields. The headline runs into the sky of the hero photo,
   and a "today" band shows opening status and the low tide. */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --sand: #F7F5EF;
  --green: #2F6F68;
  --lagoon: #173F3C;
  --straw: #E8CF7A;
  --foam: #DCEBE6;
  --text-c: #1E2B2A;
  --muted: #566664;
  --line: #D5DAD3;
  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 1.25rem;
  --max: 82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--text-c);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.65;
}
img, video { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, dl, dd, figure, table, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lagoon); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 3rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

.concept-bar {
  background: var(--lagoon); color: #fff;
  font-size: .8125rem; line-height: 1.4; text-align: center; padding: .5rem 1rem;
}
.concept-bar a { color: #fff; }

/* Top */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto; padding: 1rem var(--pad);
}
.wordmark {
  font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.875rem; line-height: 1;
  text-decoration: none; color: var(--lagoon);
}
.top-nav { display: none; gap: 2.25rem; margin-left: auto; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

.btn {
  display: inline-block; text-decoration: none; color: var(--lagoon); background: var(--straw);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2; padding: 1rem 2rem; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--lagoon); color: #fff; }
.btn-small { font-size: .9375rem; padding: .8125rem 1.25rem; }
.link { color: var(--green); font-weight: 600; text-underline-offset: .35em; }
.link:hover { color: var(--lagoon); }

/* Hero: the headline overlaps the sky of the photo */
.hero { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--pad) 0; display: grid; }
h1 {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(3.25rem, 15.5vw, 5.5rem); line-height: .92; letter-spacing: -.02em;
  color: var(--lagoon); position: relative; z-index: 1; text-wrap: balance;
}
.hero-side { margin-top: 1.5rem; position: relative; z-index: 1; }
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 26rem; margin-bottom: 1.5rem; }
.hero-photo {
  width: calc(100% + 2 * var(--pad)); max-width: none; margin: 2rem calc(-1 * var(--pad)) 0;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 100%;
}

/* Today band */
.today { position: relative; background: var(--lagoon); color: #fff; padding: 2.25rem var(--pad) 2.5rem; }
.wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 1.75rem; margin-bottom: -1px; overflow: hidden; }
.wave svg { display: block; width: 200%; height: 100%; animation: tide 16s linear infinite; }
.wave path { fill: var(--lagoon); }
@keyframes tide { to { transform: translateX(-50%); } }
.today-list { display: grid; gap: 1.5rem; max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; }
.today dt { font-size: .9375rem; color: var(--straw); font-weight: 600; margin-bottom: .125rem; }
.today dd { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.75rem; line-height: 1.15; }

/* Story */
.story { max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--pad); display: grid; gap: 2rem; }
h2 {
  font-family: var(--display); font-style: italic; font-weight: 500; color: var(--green);
  font-size: clamp(2.75rem, 9vw, 5rem); line-height: .98; letter-spacing: -.015em; margin-bottom: 1.5rem;
  text-wrap: balance;
}
.story-text p { font-size: 1.1875rem; line-height: 1.65; max-width: 32rem; }
.story-text p + p { margin-top: 1.125rem; }
.story-big img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-small { width: 58%; margin: -4rem 0 0 auto; position: relative; }
.story-small img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: .5rem solid var(--sand); }

/* Menu on a green field */
.menu { background: #23574F; color: #fff; padding: 4.5rem var(--pad); }
.menu-head, .menu-cols { max-width: calc(var(--max) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.menu h2 { color: var(--straw); font-size: clamp(4rem, 16vw, 9rem); line-height: .85; margin-bottom: 1rem; }
.menu-head p { color: var(--foam); }
.menu-cols { display: grid; gap: 0 4.5rem; margin-top: 1.5rem; }
.menu h3 {
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.875rem; line-height: 1.15;
  margin: 2.5rem 0 .5rem; padding-bottom: .625rem; border-bottom: 2px solid var(--straw);
}
.menu h3 em { font-size: 1.25rem; color: var(--foam); margin-left: .25rem; }
.dishes li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.dish em { font-family: var(--display); font-size: 1.1875rem; color: var(--foam); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--straw); font-weight: 700; }

/* Photo strip */
.strip { display: grid; grid-template-columns: 1fr 1fr; }
.strip img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.strip img:first-child { grid-column: 1 / 3; aspect-ratio: 3 / 2; }

/* Visit */
.visit { display: grid; gap: 3.5rem; max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--pad); }
.visit h2 { font-size: 2.75rem; margin-bottom: 1rem; }
.visit p + p { margin-top: .75rem; }
.visit address { margin-bottom: .75rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--green); }
.small { font-size: .9375rem; color: var(--muted); margin-top: 1rem; }
.takeaway-title { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.75rem; line-height: 1.2; color: var(--lagoon); margin: 2.25rem 0 .25rem; }
.takeaway { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .5rem; }
.takeaway a { display: inline-block; padding: .625rem 0; }

/* Closing */
.closing { position: relative; display: grid; }
.closing { overflow: hidden; background: var(--lagoon); }
.closing img, .closing video { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 20rem; aspect-ratio: 4 / 3; object-fit: cover; }
.closing::after { content: ""; grid-area: 1 / 1; background: rgba(15, 50, 48, .28); }
.closing-toggle {
  grid-area: 1 / 1; align-self: end; justify-self: end; margin: 0 var(--pad) 1.25rem; z-index: 2;
  font: inherit; font-size: .8125rem; color: #fff; background: rgba(15, 50, 48, .45); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: .5rem .875rem; min-height: 2.25rem;
}
.closing-toggle[hidden] { display: none; }
.closing p {
  grid-area: 1 / 1; z-index: 1; align-self: center; justify-self: center; text-align: center; padding: 0 var(--pad);
  font-family: var(--display); font-style: italic; font-weight: 500; color: #fff;
  font-size: clamp(3rem, 12vw, 8rem); line-height: .95; text-shadow: 0 2px 30px rgba(15, 50, 48, .55);
}

/* Footer */
.foot { background: var(--lagoon); color: var(--foam); text-align: center; padding: 3rem var(--pad) 3.5rem; }
.foot-name { font-family: var(--display); font-style: italic; font-size: 2.5rem; line-height: 1.1; color: #fff; margin-bottom: .5rem; }
.foot a { color: #fff; }

@media (min-width: 640px) {
  .today-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .strip { grid-template-columns: 1.4fr 1fr 1fr; }
  .strip img, .strip img:first-child { grid-column: auto; aspect-ratio: auto; height: 22rem; }
}

@media (min-width: 900px) {
  :root { --pad: 3rem; }
  .top { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .wordmark { font-size: 2.25rem; }
  .top-nav { display: flex; }

  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 0; padding-top: 2.5rem; }
  h1 { grid-column: 1 / 3; grid-row: 1; font-size: clamp(5rem, 9.6vw, 9.5rem); max-width: 9.5em; padding-top: 2rem; }
  .hero-side { grid-column: 1; grid-row: 2; align-self: end; padding-bottom: 5rem; margin-top: 3rem; }
  .lede { font-size: 1.3125rem; }
  .hero-photo {
    grid-column: 2; grid-row: 1 / 3; width: calc(100% + var(--pad)); margin: 0 calc(-1 * var(--pad)) 0 0;
    height: 100%; min-height: 44rem; aspect-ratio: auto; object-position: 50% 60%;
  }
  .wave { height: 2.5rem; }
  .today { padding-top: 2.5rem; padding-bottom: 3rem; }
  .today dd { font-size: 2.125rem; }

  .story { grid-template-columns: 5fr 7fr; column-gap: 5rem; padding-top: 8rem; padding-bottom: 8rem; align-items: start; }
  .story-text { grid-column: 1; grid-row: 1; padding-top: 2rem; }
  .story-big { grid-column: 2; grid-row: 1; }
  .story-small { grid-column: 2; grid-row: 2; width: 38%; margin: -9rem 0 0 -5rem; }
  .story-small img { border-width: .75rem; }

  .menu { padding-top: 6.5rem; padding-bottom: 7.5rem; }
  .menu-cols { grid-template-columns: 1fr 1fr; }
  .strip img, .strip img:first-child { height: 30rem; }
  .visit { grid-template-columns: 1.1fr 1fr 1fr; gap: 4.5rem; padding-top: 7rem; padding-bottom: 7rem; }
  .closing img, .closing video { aspect-ratio: 21 / 9; }
}

/* Concept bar with the button back to Webcrops. Stays at the top of the screen while scrolling. */
html { scroll-padding-top: 3.5rem; }
.concept-bar {
  --bar-bg: var(--lagoon); --bar-fg: #fff;
  position: sticky; top: 0; z-index: 50; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: .375rem 1rem;
  background: var(--bar-bg); color: var(--bar-fg); text-align: left; padding: .4375rem 1rem;
}
.concept-bar a { color: inherit; }
.concept-back {
  flex: none; display: inline-flex; align-items: center; gap: .375rem;
  font-weight: 700; font-size: .8125rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--bar-fg); border-radius: 999px; padding: .5rem .875rem; min-height: 2rem;
  transition: background-color .15s ease, color .15s ease;
}
.concept-back:hover { background: var(--bar-fg); color: var(--bar-bg) !important; }
.concept-bar :focus-visible { outline: 2px solid var(--bar-fg); outline-offset: 2px; }
@media (max-width: 479px) {
  .concept-bar { justify-content: flex-start; font-size: .75rem; }
}

/* Smart sticky header (assets/js/nav.js): slides away on the way down, comes back on the way up.
   It sits just under the concept bar, and gets a background while it is stuck. */
.top[data-smart-nav] {
  position: sticky; top: var(--bar-h, 2.875rem); z-index: 45; max-width: none; margin: 0; padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.top.is-hidden { transform: translateY(-101%); }
.top.is-stuck { background: rgba(247, 245, 239, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

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