/* Sayyad: a clean coastal Gulf seafood kitchen.
   DM Serif Display: high-contrast wedge serifs read like a painted fish-market board.
   Outfit: round, open sans that matches the soft lens of the fish mark.
   Shape rule: buttons are full pill, panels are 24px, the board is 16px. */

:root {
  --sand: #F4EEE4;
  --sea: #0F3D57;
  --coral: #EE7B53;

  --page-bg: #F4EEE4;
  --focus: #0F3D57;

  --head-bg: #F4EEE4;  --head-ink: #0F3D57;  --head-line: #E2D8C7;

  --hero-bg: #F4EEE4;  --hero-ink: #0F3D57;  --hero-muted: #4E6573;  --hero-panel: #0F3D57;

  --counter-bg: #0F3D57; --counter-ink: #F4EEE4; --counter-muted: #B5C7D1; --counter-accent: #EE7B53;
  --board-bg: #0B3149;   --board-line: #2A5873;

  --cook-bg: #FBF8F3;  --cook-ink: #0F3D57;  --cook-muted: #4A5F6B;  --cook-accent: #EE7B53;

  --sides-bg: #EE7B53; --sides-ink: #0A2232; --sides-accent: #0A2232;

  --tables-bg: #DCE7E9; --tables-ink: #0F3D57; --tables-muted: #3F5A68; --tables-accent: #EE7B53;
  --t-top: #F4EEE4; --t-line: #0F3D57; --t-chair: #B9CDD2; --t-plate: #FFFFFF; --t-platter: #EE7B53; --t-fish: #0F3D57;

  --reserve-bg: #082433; --reserve-ink: #F4EEE4; --reserve-muted: #B3C3CC; --reserve-accent: #EE7B53;

  --foot-bg: #EDE4D6;  --foot-ink: #0F3D57;  --foot-muted: #4B5D68;

  --btn-bg: #EE7B53;   --btn-ink: #0A2232;   --btn-hover: #0F3D57; --btn-hover-ink: #F4EEE4;
}

:root[data-theme="dark"] {
  --page-bg: #081C28;
  --focus: #F59A76;

  --head-bg: #081C28;  --head-ink: #F4EEE4;  --head-line: #173447;

  --hero-bg: #0B2231;  --hero-ink: #F4EEE4;  --hero-muted: #A9B9C2;  --hero-panel: #0F3D57;

  --counter-bg: #103A52; --counter-ink: #F4EEE4; --counter-muted: #A9BCC6; --counter-accent: #EE7B53;
  --board-bg: #0C2F44;   --board-line: #2D5A74;

  --cook-bg: #0E2938;  --cook-ink: #F4EEE4;  --cook-muted: #A7B5BD;  --cook-accent: #EE7B53;

  --sides-bg: #E0703F; --sides-ink: #0A2232; --sides-accent: #0A2232;

  --tables-bg: #12313F; --tables-ink: #F4EEE4; --tables-muted: #9FB3BE; --tables-accent: #EE7B53;
  --t-top: #1B4256; --t-line: #8FB0BF; --t-chair: #24495C; --t-plate: #DCE7E9; --t-platter: #EE7B53; --t-fish: #0B2231;

  --reserve-bg: #050F16; --reserve-ink: #F4EEE4; --reserve-muted: #A6B6BF; --reserve-accent: #EE7B53;

  --foot-bg: #06141D;  --foot-ink: #E6DED1;  --foot-muted: #9DAEB8;

  --btn-bg: #EE7B53;   --btn-ink: #0A2232;   --btn-hover: #F4EEE4; --btn-hover-ink: #0A2232;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--hero-ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

h1, h2, .word, .fish-name, .methods h3, .side-list {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h1 em, h2 em { font-style: italic; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.counter :focus-visible, .reserve :focus-visible { outline-color: #F59A76; }
.sides :focus-visible { outline-color: #0A2232; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--sea); color: var(--sand); padding: 12px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* The wave, as a rule. Masked so it takes each section's own accent colour. */
.wave-rule, .wave-band {
  display: block;
  background: var(--s-accent, var(--coral));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6C5 0 15 0 20 6S35 12 40 6' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6C5 0 15 0 20 6S35 12 40 6' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 12px;
}
.wave-rule { width: 120px; height: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 30px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .12s ease;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-hover-ink); }
.btn:active { transform: scale(0.98); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: var(--head-bg); color: var(--head-ink);
  border-bottom: 1px solid var(--head-line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sea); }
.mark svg { width: 32px; height: auto; }
.m-fish { fill: #FFFFFF; }
.m-wave { fill: none; stroke: var(--coral); stroke-width: 22; stroke-linecap: round; }
.word { font-size: 1.6rem; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 500; text-decoration: none; border-radius: 999px;
}
.nav a:hover { background: color-mix(in srgb, var(--head-ink) 9%, transparent); }
.head-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid currentColor; font-weight: 600; text-decoration: none;
}
.head-cta:hover { background: var(--head-ink); color: var(--head-bg); }
.theme {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: inherit; border: 0; cursor: pointer;
}
.theme:hover { background: color-mix(in srgb, var(--head-ink) 9%, transparent); }
.theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .i-moon { fill: currentColor; stroke: none; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .head-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-ink);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 56px) clamp(48px, 6vw, 88px);
}
.hero-copy { display: grid; gap: clamp(20px, 2.6vw, 32px); justify-items: start; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: 1.02; max-width: 15ch; }
.hero h1 em { display: block; color: var(--hero-muted); padding-bottom: .06em; }
.lede { max-width: 36ch; color: var(--hero-muted); font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); }
.hero-panel {
  background: var(--hero-panel); border-radius: 24px;
  aspect-ratio: 1 / 1; max-height: calc(100dvh - 180px); width: 100%; display: grid; place-items: center;
  padding: 12%;
}
.hero-mark { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  /* Signature motion: the wave draws itself once, like a line of surf coming in. */
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.45, 0, .2, 1) .25s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { aspect-ratio: 16 / 10; padding: 8% 22%; }
  .hero h1 { max-width: 13ch; }
}

