/* ==========================================================================
   Pak Soii — editorial noodle-kitchen site
   Type: Fraunces (display serif, self-hosted) + Helvetica Neue stack (UI/body)
   Palette: warm paper + ink; terracotta used only as a small accent
   ========================================================================== */

:root {
  --paper:   #F4EFE7;
  --paper-2: #EDE6DA;
  --ink:     #23201C;
  --ink-2:   #55504A;
  --muted:   #8C8479;
  --line:    #DBD3C6;
  --clay:    #B4471F;   /* accent — used sparingly */
  --deep:    #211D18;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  --measure: 40rem;
  --pad: clamp(22px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Type primitives ---- */
.display, .h-lg, .h-md, .h-sm {
  font-family: var(--serif);
  font-weight: 380;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}
.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-variation-settings: 'opsz' 144;
  line-height: 1.02;
}
.display em { font-style: italic; font-weight: 380; }
.h-lg { font-size: clamp(2rem, 4vw, 3.1rem); font-variation-settings: 'opsz' 72; }
.h-md { font-size: clamp(1.6rem, 3vw, 2.3rem); font-variation-settings: 'opsz' 40; line-height: 1.1; }
.h-sm { font-size: clamp(1.15rem, 2vw, 1.4rem); font-variation-settings: 'opsz' 24; letter-spacing: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  font-weight: 600;
}
.eyebrow.clay { color: var(--clay); }
em { font-family: var(--serif); font-style: italic; }

/* ---- Link with drawn underline ---- */
.link-arrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--clay);
  transition: color 0.25s ease, gap 0.25s ease;
}
.link-arrow::after { content: " →"; color: var(--clay); }
.link-arrow:hover { color: var(--clay); }

/* ==========================================================================
   Header
   ========================================================================== */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
