/* Mawimbi A2 "Ivory". Light, calm, elegant. Motion: transform and opacity only. */
:root {
  --ivory: #F5F0E6;
  --paper: #FBF8F1;
  --navy: #1B2A4A;
  --ink-2: #3A4763;      /* descriptions, 8.2:1 on ivory */
  --ink-3: #4A5571;      /* quiet labels, 6.5:1 */
  --brass: #A8875A;      /* hairlines only (decorative) */
  --brass-text: #7D6036; /* prices and brass text, 5.1:1 */
  --hair: rgba(168, 135, 90, .45);
  --glass: #E3ECE8;      /* sea-glass, image placeholders */
  --strip: 12px;
  --gut: 20px;
  --col: 640px;
  --fs: 1;               /* text size: one root variable, 1.22 in large */
  --display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --caps: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --calm: cubic-bezier(.22, 1, .36, 1);
  --sine: cubic-bezier(.37, 0, .63, 1);
  /* transitions-polish tokens for taps and UI */
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --ease-smooth-out: cubic-bezier(.22, 1, .36, 1);
  /* transitions-dev 05 menu dropdown */
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: .97;
  --dropdown-closing-scale: .99;
  --dropdown-ease: cubic-bezier(.22, 1, .36, 1);
  /* transitions-dev 21 accordion */
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(.22, 1, .36, 1);
  --wave: url(img/wave.webp);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-size="large"] { --fs: 1.32; }
@media (min-width: 700px) { :root { --strip: 22px; --gut: 32px; } }
@media (min-width: 1100px) { :root { --strip: 28px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--navy); background-color: var(--ivory);
  background-image: var(--noise);
  font-family: var(--display); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2, h3, .served, .tagline, .story, .rev-line, .ask, .part-note, .ev-line, .sub-note, .when { text-wrap: balance; }

/* pattern helpers: the wave tile is a mask, coloured by background */
.tide-track, .tide-ink, .band-ink, .cover-ink {
  background: var(--navy);
  -webkit-mask-image: var(--wave); mask-image: var(--wave);
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
}

/* ---------- pearl sheen: only the light moves, the lines stay still ---------- */
.sheen {
  position: absolute; top: 0; bottom: 0; left: -100%; width: 300%; pointer-events: none;
  background: linear-gradient(100deg, transparent 32%,
    oklch(.92 .05 215 / .24) 40%, oklch(.93 .07 265 / .32) 45%, oklch(.94 .07 330 / .3) 50%,
    oklch(.95 .07 80 / .32) 55%, oklch(.93 .06 165 / .26) 60%, transparent 67%);
  transform: translateX(-6%); /* static, faint: where it rests without scroll-driven motion */
}
@keyframes sheen { from { transform: translateX(-30%); } to { transform: translateX(30%); } }

/* ---------- column ---------- */
.page { padding-left: var(--strip); }
.cover, .sec, .part, .legend, .social, .reviews, .foot {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto;
  padding-left: var(--gut); padding-right: var(--gut);
}

/* ---------- cover ---------- */
.cover {
  position: relative; min-height: 100vh; min-height: 100svh; max-width: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 40px; padding-bottom: 160px; text-align: center; overflow: hidden;
}
.mark { position: relative; width: min(72vw, 330px); aspect-ratio: 308.9 / 57; }
.logo, .halo, .halo i { position: absolute; inset: 0; }
.logo, .halo i {
  -webkit-mask: url(../assets/logo-script.svg) center / contain no-repeat;
  mask: url(../assets/logo-script.svg) center / contain no-repeat;
}
.logo { background: var(--navy); }
/* the glow: a warm brass light painted once behind the wordmark; only its opacity breathes */
.halo { filter: blur(7px); opacity: .42; transform: scale(1.01); }
.halo i { background: #D7AE63; }
.kicker {
  margin-top: 26px; font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 11.5px);
  letter-spacing: .3em; text-transform: uppercase; color: var(--navy); padding-left: .3em;
}
.kicker .dot { color: var(--brass-text); margin: 0 .2em; }
.rule { display: block; width: 56px; height: 1px; background: var(--brass); margin-top: 22px; }
.cover-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; }
.cover-waves { position: absolute; inset: 0; }
.cover-ink {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%; overflow: clip;
  -webkit-mask-size: 100% auto; mask-size: 100% auto; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 46%; mask-position: 0 46%;
}
.cover-ink .sheen { left: -40%; width: 180%; }
.cover-ink.r { display: none; }
/* fade the waves in with a mask, not an ivory wash, so the paper texture runs unbroken */
.cover-sea { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 38%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 38%, #000 100%); }

/* ---------- sticky bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 240, 230, .97);
  border-bottom: 1px solid var(--hair);
}
.bar-in {
  display: flex; align-items: center; height: 52px; max-width: 1040px; margin: 0 auto;
  padding: 0 6px 0 4px;
}
/* text size: 16 tabs sliding (transitions-dev); both glyphs are the same width so only transform moves */
.size {
  position: relative; display: inline-flex; gap: 2px; padding: 4px; margin-left: auto; flex: none;
  border-radius: 48px; background: rgba(27, 42, 74, .05); box-shadow: inset 0 0 0 1px rgba(168, 135, 90, .3);
}
.pill {
  position: absolute; top: 4px; left: 4px; width: 32px; height: 30px; border-radius: 48px; pointer-events: none;
  background: var(--paper); box-shadow: 0 1px 2px rgba(27, 42, 74, .12), inset 0 0 0 1px rgba(168, 135, 90, .42);
  transform: translateX(0); transition: transform var(--duration-fast) var(--ease-smooth-out);
}
html[data-size="large"] .pill { transform: translateX(34px); }
.sz {
  position: relative; z-index: 1; width: 32px; height: 30px; border-radius: 48px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 500; line-height: 1;
  color: rgba(74, 85, 113, .62); transition: color var(--duration-fast) var(--ease-smooth-out);
}
.sz.s { font-size: 14px; padding-top: 1px; }
.sz.l { font-size: 20px; }
html:not([data-size="large"]) .sz.s, html[data-size="large"] .sz.l { color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .pill, .sz { transition: none !important; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }

/* ---------- parts (Dinner, Breakfast, Events) ---------- */
.sec, .part, .legend, .social, .reviews { scroll-margin-top: 40px; }
.part-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.part-head h2 { font-weight: 500; font-size: calc(var(--fs) * 44px); line-height: 1.05; letter-spacing: .005em; }
.part-kick {
  font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 10.5px); letter-spacing: .3em;
  text-transform: uppercase; color: var(--brass-text); padding-left: .3em; margin-bottom: 10px;
}
.hair { display: block; width: 28px; height: 1px; background: var(--brass); margin-top: 18px; }
.dinner { padding-top: 88px; }
.idx { display: flex; flex-wrap: wrap; justify-content: center; max-width: 420px; margin: 20px auto 0; }
.idx a {
  padding: 9px 9px; text-decoration: none; white-space: nowrap;
  font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 10.5px); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.idx a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; }
