/* Layout: white menu-card paper with hand-drawn navy frames (as on their printed menu);
   gold only for the pearl and the years; the calculator and the timeline carry the
   restaurant's own facts. */
:root {
  /* Brand tokens — change these per restaurant */
  --paper: #F8F7F3;
  --paper-2: #EFEDE6;
  --nacre: #E6E1D6;
  --navy: #1F3B66;        /* menu frame blue */
  --navy-deep: #13284A;
  --ink: #18202C;
  --muted: #5B6472;
  --gold: #B08A4E;        /* pearl in the logo */
  --gold-hi: #D3B47E;
  --on-navy: #EEF1F6;
  --on-navy-mute: #AEB9CC;
  --line: rgba(24, 32, 44, .14);
  --line-navy: rgba(238, 241, 246, .2);

  --f-display: "Marcellus", "Trajan Pro", "Times New Roman", serif;
  --f-script: "Allura", "Snell Roundhand", cursive;
  --f-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
  --h2: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.05rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.08; color: var(--navy-deep); }
h2 { font-size: var(--h2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--navy); color: #fff; padding: 8px 12px; }
.skip:focus { left: 16px; }

.top-in, .hero-in, .history-in, .calc-in, .gallery-in, .visit-in, .foot-in {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}

/* Hand-drawn frame: extras.js draws an SVG into .frame */
.frame { position: relative; }
.frame > .ink-frame { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); pointer-events: none; overflow: visible; z-index: 2; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; font: 400 1.55rem/1 var(--f-display); letter-spacing: .12em; color: var(--navy); }
.wordmark .pearl { width: .9em; height: .9em; color: var(--gold); margin-inline: .04em .1em; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 93%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: grid; gap: 3px; text-decoration: none; }
.brand .by { font: 400 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--navy); border-color: var(--gold); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--f-body); letter-spacing: .08em; border: 1px solid var(--line); padding: 10px 12px; border-radius: 2px; background: #fff; color: var(--navy); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 10px; height: 6px; transition: transform .2s; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang summary:hover { border-color: var(--navy); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); min-width: 190px; box-shadow: 0 18px 40px rgba(19,40,74,.14); }
.lang-list button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; font: 400 .95rem/1 var(--f-body); padding: 10px; }
.lang-list button span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: var(--paper); }
.lang-list button[aria-current="true"] span { color: var(--gold); }

/* ---------- Hero ---------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.hero-copy { min-width: 0; display: grid; gap: 22px; }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5rem); }
.h1-a { display: block; }
.h1-b { display: block; font: 400 clamp(3.4rem, 2rem + 5vw, 6.2rem)/1 var(--f-script); color: var(--gold); margin-top: .1em; }
.h1-b em { font-style: normal; }
.lede { max-width: 34em; font-size: 1.12rem; font-weight: 300; color: #2B3443; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); }
.btn-line { border: 1px solid var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open i { background: #3E9B5F; box-shadow: 0 0 0 4px rgba(62,155,95,.16); }
.status.is-closed i { background: #C0533A; }
.hero-media { max-width: 100%; margin: 14px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; }

/* ---------- Fish school divider ---------- */
.school { height: 70px; color: var(--navy); opacity: .85; overflow: hidden; }
.school svg { display: block; width: 100%; height: 100%; }