.masthead.scrolled {
  background: rgba(244, 239, 231, 0.86);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
/* Light header while over the hero image */
.masthead:not(.scrolled) .wordmark { color: #F7F2EA; }
.masthead:not(.scrolled) .wordmark-sub { color: rgba(247,242,234,0.72); }
.masthead:not(.scrolled) .nav a { color: rgba(247,242,234,0.92); }
.masthead:not(.scrolled) .nav-btn span { background: #F7F2EA; }
.masthead-in {
  max-width: 1240px; margin: 0 auto;
  padding: 20px var(--pad);
  display: flex; align-items: baseline; justify-content: space-between;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 450;
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 9px;
}
.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 0.9rem; color: var(--ink-2);
  position: relative; padding-bottom: 2px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px; background: var(--clay);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-btn span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

/* ==========================================================================
   Hero — asymmetric editorial split
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: heroDrift 22s ease-out forwards;
}
@keyframes heroDrift { to { transform: scale(1.12); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(22,14,8,0.86) 0%, rgba(22,14,8,0.62) 38%, rgba(22,14,8,0.22) 72%, rgba(22,14,8,0.06) 100%),
    linear-gradient(to bottom, rgba(22,14,8,0.5) 0%, transparent 18%, transparent 78%, rgba(22,14,8,0.42) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--pad);
}
.hero-copy { max-width: 38rem; padding: 132px 0 92px; }
.hero .display { color: #F7F2EA; text-shadow: 0 2px 26px rgba(0,0,0,0.3); }
.hero-eyebrow { color: #EBB59F; }
.hero .lede {
  font-size: 1.12rem; color: rgba(247,242,234,0.9);
  margin: 26px 0 34px; max-width: 30rem;
}
.hero .link-arrow { color: #F7F2EA; border-bottom-color: #EBB59F; }
.hero .link-arrow::after { color: #EBB59F; }
.hero .link-arrow:hover { color: #EBB59F; }

/* ---- Fact row ---- */
.factrow {
  max-width: 1240px; margin: 0 auto;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted);
  text-transform: uppercase;
}
.factrow .dot { color: var(--clay); }

/* ==========================================================================
   Story — text-heavy, asymmetric
   ========================================================================== */
.story {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--pad);
}
.story-grid {
  display: grid; grid-template-columns: 1.32fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: start;
}
.story-main { max-width: 40rem; }
.story-big {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-variation-settings: 'opsz' 60;
  font-weight: 360; line-height: 1.24; letter-spacing: -0.01em;
  margin: 0 0 clamp(28px, 3.5vw, 44px); color: var(--ink);
}
.story-cols { column-count: 2; column-gap: 40px; }
.story-cols p { margin: 0 0 1.1em; color: var(--ink-2); break-inside: avoid; font-size: 0.98rem; }
.story-cols p:first-child { margin-top: 0; }
.story-figure { margin: 0; position: relative; top: 6px; }
.story-figure img { width: 100%; height: clamp(420px, 46vw, 560px); object-fit: cover; border-radius: 2px; }
.story-figure figcaption {
  font-size: 0.78rem; color: var(--muted); margin-top: 12px;
  font-style: italic; font-family: var(--serif);
}

/* ==========================================================================
   Signature bowls — alternating features
   ========================================================================== */
.bowls {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) var(--pad) clamp(70px, 10vw, 120px);
}
.section-head { margin-bottom: clamp(44px, 6vw, 76px); }
.section-head.narrow { max-width: 40rem; }
.section-note { color: var(--ink-2); margin: 18px 0 0; max-width: 34rem; }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 72px); align-items: center;
  padding: clamp(38px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.feature:last-of-type { border-bottom: 1px solid var(--line); }
.feature.reverse .feature-img { order: 2; }
.feature-img { margin: 0; overflow: hidden; border-radius: 2px; }
.feature-img img {
  width: 100%; height: clamp(300px, 40vw, 460px); object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.feature:hover .feature-img img { transform: scale(1.035); }
.feature-text { max-width: 30rem; }
.feature-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--clay);
  display: block; margin-bottom: 14px;
}
.feature-text h3 { margin-bottom: 16px; }
.feature-text p { color: var(--ink-2); margin: 0 0 14px; }
.feature-note {
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-top: 18px !important;
}
.chilli { font-family: var(--sans); font-size: 0.62em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); vertical-align: middle; }

/* ==========================================================================
   Also on the counter — quiet typographic list
   ========================================================================== */
.also { background: var(--paper-2); }
.also-in {
  max-width: 1000px; margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) var(--pad);
}
.also-in .h-sm { color: var(--muted); margin-bottom: 40px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: grid; grid-template-columns: 15rem 1fr; gap: 20px;
  padding: 20px 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
.menu-list li:last-child { border-bottom: 1px solid var(--line); }
.ml-name { font-family: var(--serif); font-size: 1.3rem; font-variation-settings: 'opsz' 36; font-weight: 400; }
.ml-desc { color: var(--ink-2); font-size: 0.98rem; }
.also-foot { margin-top: 36px; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Quiet full-bleed photograph
   ========================================================================== */
.plate { margin: 0; }
.plate img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; }
.plate-cap {
  max-width: 46rem; margin: 0 auto; padding: 22px var(--pad) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--ink-2); line-height: 1.5;
}
.plate-tag {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 8px; font-weight: 600;
}

/* ==========================================================================
   Off the grill — gallery wall with captions beneath
   ========================================================================== */
.grill {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--pad) clamp(60px, 8vw, 100px);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2.5vw, 34px);
}
.g-item { margin: 0; grid-column: span 3; }
.g-item img {
  width: 100%; height: 300px; object-fit: cover; border-radius: 2px;
  filter: saturate(0.97);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
}
.g-item:hover img { transform: scale(1.03); filter: saturate(1.06); }
.g-item figcaption {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--line);
}
.g-name {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: 1.16rem; font-variation-settings: 'opsz' 34;
  color: var(--ink); letter-spacing: -0.005em;
}
.g-desc { display: block; margin-top: 3px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }

