/* SALTMOOR — shared shell. Palette "Tar & Tide", radius 0 everywhere. */
:root {
  --gull: #EFF1EC;
  --tar: #171B19;
  --tar-60: #4A534E;
  --coral: #D9481F;
  --coral-deep: #B03512;
  --purslane: #6B7A6C;
  --purslane-10: rgba(107, 122, 108, 0.10);
  --shellgrit: #D2D6CE;
  --disp: "Cabinet Grotesk", "Satoshi", sans-serif;
  --body: "Satoshi", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --shadow: 0 1px 2px rgba(23, 27, 25, 0.08);
  --shadow-lift: 0 6px 18px rgba(23, 27, 25, 0.12);
  --spring: cubic-bezier(0.34, 1.3, 0.4, 1);
  --gut: max(clamp(20px, 4vw, 56px), calc((100vw - 1280px) / 2));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--gull); color: var(--tar);
  font-family: var(--body); font-size: clamp(17px, 1.1vw, 18px); line-height: 1.55;
  font-weight: 400;
}
::selection { background: var(--coral); color: var(--gull); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, li a { color: var(--tar); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
p a:hover, li a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--disp); font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; text-wrap: pretty; padding-bottom: 0.08em; }
h1 { font-size: clamp(44px, 6.5vw, 88px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tar-60); }
.muted { color: var(--tar-60); }

.skip {
  position: absolute; left: var(--gut); top: -48px; z-index: 90;
  background: var(--tar); color: var(--gull); padding: 10px 16px;
  font-weight: 500; text-decoration: none; transition: top 0.15s ease-out;
}
.skip:focus-visible { top: 12px; }

/* ---------- buttons (one label per intent, radius 0) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; white-space: nowrap;
  font-family: var(--body); font-weight: 500; font-size: 17px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform 0.14s ease-out, background-color 0.14s ease-out, color 0.14s ease-out, border-color 0.14s ease-out;
}
.btn:active { transform: scale(0.98) translateY(1px); }
.btn-coral { background: var(--coral); color: var(--gull); }
.btn-coral > span { position: relative; z-index: 1; }
.btn-coral::before {
  content: ""; position: absolute; inset: 0; background: var(--coral-deep);
  transform: translateX(-101%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-coral::before { transition: transform 0.28s ease-out; }
}
.btn-coral:hover::before { transform: translateX(0); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: var(--tar); color: var(--gull); border-color: var(--tar); }
.on-tar .btn-ghost:hover { background: var(--gull); color: var(--tar); border-color: var(--gull); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--gull) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--tar);
  border-bottom: 1px solid var(--shellgrit);
  transition: background-color 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out;
}
.nav.over-hero { background: transparent; color: var(--gull); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav .wordmark {
  font-family: var(--disp); font-weight: 500; font-size: 16px; letter-spacing: 0.34em;
  text-transform: uppercase; text-decoration: none; padding-right: 0.34em;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav-links a.navlink {
  font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent; padding: 4px 0;
  transition: border-color 0.14s ease-out;
}
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"] { border-bottom-color: var(--coral); }
.nav .btn { min-height: 40px; padding: 0 22px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav .btn-coral { background: transparent; color: inherit; border-color: currentColor; }
.nav .btn-coral::before { background: var(--coral); }
.nav .btn-coral:hover { color: var(--gull); border-color: var(--coral); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 0.2s ease-out, opacity 0.2s ease-out; }
.sheet {
  position: fixed; inset: 0; z-index: 55; background: var(--gull); color: var(--tar);
  display: none; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gut);
}
.sheet.open { display: flex; }
.sheet a {
  font-family: var(--disp); font-weight: 800; font-size: clamp(36px, 9vw, 56px);
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--shellgrit);
}
.sheet a:hover { color: var(--coral); }
@media (max-width: 720px) {
  .nav-links .navlink { display: none; }
  .nav-toggle { display: flex; }
}
body.sheet-locked { overflow: hidden; }

/* ---------- mobile book bar ---------- */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(239, 241, 236, 0.94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--shellgrit);
  transform: translateY(110%);
}
@media (prefers-reduced-motion: no-preference) {
  .bookbar { transition: transform 0.3s ease-out; }
}
.bookbar.show { transform: none; }
.bookbar .btn { width: 100%; min-height: 48px; }
@media (max-width: 720px) {
  .bookbar { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------- scroll reveal (one per section, stagger <=3) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease-out, transform 0.6s var(--spring); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
}

/* ---------- waterline (signature) ---------- */
.waterline { display: block; height: 1px; background: var(--coral); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .waterline.draw { transform: scaleX(0); }
  .waterline.draw.in { transform: scaleX(1); transition: transform 0.4s ease-out; }
}

/* ---------- image slots ---------- */
image-slot { width: 100%; height: 100%; }
image-slot::part(frame) { background: var(--purslane-10); border-radius: 0; }
image-slot::part(ring) { border-radius: 0; border-color: rgba(74, 83, 78, 0.3); }
image-slot::part(empty) { color: var(--tar-60); font-family: var(--mono); }
.on-tar image-slot::part(empty) { color: rgba(239, 241, 236, 0.55); }
.on-tar image-slot::part(frame) { background: rgba(239, 241, 236, 0.06); }
.on-tar image-slot::part(ring) { border-color: rgba(239, 241, 236, 0.25); }

/* ---------- booking module ---------- */
.book-panel { background: var(--gull); border: 1px solid var(--tar); padding: clamp(22px, 3vw, 34px); position: relative; }
.book-panel h3 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--shellgrit); border-radius: 0;
  font-family: var(--body); font-size: 16.5px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--tar) 50%), linear-gradient(135deg, var(--tar) 50%, transparent 51%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: var(--coral); }