#breakfast, .events { padding-top: 96px; }
#breakfast > .part-head { padding-top: 30px; }
.part-note { margin-top: 44px; text-align: center; font-style: italic; font-size: calc(var(--fs) * 16px); color: var(--ink-3); }

/* ---------- courses ---------- */
.sec { padding-top: 64px; padding-bottom: 8px; }
.band { position: relative; height: 76px; overflow: hidden; overflow: clip; }
.band-ink {
  position: absolute; inset: 0;
  -webkit-mask-size: 100% auto; mask-size: 100% auto;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 var(--y); mask-position: 0 var(--y);
}
.band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); }
/* the reveal curtain: ivory with a wave-shaped edge, slides off to the right (transform only) */
.band::before {
  content: ''; position: absolute; z-index: 2; top: 0; bottom: 0; left: -3%; width: 140%;
  background: var(--ivory) var(--noise);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M4 0Q14 12.5 4 25T4 50T4 75T4 100H300V0Z' fill-opacity='.6'/%3E%3Cpath d='M10 0Q20 12.5 10 25T10 50T10 75T10 100H300V0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M4 0Q14 12.5 4 25T4 50T4 75T4 100H300V0Z' fill-opacity='.6'/%3E%3Cpath d='M10 0Q20 12.5 10 25T10 50T10 75T10 100H300V0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transform: translateX(101%);
}
@keyframes curtain { from { transform: translateX(0); } to { transform: translateX(101%); } }

.sec-head { text-align: center; padding-top: 30px; padding-bottom: 4px; display: flex; flex-direction: column; align-items: center; }
.sec-head h3 {
  font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 15px); letter-spacing: .34em;
  text-transform: uppercase; padding-left: .34em; line-height: 1.4;
}
.tagline { font-style: italic; font-size: calc(var(--fs) * 19px); color: var(--ink-2); margin-top: 4px; }
.sec-price { margin-top: 8px; font-family: var(--caps); font-size: calc(var(--fs) * 13px); letter-spacing: .14em; color: var(--brass-text); }
.served { margin-top: 8px; font-style: italic; font-size: calc(var(--fs) * 16px); line-height: 1.35; color: var(--ink-2); max-width: 30ch; }

