/* =========================================================
   SISTA DUMPLING — CONCEPT E
   "Sista at the table" — mature, warm, editorial.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bild Poster";
  src: url("../assets/fonts/bild-poster-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bild Poster";
  src: url("../assets/fonts/bild-poster-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #f1efe2;
  --ink: #000000;
  --burgundy: #591414;
  --red: #f73e19;
  --pink: #f891da;
  --green: #003828;
  --yellow: #ffbb33;

  --muted: rgba(0, 0, 0, 0.6);
  --hairline: rgba(0, 0, 0, 0.14);

  --font-display: "Bild Poster", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head__blurb {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}
.eyebrow--red {
  color: var(--red);
}
.eyebrow--green {
  color: var(--green);
}
.eyebrow--pink {
  color: var(--pink);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.section-title--cream {
  color: var(--cream);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.72em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--solid {
  background: var(--red);
  color: var(--ink);
}
.btn--solid:hover {
  background: #d6310f;
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn--cream {
  background: var(--cream);
  color: var(--ink);
}
.btn--cream:hover {
  background: var(--yellow);
}
.btn--sm {
  min-height: 44px;
  padding: 0.6em 1.15em;
  font-size: 0.7rem;
}
.btn--lg {
  min-height: 54px;
  padding: 0.9em 2.1em;
  font-size: 0.8rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- 01 Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.site-header__logo img {
  width: 150px;
  height: auto;
}
.site-nav {
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav__list a:hover {
  color: var(--red);
}
.site-header__cta {
  margin-left: clamp(0.5rem, 2vw, 1.5rem);
}

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle__bars {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle__bars::before {
  content: "";
  top: -6px;
}
.nav-toggle__bars::after {
  content: "";
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--hairline);
  background: var(--cream);
  padding: 1rem var(--gutter) 1.75rem;
}
.mobile-nav__list {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.mobile-nav__list a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--hairline);
}

/* ---------- Media helpers ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6e3d4;
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--portrait {
  aspect-ratio: 4 / 5;
}
.media--wide {
  aspect-ratio: 4 / 3;
}

/* ---------- 02 Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: var(--section);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 8.6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin-top: 0.75rem;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__media {
  margin: 0;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- 03 Intro ---------- */
.intro {
  border-top: 1px solid var(--hairline);
  /* Refined: ~18% less vertical dead space than the default section rhythm,
     while staying calm and editorial. */
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5.75rem);
}
.intro__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.intro__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 32ch;
}
.intro__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.intro__list li {
  position: relative;
  padding-left: 0;
}
.intro__list li + li::before {
  content: "·";
  position: absolute;
  left: -0.95rem;
  color: var(--red);
}

/* ---------- 04 Menu / Signatures ---------- */
.menu {
  border-top: 1px solid var(--hairline);
}
.signatures {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.signature-lead {
  display: grid;
  gap: 1.25rem;
}
.signature-lead__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.signature-lead__num {
  color: var(--ink);
}
.signature-lead__desc {
  max-width: 34rem;
  color: var(--muted);
}
.tag-best {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: var(--radius);
}
.signature-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dish__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  margin-top: 0.9rem;
}
.dish__desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.dish-run {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
}
.menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- 05 Story ---------- */
.story {
  border-top: 1px solid var(--hairline);
}
.story__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.story__body {
  margin-top: 1.75rem;
  max-width: 40ch;
  display: grid;
  gap: 1.15rem;
  color: rgba(0, 0, 0, 0.78);
}
.story__media {
  margin: 0;
}
.story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.story__media figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
}

/* ---------- 06 Ganbei ---------- */
.ganbei {
  background: var(--burgundy);
  color: var(--cream);
}
.ganbei__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ganbei__body {
  margin: 1.5rem 0 2rem;
  max-width: 34rem;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.ganbei__media {
  display: grid;
  gap: 1rem;
}
.ganbei__figure {
  margin: 0;
}
.ganbei__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.ganbei__figure--lead img {
  aspect-ratio: 4 / 5;
}
.ganbei__figure--small img {
  aspect-ratio: 1 / 1;
}

/* ---------- 07 Gallery ---------- */
.gallery {
  border-top: 1px solid var(--hairline);
}
.gallery__grid {
  display: block;
}
.gallery__item {
  margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
  border-radius: var(--radius);
  break-inside: avoid;
}
.gallery__item:last-child {
  margin-bottom: 0;
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}
.gallery__item:hover img {
  transform: scale(1.03);
}

/* ---------- 08 Locations ---------- */
.locations {
  border-top: 1px solid var(--hairline);
}
.location-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.location {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.location__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}
.location__facts {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}
.location__row {
  display: grid;
  gap: 0.2rem;
}
.location__facts dd {
  max-width: 34ch;
}
.location__facts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.location__facts a:hover {
  color: var(--red);
}
.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.location__delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}
.location__delivery a,
.locations__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.location__delivery a:hover,
.locations__menu a:hover {
  color: var(--red);
}
.location__label {
  color: var(--muted);
  margin-right: 0.25rem;
}
.locations__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

/* ---------- 09 Closing CTA ---------- */
.closing {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.closing .eyebrow {
  color: color-mix(in srgb, var(--cream) 65%, transparent);
}
.closing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

/* ---------- 10 Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid rgba(241, 239, 226, 0.16);
}
.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.site-footer__logo img {
  width: 180px;
  height: auto;
}
.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.25rem;
  max-width: 22ch;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.site-footer__cols .eyebrow {
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  margin-bottom: 0.85rem;
}
.site-footer__cols ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}
.site-footer__cols a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__cols a:hover {
  color: var(--pink);
}
.site-footer__copyright {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 239, 226, 0.16);
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .intro__grid {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }
  .location-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .ganbei__media {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
  .ganbei__figure--small {
    align-self: end;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr 1.12fr;
  }
  .signature-lead {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .signature-support {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  .story__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ganbei__grid {
    grid-template-columns: 1fr 1.05fr;
  }
  .gallery__grid {
    columns: 2;
    column-gap: clamp(0.75rem, 1.6vw, 1.5rem);
  }
}

@media (max-width: 860px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery__item img {
    transition: none;
  }
  .gallery__item:hover img {
    transform: none;
  }
}
