/* ============================================================
   Phở You — East Hastings · cold-pitch redesign
   Brief palette · Fraunces (warm serif) + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* ---- brief palette (exact) ---- */
  --bone:      #F4E9D5;   /* broth-cream background */
  --ink:       #3D2614;   /* dark fish-sauce brown ink */
  --basil:     #7DA86A;   /* Vietnamese basil green accent */
  --amber:     #D49A4A;   /* pho-amber CTA highlight */

  /* ---- derived ---- */
  --panel:     #EEDFC4;   /* deeper cream card/panel */
  --panel-2:   #E7D5B6;
  --ink-soft:  rgba(61, 38, 20, 0.66);
  --ink-mut:   rgba(61, 38, 20, 0.50);
  --ink-faint: rgba(61, 38, 20, 0.14);
  --ink-hair:  rgba(61, 38, 20, 0.10);
  --amber-deep:#B97E33;
  --on-amber:  #3D2614;
  --on-basil:  #F4E9D5;

  /* ---- type ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;
  --display-ital: italic;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 60px);
  --grain: 0.5;
}

/* ---- Tweak: night service (dark) ---- */
[data-theme="night"]{
  --bone:      #241710;
  --panel:     #2E1F15;
  --panel-2:   #38271A;
  --ink:       #F4E9D5;
  --ink-soft:  rgba(244, 233, 213, 0.70);
  --ink-mut:   rgba(244, 233, 213, 0.52);
  --ink-faint: rgba(244, 233, 213, 0.16);
  --ink-hair:  rgba(244, 233, 213, 0.10);
  --on-amber:  #241710;
  --grain: 0.7;
}

/* ---- Tweak: headline voice ---- */
[data-type="upright"]{ --display-ital: normal; }

/* hide accents */
[data-accent="off"]{ --basil: var(--ink); --amber: var(--ink); }

/* ============================================================
   BASE
   ============================================================ */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
p{ margin: 0; text-wrap: pretty; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.0; }
::selection{ background: var(--amber); color: var(--on-amber); }