.illus { background: var(--navy); margin-bottom: 18px; }
.illus-crab { width: 172px; aspect-ratio: 440 / 321; -webkit-mask: url(img/crab.webp) center / contain no-repeat; mask: url(img/crab.webp) center / contain no-repeat; }
.illus-lobster { width: 132px; aspect-ratio: 340 / 381; -webkit-mask: url(img/lobster.webp) center / contain no-repeat; mask: url(img/lobster.webp) center / contain no-repeat; }

/* ---------- dishes ---------- */
.dishes { padding-top: 26px; }
.dish { padding: 15px 4px 17px; }
.dish + .dish { border-top: 1px solid rgba(168, 135, 90, .28); }
.line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nm {
  min-width: 0; overflow: hidden; overflow: clip; padding-bottom: 1px;
  font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 12.5px); letter-spacing: .17em;
  text-transform: uppercase; line-height: 1.5; color: var(--navy);
}
.nm > span { display: block; }
.price {
  flex: none; font-family: var(--caps); font-size: calc(var(--fs) * 12.5px); letter-spacing: .08em; color: var(--brass-text);
  font-variant-numeric: lining-nums tabular-nums;
}
.desc { text-wrap: pretty; margin-top: 4px; font-style: italic; font-size: calc(var(--fs) * 17.5px); line-height: 1.34; color: var(--ink-2); padding-right: 8px; }
.note { margin-top: 6px; font-family: var(--caps); font-size: calc(var(--fs) * 10.5px); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
html[data-size="large"] .line { flex-wrap: wrap; column-gap: 14px; row-gap: 2px; }
html[data-size="large"] .nm { letter-spacing: .13em; }
html[data-size="large"] .desc { line-height: 1.4; }

/* ---------- breakfast ---------- */
.ph {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: var(--glass);
  isolation: isolate;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph::before { /* sea-glass shimmer while the photo travels (14 skeleton reveal, recoloured) */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-100%); transition: opacity 900ms ease-in-out;
}
.ph::after { /* a missing photo rests as a quiet wave panel instead of a broken image */
  content: ''; position: absolute; inset: 0; background: var(--navy); opacity: 0;
  -webkit-mask: var(--wave) 0 30% / 150% auto no-repeat; mask: var(--wave) 0 30% / 150% auto no-repeat;
}
.js .ph img { opacity: 0; transition: opacity 900ms ease-in-out; }
.js .ph.is-revealed img { opacity: 1; }
.ph.is-revealed::before, .ph.is-missing::before { opacity: 0; animation: none !important; }
.ph.is-missing img { visibility: hidden; }
.ph.is-missing::after { opacity: .07; }
@media (prefers-reduced-motion: no-preference) {
  .js .ph:not(.is-revealed):not(.is-missing)::before { animation: shimmer 6s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .js .ph img, .ph::before { transition: none !important; } }
@keyframes shimmer { to { transform: translateX(100%); } }
.hero { margin-top: 34px; }

.sub { margin-top: 56px; }
.sub-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 12.5px); letter-spacing: .3em;
  text-transform: uppercase; line-height: 1.4; text-align: center;
}
.sub-title::before, .sub-title::after { content: ''; flex: 0 1 40px; min-width: 14px; height: 1px; background: var(--brass); }
.sub-title > span { padding-left: .3em; }
.sub-note { margin-top: 6px; text-align: center; font-style: italic; font-size: calc(var(--fs) * 16.5px); color: var(--ink-2); }
.sub .dishes { padding-top: 14px; }
.wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 4px 4px; }
.wrap li {
  padding: 6px 13px 7px; border: 1px solid rgba(168, 135, 90, .42); border-radius: 48px;
  font-style: italic; font-size: calc(var(--fs) * 16.5px); line-height: 1.2; color: var(--navy); text-align: center;
}

/* 21 accordion (transitions-dev) for Breakfast Sides */
.t-acc-head {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 .3em;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.t-acc-chevron { display: inline-flex; transform: scaleY(1); transform-origin: center; transition: transform var(--acc-chevron) var(--acc-ease); }
.t-acc-chevron svg { width: 14px; height: 14px; fill: none; stroke: var(--brass-text); stroke-width: 1.5; }
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron { transform: scaleY(-1); }
.t-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--acc-collapse) var(--acc-ease); }
.t-acc[data-open="true"] .t-acc-panel { grid-template-rows: 1fr; transition: grid-template-rows var(--acc-expand) var(--acc-ease); }
.t-acc-panel-inner {
  overflow: hidden; opacity: 0; filter: blur(2px);
  transition: opacity var(--acc-collapse) var(--acc-ease), filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1; filter: blur(0);
  transition: opacity var(--acc-expand) var(--acc-ease), filter var(--acc-expand) var(--acc-ease);
}
html:not(.js) .t-acc-panel { grid-template-rows: 1fr; }
html:not(.js) .t-acc-panel-inner { opacity: 1; filter: none; }
html:not(.js) .t-acc-chevron { display: none; }
@media (prefers-reduced-motion: reduce) { .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron { transition: none !important; } }
.cols { display: grid; gap: 22px; padding: 18px 0 6px; }
.grp h4 {
  text-align: center; font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 10.5px);
  letter-spacing: .24em; text-transform: uppercase; color: var(--brass-text); padding-left: .24em;
}
.grp .wrap { padding-top: 10px; }