.field .err { display: none; color: var(--coral); font-size: 14.5px; font-weight: 500; margin-top: 5px; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select { border-color: var(--coral); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--shellgrit); background: #fff; width: max-content; }
.stepper button {
  width: 48px; min-height: 48px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.12s ease-out, transform 0.12s ease-out;
}
.stepper button:hover { background: var(--purslane-10); }
.stepper button:active { transform: scale(0.94); }
.stepper output { display: flex; align-items: center; justify-content: center; min-width: 64px; font-family: var(--mono); font-size: 18px; border-left: 1px solid var(--shellgrit); border-right: 1px solid var(--shellgrit); }
.nine-plus { display: none; margin-top: 8px; font-size: 15px; color: var(--tar-60); }
.nine-plus.show { display: block; }
.nine-plus a { white-space: nowrap; }
.book-panel .btn { width: 100%; margin-top: 6px; }
.book-panel .btn[disabled] { cursor: default; opacity: 0.85; }
.net-err { display: none; color: var(--coral); font-weight: 500; font-size: 15px; margin-top: 10px; }

.book-confirm { display: none; position: relative; overflow: hidden; border: 1px solid var(--tar); background: var(--gull); padding: clamp(26px, 3vw, 38px); }
.book-confirm.show { display: block; }
.book-confirm .rise {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: rgba(217, 72, 31, 0.07); border-top: 1px solid var(--coral);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .book-confirm.show .rise { animation: tide-rise 1.1s var(--spring) both; }
  @keyframes tide-rise { from { transform: translateY(101%); } to { transform: none; } }
}
.book-confirm h3 { margin-bottom: 14px; position: relative; }
.book-confirm .deets { font-family: var(--mono); font-size: 15px; line-height: 1.9; position: relative; }
.book-confirm .ps { margin-top: 14px; color: var(--tar-60); font-size: 15.5px; position: relative; }

/* ---------- hours table ---------- */
.hours { font-family: var(--mono); font-size: 14px; line-height: 2; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 18px; }
.hours .today { color: var(--coral); }
.hours .today::after { content: " · today"; }

/* ---------- dish lists + hover reveal lens ---------- */
.dish-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: baseline;
  padding: 14px 0;
}
.dish-row .dname { font-family: var(--disp); font-weight: 700; font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.01em; }
.dish-row .ddesc { color: var(--tar-60); font-size: 16px; }
.dish-row .dprice { font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dish-row .dthumb { grid-row: span 2; align-self: center; width: 64px; height: 64px; display: none; }
.dish-row .dthumb image-slot { width: 64px; height: 64px; }
@media (pointer: coarse) {
  .dish-row[data-dish] { grid-template-columns: 64px auto 1fr auto; }
  .dish-row[data-dish] .dthumb { display: block; }
}
.dish-lens {
  position: fixed; z-index: 70; width: 200px; height: 140px;
  pointer-events: none; opacity: 0; overflow: hidden;
  border: 1px solid var(--tar); background: var(--gull);
  box-shadow: var(--shadow-lift);
}
@media (prefers-reduced-motion: no-preference) {
  .dish-lens { transition: opacity 0.18s ease-out; }
}
.dish-lens.on { opacity: 1; }
.dish-lens img { width: 100%; height: 100%; object-fit: cover; }
.dish-lens .lens-cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px; background: var(--purslane-10);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--tar-60);
}
.dish-lens.has-img .lens-cap { display: none; }
@media (pointer: coarse) { .dish-lens { display: none; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--shellgrit); padding: clamp(44px, 7vh, 72px) var(--gut) 28px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--tar-60); margin-bottom: 14px; }
.foot-grid address { font-style: normal; font-size: 16px; line-height: 1.7; }
.monogram { width: 56px; height: 56px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.monogram svg { width: 100%; height: 100%; }
.news-form { display: flex; gap: 0; margin-top: 4px; max-width: 380px; }
.news-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--shellgrit); border-right: 0; border-radius: 0; font-size: 16px; }
.news-form input:focus { outline: 2px solid var(--coral); }
.news-form .btn { min-height: 48px; padding: 0 20px; }
.news-done { display: none; font-weight: 500; margin-top: 4px; }
.news-wrap.done .news-form { display: none; }
.news-wrap.done .news-done { display: block; }
.foot-small { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: clamp(34px, 5vh, 54px); padding-top: 18px; border-top: 1px solid var(--shellgrit); font-size: 13.5px; color: var(--tar-60); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