/* ---------- Counter: the market board ---------- */
.counter {
  --s-accent: var(--counter-accent);
  background: var(--counter-bg); color: var(--counter-ink);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(72px, 10vw, 144px) clamp(16px, 4vw, 56px);
}
.counter-intro { display: grid; gap: 22px; align-content: start; }
.counter h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.counter-intro p { color: var(--counter-muted); max-width: 34ch; }
.board { background: var(--board-bg); border-radius: 16px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--board-line); }
.board-title {
  font-size: 0.95rem; font-weight: 600; color: #F59A76;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.fish-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.fish-list li { display: grid; gap: 8px; }
.fish-name { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.fish-note { color: var(--counter-muted); max-width: 26ch; }
.board-note { margin-top: clamp(28px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--board-line); color: var(--counter-muted); font-size: .95rem; }
@media (max-width: 820px) {
  .counter { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .fish-list { grid-template-columns: 1fr; }
}

/* ---------- Cooking: four ways, read like a menu ---------- */
.cooking {
  --s-accent: var(--cook-accent);
  background: var(--cook-bg); color: var(--cook-ink);
  padding: clamp(72px, 10vw, 144px) clamp(16px, 4vw, 56px);
  display: grid; gap: 22px;
}
.cooking h2 { font-size: clamp(2.4rem, 5.6vw, 5.2rem); }
.methods { margin-top: clamp(24px, 4vw, 56px); display: grid; gap: clamp(28px, 4vw, 52px); }
.methods li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 8px clamp(20px, 3vw, 48px);
  align-items: baseline;
}
.methods h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.methods p { color: var(--cook-muted); max-width: 32ch; }
.methods .pair { color: var(--cook-ink); font-weight: 500; font-size: .95rem; }
@media (max-width: 820px) {
  .methods { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .methods li { grid-template-columns: 1fr; align-content: start; }
}
@media (max-width: 540px) {
  .methods { grid-template-columns: 1fr; }
}

/* ---------- Sides: the coral band ---------- */
.sides {
  --s-accent: var(--sides-accent);
  background: var(--sides-bg); color: var(--sides-ink);
  padding: clamp(72px, 9vw, 128px) clamp(16px, 4vw, 56px);
  text-align: center; display: grid; justify-items: center; gap: 16px;
}
.sides h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.sides-sub { max-width: 40ch; }
.side-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px clamp(28px, 4vw, 56px); max-width: 1000px; margin: clamp(16px, 3vw, 32px) 0;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.25;
}
.side-list li { display: inline-flex; align-items: center; justify-content: center; }
.sides-note { font-weight: 500; }
.sides .wave-rule { margin-top: 8px; }
@media (max-width: 600px) {
  .side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; font-size: 1.6rem; }
}

/* ---------- Tables ---------- */
.tables {
  --s-accent: var(--tables-accent);
  background: var(--tables-bg); color: var(--tables-ink);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(72px, 10vw, 144px) clamp(16px, 4vw, 56px);
}
.table-art { width: 100%; height: auto; max-width: 620px; }
.table-art .chairs rect { fill: var(--t-chair); }
.table-art .tabletop { fill: var(--t-top); stroke: var(--t-line); stroke-width: 2; }
.table-art .plates circle { fill: var(--t-plate); stroke: var(--t-line); stroke-width: 1.5; }
.table-art .platter { fill: var(--t-platter); }
.table-art .t-fish { fill: var(--t-fish); }
.tables-copy { display: grid; gap: 22px; }
.tables h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); max-width: 12ch; }
.tables-copy > p { color: var(--tables-muted); max-width: 38ch; }
.visit { display: grid; gap: 0; margin-top: 8px; }
.visit div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; }
.visit div + div { border-top: 1px solid color-mix(in srgb, var(--tables-ink) 22%, transparent); }
.visit dt { font-weight: 600; }
.visit dd { color: var(--tables-muted); }
@media (max-width: 820px) {
  .tables { grid-template-columns: 1fr; }
  .tables-copy { order: -1; }
}
@media (max-width: 480px) {
  .visit div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Reserve ---------- */
.reserve {
  --s-accent: var(--reserve-accent);
  background: var(--reserve-bg); color: var(--reserve-ink);
  padding: clamp(80px, 11vw, 160px) clamp(16px, 4vw, 56px) 0;
  display: grid; gap: clamp(56px, 8vw, 112px);
}
.reserve-copy { display: grid; gap: 24px; justify-items: start; max-width: 900px; }
.reserve h2 { font-size: clamp(2.6rem, 6.2vw, 6rem); line-height: 1.08; }
.reserve h2 em { display: block; color: #F59A76; padding-bottom: .08em; }
.reserve-copy p { color: var(--reserve-muted); max-width: 40ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.wave-band {
  height: 28px; margin: 0 calc(-1 * clamp(16px, 4vw, 56px)) clamp(32px, 4vw, 56px);
  -webkit-mask-size: 84px 28px; mask-size: 84px 28px;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--foot-bg); color: var(--foot-ink);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px;
  padding: 40px clamp(16px, 4vw, 56px);
}
.foot-line { color: var(--foot-muted); }
.foot-wa {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.credit { grid-column: 1 / -1; color: var(--foot-muted); font-size: .9rem; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--foot-ink) 18%, transparent); }
.credit a { display: inline-block; padding: 12px 0; margin: -12px 0; }
@media (max-width: 820px) {
  .site-foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
