/* ————————————————————————————————
   Hưng Long — Vietnamese tapas bar
   Palette drawn from the brand logo:
   washed celadon plaster + burgundy tile + bone
   Type: Oswald (display, echoes the tile lettering) + Be Vietnam Pro (body)
   ———————————————————————————————— */

:root {
  --wine: #241318;
  --wine-2: #2e1a20;
  --burgundy: #8e2f3c;
  --burgundy-deep: #74242f;
  --rose: #cb7983;
  --celadon: #c8d6c3;
  --celadon-dim: rgba(200, 214, 195, 0.62);
  --bone: #f0e8db;
  --bone-dim: rgba(240, 232, 219, 0.66);
  --bone-faint: rgba(240, 232, 219, 0.4);
  --hairline: rgba(200, 214, 195, 0.2);
  --display: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
  --body: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 620px at 50% -120px, rgba(142, 47, 60, 0.2), transparent 70%),
    var(--wine);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--celadon); text-decoration-color: rgba(200, 214, 195, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--burgundy); color: var(--bone); }

/* ——— Dragon spine ——— */

.dragon {
  position: fixed;
  top: 0;
  left: max(1.5vw, calc(50% - 40rem));
  height: 100vh;
  width: auto;
  aspect-ratio: 140 / 1100;
  pointer-events: none;
  z-index: 0;
}

.dragon path {
  fill: none;
  stroke: var(--celadon);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.45;
}

.dragon .dragon-eye { fill: var(--rose); stroke: none; opacity: 0.9; }

.dragon .dragon-whisker,
.dragon .dragon-eye {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.dragon.awake .dragon-whisker { opacity: 0.45; }
.dragon.awake .dragon-eye { opacity: 0.9; }

@media (max-width: 1120px) {
  .dragon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dragon .dragon-spine { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .dragon .dragon-whisker { opacity: 0.45; transition: none; }
  .dragon .dragon-eye { opacity: 0.9; transition: none; }
}

/* ——— Header ——— */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(36, 19, 24, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-head-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
}

.site-head nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }

.site-head nav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-head nav a:hover { color: var(--celadon); }

@media (max-width: 640px) {
  .site-head {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 1rem;
  }
  .site-head-mark { white-space: nowrap; }
}

/* ——— Layout ——— */

main {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }

section + section { border-top: 1px solid var(--hairline); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--celadon);
  margin-bottom: 1.1rem;
}

/* ——— Hero ——— */

.hero {
  min-height: calc(88vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: clamp(3rem, 10vh, 6rem);
}

.hero-logo {
  margin: 0 auto;
  max-width: min(100%, 38rem);
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  margin: 2rem auto 0;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--bone-dim);
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem auto 0;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-solid {
  background: var(--burgundy);
  color: var(--bone);
  border: 1px solid var(--burgundy);
}

.btn-solid:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--bone); }

.btn-ghost {
  border: 1px solid rgba(200, 214, 195, 0.5);
  color: var(--celadon);
}

.btn-ghost:hover { border-color: var(--celadon); color: var(--bone); }

/* ——— Manifesto ——— */

.manifesto-lede {
  font-size: clamp(1.3rem, 3.2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--bone);
  margin-bottom: 1.6rem;
}

.manifesto-lede em { color: var(--celadon); font-style: italic; }

.manifesto p:not(.manifesto-lede) { color: var(--bone-dim); max-width: 38rem; }

/* ——— Menu ——— */

.section-head { margin-bottom: 2.8rem; }

.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}

.section-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--bone-faint);
  font-style: italic;
}

.menu-group { margin-bottom: 3.2rem; }
.menu-group:last-child { margin-bottom: 0; }

.menu-group h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.15rem;
}

.group-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bone-faint);
  margin-bottom: 1.4rem;
}

.menu-group h3 + .menu-list { margin-top: 1.4rem; }

.menu-list { list-style: none; }

.menu-item { padding: 0.65rem 0; }

.menu-item + .menu-item { border-top: 1px dotted rgba(200, 214, 195, 0.16); }

.menu-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.item-name { font-weight: 400; color: var(--bone); }

.menu-line::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 1px dotted rgba(240, 232, 219, 0.18);
  transform: translateY(-4px);
}

.item-name { order: 0; }

.item-price {
  order: 2;
  font-weight: 400;
  color: var(--celadon);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-desc {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--bone-faint);
  max-width: 34rem;
}

/* ——— Visit ——— */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.2rem;
}

.visit-card {
  background: var(--wine-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.6rem 1.5rem;
}

.visit-card h3 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--celadon);
  margin-bottom: 0.9rem;
}

.visit-card p { color: var(--bone-dim); font-size: 0.95rem; }
.visit-card p + p { margin-top: 0.7rem; }

.hours { display: grid; gap: 0.45rem; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.hours dt { color: var(--bone-dim); }
.hours dd { color: var(--bone); font-variant-numeric: tabular-nums; }

/* ——— Footer ——— */

.site-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--hairline);
}

.foot-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--celadon);
  margin-bottom: 1rem;
}

.foot-line { font-size: 0.9rem; color: var(--bone-dim); margin-bottom: 0.4rem; }

.foot-fine {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  color: var(--bone-faint);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Reveal on scroll ——— */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ——— 404 ——— */

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.lost h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1.2rem;
}

.lost p { color: var(--bone-dim); max-width: 28rem; margin: 0 auto 2rem; }