/* ---------- events ---------- */
.events { max-width: calc(760px + 2 * var(--gut)); }
.ev-list { display: grid; gap: 22px; margin-top: 34px; }
.ev {
  position: relative; overflow: hidden; border-radius: 18px;
  background: rgba(251, 248, 241, .7); border: 1px solid rgba(168, 135, 90, .38);
}
.ev .ph { border-radius: 0; }
.tag {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 11px 5px 12px; border-radius: 48px;
  font-family: var(--caps); font-weight: 500; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-text); background: rgba(251, 248, 241, .92); box-shadow: inset 0 0 0 1px rgba(168, 135, 90, .5);
}
.ev-body { padding: 18px 20px 22px; }
.ev h3 { font-weight: 500; font-size: calc(var(--fs) * 26px); line-height: 1.12; }
.when {
  margin-top: 8px; font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 10.5px);
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text);
}
.ev-line { margin-top: 8px; font-style: italic; font-size: calc(var(--fs) * 17.5px); line-height: 1.36; color: var(--ink-2); }

/* ---------- legend ---------- */
.legend { padding-top: 104px; padding-bottom: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.great {
  width: min(100%, 420px); aspect-ratio: 900 / 362; background: var(--navy);
  -webkit-mask: url(img/great.webp) center / contain no-repeat; mask: url(img/great.webp) center / contain no-repeat;
}
.legend-title { margin-top: 34px; font-weight: 400; line-height: 1.02; }
.legend-title .ln { display: block; }
.legend-title i { font-size: calc(var(--fs) * 21px); color: var(--ink-2); }
.legend-title b { font-weight: 500; font-size: calc(var(--fs) * 40px); letter-spacing: .01em; }
.gloss { margin-top: 16px; font-size: calc(var(--fs) * 17px); color: var(--ink-2); }
.gloss .phon { margin-right: 10px; }
.gloss .pos { font-family: var(--caps); font-size: calc(var(--fs) * 10.5px); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); }
.story { margin-top: 22px; font-size: calc(var(--fs) * 19px); line-height: 1.5; max-width: 34ch; color: var(--navy); }

/* ---------- social ---------- */
.social { padding-top: 96px; }
.social h2, .reviews h2 { font-style: italic; font-weight: 500; }
.ask { margin-top: 10px; font-style: italic; font-size: calc(var(--fs) * 18px); color: var(--ink-2); }
.soc-list {
  margin-top: 30px; padding: 4px; border-radius: 20px;
  background: rgba(251, 248, 241, .7); border: 1px solid rgba(168, 135, 90, .4);
}
.soc-list li + li { border-top: 1px solid rgba(168, 135, 90, .25); }
.soc {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 14px;
  min-height: 74px; padding: 12px 14px; border-radius: 16px; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-smooth-out);
}
.soc:hover, .soc:focus-visible { background: rgba(168, 135, 90, .1); outline: none; }
.ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(168, 135, 90, .6); }
.ic svg { width: 21px; height: 21px; }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sn { font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 11.5px); letter-spacing: .22em; text-transform: uppercase; }
.sh { font-style: italic; font-size: calc(var(--fs) * 18px); color: var(--ink-2); overflow-wrap: anywhere; }
.go { width: 20px; height: 20px; color: var(--brass-text); transition: transform var(--duration-fast) var(--ease-smooth-out); }
.soc:hover .go { transform: translate(2px, -2px); }

/* ---------- reviews ---------- */
.reviews { padding-top: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stars { display: flex; gap: 5px; }
.stars svg { width: 14px; height: 14px; fill: var(--brass); }
.reviews h2 { margin-top: 16px; font-size: calc(var(--fs) * 36px); line-height: 1.08; }
.rev-line { margin-top: 10px; font-style: italic; font-size: calc(var(--fs) * 18px); line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
.btns { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 460px; margin-top: 28px; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 18px; border-radius: 48px;
  font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 11px); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; text-align: center; transition: transform var(--duration-quick) var(--ease-smooth-out), background-color var(--duration-fast) ease;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--navy); color: var(--ivory); }