/* asymmetric weights */
.g-big { grid-column: span 6; }
.g-big img { height: clamp(340px, 42vw, 500px); }
.g-big .g-name { font-size: 1.5rem; font-variation-settings: 'opsz' 60; }
.g-big .g-desc { font-size: 0.95rem; }

/* text tile — stands in for the dip, no forced photo */
.g-text { grid-column: span 6; display: flex; align-items: center; }
.g-text > div {
  width: 100%;
  background: var(--paper-2);
  border-left: 3px solid var(--clay);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  border-radius: 2px;
}
.g-text .g-name { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-variation-settings: 'opsz' 54; margin-bottom: 8px; }
.g-text .g-desc { font-size: 1rem; max-width: 46rem; }

.grill-foot { margin-top: 44px; color: var(--muted); font-size: 0.9rem; max-width: 44rem; }

/* ==========================================================================
   Visit — restrained closing
   ========================================================================== */
.visit { background: var(--deep); color: #EDE6DA; }
.visit-in {
  max-width: 44rem; margin: 0 auto; text-align: center;
  padding: clamp(90px, 13vw, 160px) var(--pad);
}
.visit-logo {
  width: 76px; height: 76px; object-fit: contain;
  margin: 0 auto 34px; border-radius: 4px;
  background: #F4EFE7; padding: 8px;
}
.visit-line {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-variation-settings: 'opsz' 60;
  line-height: 1.28; letter-spacing: -0.01em;
  margin: 0 0 24px; color: #F1EADF;
}
.visit-sub { color: #A79E90; font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--deep); border-top: 1px solid rgba(255,255,255,0.08); color: #A79E90; }
.foot-in {
  max-width: 1240px; margin: 0 auto;
  padding: 34px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-mark { font-family: var(--serif); font-size: 1.05rem; color: #EDE6DA; font-variation-settings: 'opsz' 30; }
.foot-nav { display: flex; gap: 26px; }
.foot-nav a { font-size: 0.85rem; transition: color 0.2s; }
.foot-nav a:hover { color: #EDE6DA; }
.foot-fine { font-size: 0.76rem; color: #7C7468; }

/* ==========================================================================
   Reveal on scroll — subtle
   ========================================================================== */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-copy { padding: 128px 0 84px; }
  .hero-scrim {
    background:
      linear-gradient(105deg, rgba(22,14,8,0.84) 0%, rgba(22,14,8,0.6) 55%, rgba(22,14,8,0.32) 100%),
      linear-gradient(to bottom, rgba(22,14,8,0.5) 0%, transparent 20%, transparent 66%, rgba(22,14,8,0.5) 100%);
  }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-cols { column-count: 1; }
  .story-figure { top: 0; order: -1; }
  .story-figure img { height: 360px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-img { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-item { grid-column: span 1; }
  .g-big, .g-text { grid-column: span 2; }
  .g-big img { height: 300px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: 15px var(--pad); border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
  .nav-btn { display: block; }
  .masthead-in { align-items: center; }

  /* Fact row → clean vertical list, no dangling dots */
  .factrow {
    flex-direction: column; align-items: flex-start; gap: 0;
    padding-top: 6px; padding-bottom: 6px;
  }
  .factrow span:not(.dot) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .factrow span:not(.dot):last-child { border-bottom: 0; }
  .factrow .dot { display: none; }

  .menu-list li { grid-template-columns: 1fr; gap: 4px; }
  .ml-name { font-size: 1.15rem; }

  /* Gallery → single column; reset the wide spans so no phantom 2nd track */
  .gallery { grid-template-columns: 1fr; }
  .g-item, .g-big, .g-text { grid-column: span 1; }
  .g-item img, .g-big img { height: 260px; }
  .g-text > div { padding: 26px 24px; }

  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  .feature-img img, .g-item img { transition: none; }
}