/* ---------- History ---------- */
.history { background: var(--paper-2); border-block: 1px solid var(--line); }
.history-in { padding-block: clamp(56px, 8vw, 110px); }
.timeline { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.timeline li { padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--gold); }
.t-year { font: 400 2.4rem/1 var(--f-display); color: var(--gold); letter-spacing: .02em; }
.t-gen { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.timeline p { font-size: .98rem; color: #2B3443; max-width: 24em; }

/* ---------- Calculator ---------- */
.calc-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.calc-media { margin: 14px; max-width: 100%; }
.calc-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.calc { display: grid; gap: 18px; min-width: 0; }
.calc > p { max-width: 34em; color: #2B3443; }
.calc-dish { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-dish legend, .calc-row label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { font: 500 .92rem/1.2 var(--f-body); background: #fff; color: var(--navy); border: 1px solid var(--line); padding: 10px 14px; cursor: pointer; border-radius: 2px; text-align: left; }
.seg button span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.seg button[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg button[aria-checked="true"] span { color: var(--on-navy-mute); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-row output { font: 400 1.3rem/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
#calc-weight { width: 100%; accent-color: var(--navy); height: 28px; }
.calc-total { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calc-total strong { font: 400 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--f-display); letter-spacing: 0; color: var(--gold); font-variant-numeric: tabular-nums; text-transform: none; }
.calc-note { font-size: .9rem; color: var(--muted); font-style: italic; }

/* ---------- Menu ---------- */
.menu { padding-block: clamp(40px, 6vw, 80px); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.menu-in { max-width: var(--wrap); margin-inline: auto; background: #fff; padding: clamp(28px, 5vw, 64px); }
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; }
.script { font: 400 clamp(3.4rem, 2.4rem + 4vw, 5.6rem)/1 var(--f-script); color: var(--navy); }
.menu-note { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin: 28px 0 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 5; background: #fff; padding-block: 10px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font: 400 1rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; padding: 12px 14px; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); border-color: var(--gold); }
.panel { padding-top: 22px; }
.panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 64px; }
.item { padding: 16px 0; border-bottom: 1px solid var(--line); break-inside: avoid; min-width: 0; }
.item-row { display: flex; align-items: baseline; gap: 10px; }
.item-name { font-size: 1.08rem; font-weight: 500; color: var(--ink); min-width: 0; }
.item-note { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #C0533A; }
.item-fill { flex: 1; min-width: 12px; }
.item-size { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.item-price { font: 400 1.2rem/1 var(--f-display); color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-with { margin-top: 4px; font-size: .94rem; font-style: italic; font-weight: 300; color: var(--muted); max-width: 38em; }
.part-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
.menu-more { margin-top: 32px; font-size: .95rem; color: var(--muted); max-width: 44em; }

/* ---------- Gallery ---------- */
.gallery-in { padding-block: clamp(40px, 6vw, 96px); }
.gallery h2 { margin-bottom: 32px; }
.grid { columns: 4 230px; column-gap: 12px; }
.shot { break-inside: avoid; margin: 0 0 12px; display: block; width: 100%; padding: 0; border: 0; background: var(--navy); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.03); }

/* ---------- Visit ---------- */
.visit { background: var(--navy); color: var(--on-navy); }
.visit h2 { color: #fff; }
.visit-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); padding-block: clamp(56px, 8vw, 110px); align-items: stretch; }
.visit-copy { display: grid; gap: 26px; align-content: start; min-width: 0; }
.info { margin: 0; display: grid; }
.info > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-navy); }
.info dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-mute); padding-top: 4px; }
.info dd { margin: 0; font-size: 1.04rem; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.mini { display: inline-flex; gap: 6px; }
.chip { font: 600 .72rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line-navy); background: none; color: var(--on-navy); padding: 8px 12px; cursor: pointer; border-radius: 2px; }
.chip:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.book-note { color: var(--on-navy-mute); font-size: .95rem; }
.visit .btn-solid { background: var(--gold-hi); color: var(--navy-deep); }
.visit .btn-solid:hover { background: #fff; }
.visit .btn-line { border-color: var(--line-navy); color: var(--on-navy); }
.visit .btn-line:hover { background: transparent; border-color: var(--on-navy); }
.social { font-size: .92rem; color: var(--on-navy-mute); }
.social a { color: var(--on-navy); }
.map { position: relative; min-height: 360px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--navy-deep); color: var(--gold-hi); padding: 6px 10px; font-size: .85rem; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: var(--on-navy-mute); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot .wordmark { color: #fff; font-size: 1.3rem; }
.foot .credit { margin-left: auto; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 20, 38, .92); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .07s; }
  .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .hero-copy > *:nth-child(4) { animation-delay: .21s; }
  .hero-copy > *:nth-child(5) { animation-delay: .28s; }
  .ink-frame path { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: draw 2.2s .2s cubic-bezier(.4,.1,.2,1) forwards; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .calc-in, .visit-in { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 4.2; max-height: 520px; }
  .calc-media { order: 2; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .items { columns: 1; }
  .map { min-height: 300px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .wordmark { font-size: 1.3rem; }
  .tabs { top: calc(58px + env(safe-area-inset-top, 0px)); }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--navy); }
  .timeline li { padding: 0 0 0 22px; }
  .timeline li::before { top: 6px; left: -6px; }
  .info > div { grid-template-columns: 1fr; gap: 4px; }
  .foot .credit { margin-left: 0; }
  .btn { flex: 1 1 auto; }
  .menu-in { padding: 24px 18px; }
}