.btn.primary:hover { background: #24375F; }
.btn.ghost { color: var(--navy); box-shadow: inset 0 0 0 1px rgba(168, 135, 90, .75); }
.btn.ghost:hover { background: rgba(168, 135, 90, .1); }
@media (min-width: 520px) { .btns { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.foot { padding-top: 72px; padding-bottom: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.boat { width: 44px; aspect-ratio: 120 / 141; background: var(--navy); -webkit-mask: url(img/boat.webp) center / contain no-repeat; mask: url(img/boat.webp) center / contain no-repeat; }
.site, .tel {
  margin-top: 22px; padding: 6px 4px; font-family: var(--caps); font-weight: 500; font-size: calc(var(--fs) * 12px);
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--brass);
}
.tel { margin-top: 12px; letter-spacing: .14em; }
.pnote { margin-top: 18px; font-style: italic; font-size: calc(var(--fs) * 15px); color: var(--ink-3); }

@media (min-width: 700px) {
  .band { height: 90px; }
  .sec { padding-top: 84px; }
  .nm, .price { font-size: calc(var(--fs) * 13px); }
  .desc { font-size: calc(var(--fs) * 18.5px); }
  .bar-in { padding: 0 var(--gut); }
  .legend-title b { font-size: calc(var(--fs) * 48px); }
  .legend-title i { font-size: calc(var(--fs) * 24px); }
  .part-head h2 { font-size: calc(var(--fs) * 52px); }
  .illus-crab { width: 210px; }
  .illus-lobster { width: 160px; }
  .cover-ink { width: 50%; -webkit-mask-size: 130% auto; mask-size: 130% auto; -webkit-mask-position: 0% 46%; mask-position: 0% 46%; }
  .cover-ink.r { display: block; left: 50%; transform: scaleX(-1); } /* mirrored half: a symmetrical sea */
  .cover-sea { height: 200px; }
  .ev-list { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* ---------- motion: calm, transform and opacity only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .crest { animation: bob 7s var(--sine) infinite alternate; }
  .halo { animation: breathe 8s var(--sine) infinite alternate; }
  .mark, .kicker, .rule { animation: rise 1.4s var(--calm) both; }
  .kicker { animation-delay: .3s; }
  .rule { animation-name: grow; animation-delay: .6s; }
}
@keyframes bob { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-.5px) scaleY(1.06); } }
@keyframes breathe { from { opacity: .25; } to { opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes up-s { from { opacity: 0; transform: translateY(8px); } }
@keyframes name { from { transform: translateY(110%); } }
@keyframes wave-in { from { opacity: 0; transform: scale(.96); } }

/* scroll-driven, where the browser has it (Chrome, Edge, Safari 26): slowness comes from wide ranges */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band { view-timeline: --bnd; }
    .band::before { animation: curtain linear both; animation-timeline: --bnd; animation-range: entry 30% cover 48%; }
    .band .sheen { animation: sheen linear both; animation-timeline: --bnd; animation-range: cover 0% cover 100%; }
    .cover-ink .sheen { animation: sheen linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
    .rv { animation: up var(--calm) both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    .great { transform-origin: 30% 100%; animation: wave-in var(--calm) both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
    .nm > span { animation: name var(--calm) both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
    .dish .desc, .dish .price, .dish .note { animation: up-s var(--calm) both; animation-timeline: view(); animation-range: entry 20% cover 26%; }
    .cover-waves { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
  }
}
@keyframes drift { to { transform: translate3d(0, 160px, 0); } }

/* fallback for browsers without scroll-driven CSS: app.js adds .in once, slow time-based transitions */
.io .rv, .io .great, .io .dish .desc, .io .dish .price, .io .dish .note {
  transition: opacity 1.2s var(--calm), transform 1.3s var(--calm); transition-delay: var(--d, 0ms);
}
.io .nm > span { transition: transform 1.2s var(--calm); transition-delay: var(--d, 0ms); }
.io .band::before { transition: transform 1.4s var(--calm); }
.io .rv:not(.in), .io .great:not(.in) { opacity: 0; transform: translateY(12px); }
.io .dish:not(.in) .nm > span { transform: translateY(110%); }
.io .dish:not(.in) :is(.desc, .price, .note) { opacity: 0; transform: translateY(8px); }
.io .dish .desc, .io .dish .price, .io .dish .note { transition-delay: calc(var(--d, 0ms) + 120ms); }
.io .band:not(.in)::before { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pri, .pri::after { transition: none; }
}

/* Round 3: Tide line. The same ivory, ink and brass, within thumb's reach. */
:root {
  --strip:0px; --tide-bg:var(--paper); --tide-ink:var(--navy); --tide-soft:var(--ink-3);
  --tide-accent:var(--brass-text); --tide-line:var(--hair); --tide-display:var(--display); --tide-sans:var(--caps);
  --modal-open-dur:250ms; --modal-close-dur:150ms; --modal-scale:.96; --modal-scale-close:.96; --modal-ease:var(--ease-smooth-out);
  timeline-scope:--beg, --lobster, --sea, --land;
}
html { scroll-behavior:auto; font-size:calc(16px * var(--fs)); }
body { isolation:isolate; }
.page { position:relative; z-index:1; padding-bottom:calc(76px + env(safe-area-inset-bottom)); pointer-events:none; }
.page > * { pointer-events:auto; }
.bar { position:fixed; left:0; right:0; transition:transform var(--duration-fast) var(--ease-smooth-out); }
.bar.is-away { transform:translateY(-100%); }
.bar:focus-within { transform:none; }
.bar-in { padding:0 16px; gap:12px; }
.mini-logo { display:block; width:92px; height:44px; background:var(--navy); mask:url(../assets/logo-script.svg) center / contain no-repeat; }
.tide-entry { margin-left:auto; min-height:44px; padding:4px 12px; font:500 13px var(--caps); letter-spacing:.06em; color:var(--brass-text); }
.size { margin-left:0; padding:4px; }
.sz { width:36px; height:36px; }
.pill { width:36px; height:36px; }
html[data-size="large"] .pill { transform:translateX(38px); }
.cover { padding-top:80px; }
.cover-tide { margin-top:26px; padding:14px 25px; min-height:48px; border:1px solid var(--hair); background:var(--paper); border-radius:32px; font:500 calc(12px * var(--fs)) var(--caps); letter-spacing:.08em; }
.engraving { display:block; flex:none; width:80px; height:76px; background:var(--navy); mask:var(--drawing) center / contain no-repeat; margin:0 auto 18px; }
.sec-head .engraving { width:84px; }
.guest-line { margin:30px auto 0; padding:0 24px; text-align:center; font:italic calc(16px * var(--fs)) var(--display); color:var(--ink-3); }
/* 21 accordion: the spec explicitly permits this small 250ms height reveal. */
.allergy { display: block; }
.allergy > div { overflow: visible; }
.allergy p { font:500 calc(9.5px * var(--fs))/1.6 var(--caps); letter-spacing:.1em; text-transform:uppercase; color:var(--brass-text); padding:7px 0 2px; }
.allergy .allergy-note { font:italic calc(14px * var(--fs))/1.4 var(--display); letter-spacing:0; text-transform:none; padding:1px 0 4px; }
.wrap:has(.allergy) { align-items:flex-start; }
.t-acc-panel-inner { filter:none!important; transition:opacity var(--acc-expand) var(--acc-ease); }
html:not(.js) .allergy { grid-template-rows:1fr; }
html:not(.js) .allergy > div { opacity:1; }
html:not(.js) :is(.bottom-nav,.cover-tide,.tide-entry) { display:none; }

.bottom-nav { position:fixed; z-index:40; inset:auto 0 0; padding:5px 16px calc(5px + env(safe-area-inset-bottom)); background:var(--paper); border-top:1px solid var(--hair); }
.bottom-nav > div { display:flex; align-items:center; max-width:680px; margin:auto; gap:8px; }
.bottom-nav button { min-height:44px; padding:6px; }
.section-current { flex:1; display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left; font:500 calc(12px * var(--fs))/1.4 var(--caps); letter-spacing:.05em; }
.section-current > span:last-child { color:var(--brass-text); font-size:18px; padding:0 8px; }
.bottom-nav .prev, .bottom-nav .next { width:44px; font:32px/1 var(--display); }
.bottom-nav button:disabled { opacity:.28; cursor:default; }
.progress { position:absolute; top:0; left:0; width:100%; height:1px; background:var(--brass-text); transform:scaleX(0); transform-origin:left; }
@supports(animation-timeline:scroll()) { .progress { animation:progress linear both; animation-timeline:scroll(root); } }
@keyframes progress { to { transform:scaleX(1); } }
.td-lock :is(.bottom-nav,.bar,.scene-band) { visibility:hidden; }
/* 34 text swap soft: fixed-width slot, opacity only to honour the paint budget. */
.t-text-soft { display:inline-grid; }
.t-text-soft > span { grid-area:1/1; transition:opacity var(--duration-quick) ease-in-out; }
.t-text-soft-old { opacity:1; }
.t-text-soft-new { opacity:0; }
.is-swapping .t-text-soft-old { opacity:0; }
.is-swapping .t-text-soft-new { opacity:1; }
#sections-sheet { position:fixed; inset:auto 0 0; width:100%; max-width:560px; max-height:calc(100dvh - 64px); margin:0 auto; padding:0; border:0; background:transparent; color:var(--navy); overflow:visible; }
#sections-sheet::backdrop { background:rgba(27,42,74,.24); }
#sections-sheet .t-modal { padding:18px 20px calc(20px + env(safe-area-inset-bottom)); background:var(--paper); border:1px solid var(--hair); border-radius:22px 22px 0 0; max-height:calc(100dvh - 64px); overflow:auto; }
#sections-sheet header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
#sections-sheet h2 { font:500 calc(28px * var(--fs)) var(--display); }
.sheet-close { width:44px; height:44px; padding:8px; font:28px var(--display); }
#sections-sheet nav { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; }
#sections-sheet a { display:flex; align-items:center; gap:9px; min-height:48px; padding:6px; text-decoration:none; font:500 calc(11px * var(--fs))/1.4 var(--caps); border-bottom:1px solid var(--hair); text-wrap:balance; }
#sections-sheet a[aria-current] { color:var(--brass-text); background:rgba(168,135,90,.08); border-radius:6px; }
#sections-sheet .engraving { width:30px; height:30px; margin:0; }
.t-modal {
  transform-origin:center; transform:scale(var(--modal-scale)); opacity:0; pointer-events:none;
  transition:transform var(--modal-open-dur) var(--modal-ease),opacity var(--modal-open-dur) var(--modal-ease); will-change:transform,opacity;
}
.t-modal.is-open { transform:scale(1); opacity:1; pointer-events:auto; }
.t-modal.is-closing { transform:scale(var(--modal-scale-close)); opacity:0; pointer-events:none; transition:transform var(--modal-close-dur) var(--modal-ease),opacity var(--modal-close-dur) var(--modal-ease); }

/* Engravings sit behind the reading surface, never on top of the words. */
.scene-band { position:fixed; left:0; right:0; z-index:0; pointer-events:none; overflow:clip; }
.sky { top:56px; height:90px; }
.ocean { bottom:calc(56px + env(safe-area-inset-bottom)); height:120px; }
.scene { position:absolute; display:block; background:var(--navy); mask:var(--scene) center / contain no-repeat; opacity:0; }
.gull { --scene:url(../assets/illus/scene/gull.webp); width:44px; height:38px; left:12px; top:12px; }
.dhow { --scene:url(../assets/illus/scene/dhow.webp); width:90px; height:70px; right:20px; top:10px; }
.octopus { --scene:url(../assets/illus/scene/octopus.webp); width:90px; height:88px; right:8px; bottom:4px; }
.school { --scene:url(../assets/illus/scene/school.webp); width:104px; height:58px; left:8px; bottom:4px; }
.catch { position:absolute; bottom:0; left:8px; width:160px; height:120px; opacity:0; }
.fisherman { --scene:url(../assets/illus/scene/fisherman.webp); width:120px; height:60px; left:0; top:0; opacity:1; }
.catch svg { position:absolute; inset:0; width:160px; height:120px; fill:none; stroke:var(--navy); stroke-width:.7; }
.fishing-line { stroke-dasharray:1; stroke-dashoffset:1; }
.fish-hooked { --scene:url(../assets/illus/scene/fish-hooked.webp); width:24px; height:33px; left:104px; top:76px; opacity:1; }
/* Opaque paper under each text block preserves contrast when a scene passes behind it. */
/* On phones the scenes pass behind the words as a faint engraving (like the pattern); in wide margins they show stronger. */
:root { --scene-max:.2; }
@media(min-width:900px) { :root { --scene-max:.42; } }
#beginnings { view-timeline:--beg; } #lobster { view-timeline:--lobster; } #sea { view-timeline:--sea; } #land { view-timeline:--land; }
@keyframes glide { 0% { opacity:0; transform:translateX(0); } 12%,85% { opacity:var(--scene-max); } 100% { opacity:0; transform:translateX(180px); } }
@keyframes swim { 0% { opacity:0; transform:translate(0,0); } 12%,85% { opacity:var(--scene-max); } 100% { opacity:0; transform:translate(-150px,-12px); } }
@keyframes sail { 0% { opacity:0; transform:translateX(0); } 12%,85% { opacity:var(--scene-max); } 100% { opacity:0; transform:translateX(-180px); } }
@keyframes catch-in { 0%,100% { opacity:0; } 8%,92% { opacity:calc(var(--scene-max) + .1); } }
@keyframes hook { 0%,15% { transform:translateY(-64px); opacity:0; } 45%,55% { transform:translateY(0); opacity:1; } 90%,100% { transform:translate(-36px,-40px); opacity:0; } }
@keyframes cast { 0%,15% { stroke-dashoffset:1; transform:scaleY(.2); } 45%,55% { stroke-dashoffset:0; transform:scaleY(1); } 90%,100% { stroke-dashoffset:1; transform:rotate(45deg) scaleY(.55); } }
@supports(animation-timeline:view()) { @media(prefers-reduced-motion:no-preference) {
  .gull { animation:glide linear both; animation-timeline:--beg; }
  .octopus { animation:swim linear both; animation-timeline:--beg; }
  .dhow { animation:sail linear both; animation-timeline:--lobster; }
  .school { animation:glide linear both; animation-timeline:--land; }
  .catch { animation:catch-in linear both; animation-timeline:--sea; }
  .fish-hooked { animation:hook linear both; animation-timeline:--sea; }
  .fishing-line { animation:cast linear both; animation-timeline:--sea; transform-origin:108px 0px; }
  .scene,.catch,.fishing-line { animation-range:entry 50% exit 50%; }
} }
@media(min-width:900px) { .sky,.ocean { z-index:2; } .sky { right:calc(50% + 355px); } .ocean { left:calc(50% + 355px); } }
/* Shared panel adopts Ivory's motion and shadow budget without changing shared files. */
.td-sheet,.td.is-open .td-sheet { filter:none; box-shadow:0 4px 24px rgba(27,42,74,.12); transition-property:transform,opacity; }
.td-dots i { transition:none; }
.td-reel:nth-child(3)::before,.td-reel:nth-child(4)::before { content:''; display:block; width:32px; height:28px; margin:0 0 6px; background:var(--navy); mask:url(../assets/illus/sections/wine.webp) center/contain no-repeat; }
.td-reel:nth-child(4)::before { mask-image:url(../assets/illus/sections/dessert.webp); }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
  .gull,.octopus { opacity:var(--scene-max); transform:none!important; }
  .scene:not(.gull):not(.octopus),.catch { opacity:0!important; }
  .rv,.nm > span,.dish .desc,.dish .price,.dish .note { opacity:1!important; transform:none!important; }
}

html:not(.js) .size { display:none; }
.nm { text-wrap:balance; }
/* Every toolbar target is at least 44px, including the text-size glyphs. */
.sz,.pill { width:44px; height:44px; }
html[data-size="large"] .pill { transform:translateX(46px); }
.bar-in { height:52px; }
.sky { top:56px; }
#sections-sheet a span:last-child { min-width:0; }

html.sheet-lock { overflow:hidden; }
#beginnings,#lobster,#sea,#land { min-height:100svh; }
.td-reel:nth-child(3)::before,.td-reel:nth-child(4)::before { position:absolute; right:8px; top:7px; width:26px; height:24px; margin:0; }
.td-rl { max-width:calc(100% - 76px); padding:4px; text-align:center; }
.td-line { filter:none!important; transition-property:opacity,transform; }
.td-btn,.td-opt,.soc,.sz { transition-property:transform,opacity; }
@media(prefers-reduced-motion:reduce) { .great { opacity:1!important; transform:none!important; } .band::before { transform:translateX(101%)!important; } }

.kicker { text-wrap:balance; } .kicker > span { display:inline-block; white-space:nowrap; } .kicker .dot { font-style:normal; }
/* Dion 16 Oct: the wave bands were too strong and too fast. Lighter ink, soft edges, a slow fade
   instead of the wipe, and the light and the cover sea barely move. */
.band { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.band-ink { opacity: .32; }
.band::before { display: none; }
.band::after { opacity: .45; }
.band .sheen { opacity: .5; }
@keyframes band-in { from { opacity: 0; transform: translateX(-34px); } to { opacity: .32; transform: none; } }
@keyframes sheen { from { transform: translateX(-10%); } to { transform: translateX(10%); } }
@keyframes drift { to { transform: translate3d(0, 50px, 0); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-.3px) scaleY(1.02); } }
.crest { animation-duration: 12s !important; }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .band-ink { animation: band-in linear both; animation-timeline: --bnd; animation-range: entry 0% cover 70%; }
} }
.io .band-ink { opacity: 0; transition: opacity 2.4s var(--calm); }
.io .band.in .band-ink { opacity: .32; }
.io .band-ink { transform: translateX(-34px); transition: opacity 2.6s var(--calm), transform 2.6s var(--calm); }
.io .band.in .band-ink { transform: none; }

/* Keep the pastry allergen rows readable when scripts are disabled. */
html:not(.js) .wrap:has(.allergy) { animation: none; opacity: 1; transform: none; }