/* film grain */
body::after{
  content:""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.wrap{ max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* eyebrow */
.eyebrow{
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow .led{ width: 7px; height: 7px; border-radius: 50%; background: var(--basil); flex: none; }

/* tiny Vietnamese micro-tag */
.vn-tag{
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 13.5px; color: var(--amber-deep); letter-spacing: 0.01em;
}
[data-theme="night"] .vn-tag{ color: var(--amber); }

/* ============================================================
   STEAM CURL MOTIF
   ============================================================ */
.steam-curl{ position: absolute; pointer-events: none; color: var(--ink); }
.steam-curl path{ fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.16; stroke-dasharray: 4 180; animation: drift 9s linear infinite; }
.steam-curl path:nth-child(2){ animation-delay: -3s; }
.steam-curl path:nth-child(3){ animation-delay: -6s; }
@keyframes drift{ to{ stroke-dashoffset: -184; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.005em;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bone);
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn--amber{ background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.btn--basil{ background: var(--basil); border-color: var(--basil); color: var(--on-basil); }
.btn--ghost{ background: transparent; color: var(--ink); }
.btn--ghost:hover{ background: var(--ink); color: var(--bone); }
.btn--lg{ padding: 16px 30px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, padding .35s;
}
.nav.scrolled{ border-bottom-color: var(--ink-faint); padding-block: 11px; }
.brand{ font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 26px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links{ display: flex; align-items: center; gap: 30px; }
.nav-links a{ font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:-2px; height: 2px; background: var(--amber); transition: right .28s ease; }
.nav-links a:hover::after{ right: 0; }
.nav-right{ display: flex; align-items: center; gap: 18px; }
.nav-burger{ display: none; }
.open-pill{ display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.open-pill .led{ width: 8px; height: 8px; border-radius: 50%; background: var(--basil); box-shadow: 0 0 0 0 color-mix(in srgb, var(--basil) 70%, transparent); animation: pulse 2.6s infinite; }
.open-pill[data-open="false"] .led{ background: var(--amber-deep); animation: none; }
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--basil) 55%, transparent);} 70%{ box-shadow: 0 0 0 7px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid{ display: grid; grid-template-columns: 1.22fr 0.78fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy{ position: relative; z-index: 2; }
.hero-kicker{ margin-bottom: 26px; }
.hero h1{
  font-style: var(--display-ital);
  font-size: clamp(54px, 8.6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 580;
}
.hero h1 .pho, .hero h1 .you{ display: block; }
.hero h1 .you{ color: var(--basil); }
.hero-sub{ margin-top: 28px; max-width: 42ch; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.hero-sub b{ color: var(--ink); font-weight: 600; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-foot{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 34px; font-size: 13px; font-weight: 500; color: var(--ink-mut); }
.hero-foot span{ display: inline-flex; align-items: center; gap: 9px; }
.hero-foot span::before{ content:""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* hero image */
.hero-photo{ position: relative; }
.hero-photo .frame{ position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; background: var(--panel); box-shadow: 0 40px 80px -40px rgba(61,38,20,.45); }
.hero-photo .frame img{ width: 100%; height: 100%; object-fit: cover; }
.hero-photo .badge{
  position: absolute; left: -22px; bottom: 30px; z-index: 3;
  background: var(--bone); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 12px 18px; display: flex; align-items: center; gap: 11px;
  box-shadow: 0 14px 30px -14px rgba(61,38,20,.5);
}
.hero-photo .badge .star{ color: var(--amber-deep); font-size: 19px; }
.hero-photo .badge b{ font-family: var(--font-display); font-style: italic; font-size: 22px; font-weight: 600; }
.hero-photo .badge small{ font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; line-height: 1.2; }
.hero-photo .vn-float{ position: absolute; top: -14px; right: 14px; z-index: 3; transform: rotate(-4deg); }
.hero .steam-curl{ top: -30px; left: 46%; width: 200px; height: 220px; z-index: 1; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section{ padding-block: clamp(64px, 9vw, 120px); position: relative; }
.sec-head{ margin-bottom: 48px; }
.sec-head .eyebrow{ margin-bottom: 18px; }
.sec-head h2{ font-style: var(--display-ital); font-size: clamp(38px, 5.5vw, 76px); letter-spacing: -0.02em; font-weight: 560; max-width: 16ch; }
.sec-head h2 .accent{ color: var(--amber-deep); }
.sec-head .lead{ margin-top: 18px; max-width: 60ch; color: var(--ink-soft); font-size: 17px; }
.divider{ border: 0; border-top: 1px solid var(--ink-faint); margin: 0; }

/* ============================================================
   MENU
   ============================================================ */
.menu-cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dish-card{
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--ink-faint); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dish-card:hover{ transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(61,38,20,.5); }
.dish-card .pic{ aspect-ratio: 16/11; background: var(--panel-2); position: relative; overflow: hidden; }
.dish-card .pic img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dish-card:hover .pic img{ transform: scale(1.05); }
.dish-card .pic .tag{
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.tag--spec{ background: var(--amber); color: var(--on-amber); }
.tag--vegan{ background: var(--basil); color: var(--on-basil); }
.dish-card .body{ padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.dish-card .titlerow{ display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.dish-card h3{ font-style: normal; font-weight: 600; font-size: 23px; letter-spacing: -0.01em; line-height: 1.05; }
.dish-card .vn-tag{ display: block; margin-top: 4px; }
.dish-card .price{ font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 26px; white-space: nowrap; }
.dish-card .price small{ font-size: 15px; font-style: normal; color: var(--ink-soft); margin-right: 1px; }
.dish-card p{ margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }

/* 4th row */
.menu-row{
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--ink); color: var(--bone);
  border-radius: 10px; padding: 26px 30px;
}
[data-theme="night"] .menu-row{ background: var(--panel-2); color: var(--ink); }
.menu-row .items{ font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.01em; }
.menu-row .note{ font-size: 14.5px; color: color-mix(in srgb, var(--bone) 70%, transparent); }
[data-theme="night"] .menu-row .note{ color: var(--ink-soft); }
.menu-foot{ margin-top: 26px; font-size: 14px; color: var(--ink-mut); display: flex; gap: 9px; align-items: baseline; }

/* ============================================================
   ABOUT
   ============================================================ */
.about{ background: var(--panel); border-block: 1px solid var(--ink-faint); }
.about-grid{ display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.about-photo{ position: relative; }
.about-ph{
  aspect-ratio: 4/5; border-radius: 10px;
  background-color: var(--panel-2);
  background-image: repeating-linear-gradient(135deg, var(--ink-hair) 0 2px, transparent 2px 13px);
  border: 1px dashed var(--ink-faint);
  display: flex; align-items: flex-end; padding: 16px;
}
.about-ph span{
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink-soft); background: color-mix(in srgb, var(--bone) 80%, transparent);
  padding: 6px 11px; border-radius: 5px; border: 1px solid var(--ink-faint); max-width: 24ch;
}
.about-copy .eyebrow{ margin-bottom: 20px; }
.about-copy .lead-q{
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(23px, 3.1vw, 34px); line-height: 1.34; letter-spacing: -0.01em;
}
.about-copy .lead-q .hl{ color: var(--amber-deep); }
.about-copy .sub{ margin-top: 22px; color: var(--ink-soft); font-size: 16.5px; max-width: 52ch; }

/* ============================================================
   REVIEWS — WHY PEOPLE COME BACK
   ============================================================ */
.reviews-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qcard{
  background: var(--bone); border: 1px solid var(--ink-faint); border-radius: 10px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 22px;
}
[data-theme="night"] .qcard{ background: var(--panel); }
.qcard .mark{ font-family: var(--font-display); font-style: italic; font-size: 56px; line-height: 0.5; color: var(--amber); height: 26px; }
.qcard blockquote{
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(21px, 2.3vw, 26px); line-height: 1.3; letter-spacing: -0.01em; flex: 1;
}
.qcard .src{ display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-mut); letter-spacing: 0.02em; }
.qcard .src .stars{ color: var(--amber-deep); letter-spacing: 0.06em; }
.reviews-foot{ margin-top: 30px; font-size: 14px; color: var(--ink-mut); }

/* ============================================================
   VISIT — dark brown card
   ============================================================ */
.visit-card{
  background: var(--ink); color: var(--bone);
  border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
}
[data-theme="night"] .visit-card{ background: #1B110A; }
.visit-l{ padding: clamp(36px, 4.5vw, 64px); }
.visit-l .eyebrow{ color: color-mix(in srgb, var(--bone) 64%, transparent); margin-bottom: 26px; }
.visit-l .eyebrow .led{ background: var(--basil); }
.visit-addr{ font-family: var(--font-display); font-style: italic; font-weight: 560; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.0; letter-spacing: -0.015em; }
.visit-meta{ margin-top: 34px; display: grid; gap: 22px; }
.visit-meta .row .k{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--bone) 56%, transparent); margin-bottom: 7px; }
.visit-meta .row .v{ font-size: 19px; }
.visit-meta .hours-v{ font-family: var(--font-mono); font-variant: small-caps; letter-spacing: 0.06em; font-size: 18px; }
.visit-meta a{ border-bottom: 1.5px solid var(--amber); padding-bottom: 1px; }
.visit-meta a:hover{ color: var(--amber); }
.visit-cta{ margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.visit-r{ position: relative; background: var(--panel-2); min-height: 320px; }
.visit-map{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.82) sepia(0.10) contrast(1.02); }
[data-theme="night"] .visit-map{ filter: saturate(0.78) brightness(0.82) contrast(1.05) hue-rotate(-6deg); }
.visit-r .map-ph{
  position: absolute; inset: 0;
  background-color: var(--panel-2);
  background-image:
    linear-gradient(var(--ink-hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-hair) 1px, transparent 1px);
  background-size: 38px 38px;
  display: flex; align-items: flex-end; padding: 16px;
}
.visit-r .map-ph::before{
  content:""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px;
  background: var(--amber); border: 3px solid var(--bone); border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 10px 20px -8px rgba(61,38,20,.6);
}
.visit-r .map-ph span{
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink-soft); background: color-mix(in srgb, var(--bone) 82%, transparent);
  padding: 6px 11px; border-radius: 5px; border: 1px solid var(--ink-faint); position: relative; z-index: 2;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot{ padding-block: 56px 40px; }
.foot-grid{ display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-start; justify-content: space-between; }
.foot .brand{ font-size: 34px; }
.foot-tag{ max-width: 28ch; color: var(--ink-soft); font-size: 15px; margin-top: 12px; }
.foot-cols{ display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4{ font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mut); margin-bottom: 14px; }
.foot-col a, .foot-col p{ display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.foot-col a:hover{ color: var(--ink); }
.foot-base{ display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--ink-faint); font-size: 12.5px; color: var(--ink-mut); }

/* spec ribbon */
.ribbon{ background: var(--ink); color: var(--bone); text-align: center; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; padding: 8px var(--gutter); }
.ribbon b{ font-weight: 700; }
[data-theme="night"] .ribbon{ background: var(--panel-2); color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo{ order: -1; max-width: 460px; margin-inline: auto; }
  .hero-photo .frame{ aspect-ratio: 5/4; }
  .menu-cards, .reviews-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 380px; margin-inline: auto; }
  .visit-card{ grid-template-columns: 1fr; }
  .visit-r{ min-height: 240px; }
}

/* ---- nav collapses to hamburger ---- */
@media (max-width: 940px){
  .nav-burger{
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    border: 1.5px solid var(--ink-faint); border-radius: 11px; background: transparent;
  }
  .nav-burger span{ display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--bone) 97%, transparent);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--ink-faint);
    padding: 4px var(--gutter) 14px;
    display: none;
    box-shadow: 0 28px 44px -30px rgba(61,38,20,.55);
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 16px 2px; font-size: 15px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--ink-faint); }
  .nav-links a:last-child{ border-bottom: 0; }
  .nav-links a::after{ display: none; }
}
@media (max-width: 640px){
  .open-pill{ display: none; }
}
@media (max-width: 560px){
  body{ font-size: 17px; }
  .hero-cta{ flex-direction: column; align-items: stretch; }
  .btn{ justify-content: center; }
  .hero-photo .badge{ left: 12px; }
}
