/* ==========================================================================
   LÚA — Fonts, reset, typography, logo-derived motifs
   ========================================================================== */

/* --- Self-hosted fonts ---------------------------------------------------
   Only latin + vietnamese subsets are shipped. The vietnamese subset is
   required for dish names (Phở, Gỏi Cuốn, Bánh Mì) — latin-ext does not
   cover U+1EA0–1EF9. Browsers fetch a file only if the page uses a
   character inside its unicode-range.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-300-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-300-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-300-italic-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/montserrat-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/montserrat-300-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/montserrat-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/montserrat-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/montserrat-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/montserrat-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--leading-body);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

/* <picture> is only a format switch — it must not become a layout box that
   breaks the centring and sizing applied to the <img> inside it. */
picture { display: contents; }

img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

a { color: var(--accent-bright); text-decoration: none; }

/* Underlines belong to body copy only — never to nav, footer or button links,
   which carry their own affordances. */
:where(.prose, .lead) a:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
:where(.prose, .lead) a:not(.btn):hover {
  color: var(--gold-100);
  text-decoration-color: currentColor;
}

/* --- Focus --------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-sm); }

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-strong);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--leading-snug); }

p { text-wrap: pretty; }

/* Wide-tracked uppercase label — lifted straight from the logo's
   "VIETNAMESE KITCHEN + BAR" lockup. */
.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-tiny);
  font-weight: 300;
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-inline-end: calc(-1 * var(--tracking-eyebrow)); /* cancel trailing track */
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--cream-300);
}

.prose > * + * { margin-top: var(--space-sm); }
.prose { max-width: 62ch; }

.muted { color: var(--text-muted); }

.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

/* Metallic wordmark treatment. Falls back to flat gold where
   background-clip:text is unsupported. */
/* Gold gradient fill for headings. Wrap the words in a span rather than
   putting this on the block itself, so the gradient hugs the text instead of
   stretching across the full column width. inline-block keeps a wrapped
   heading on one continuous gradient rather than restarting per line. */
.gold-text {
  display: inline-block;
  color: var(--gold-300);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .gold-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* --- Layout -------------------------------------------------------------- */

.shell { width: var(--shell); margin-inline: auto; }
.shell-text { width: var(--shell-text); margin-inline: auto; }

.section { padding-block: var(--space-3xl); position: relative; }
.section--tight { padding-block: var(--space-2xl); }
.section--ink { background: var(--ink-900); }

.section-head { margin-bottom: var(--space-xl); }
.section-head--center { text-align: center; }
.section-head--center .divider { margin-inline: auto; }
.section-head .eyebrow + h2 { margin-top: var(--space-xs); }

/* --- Logo-derived motifs -------------------------------------------------- */

/* 1. Diamond divider — the ◇ ornament beneath the logo wordmark */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: min(100%, 16rem);
  margin-block: var(--space-md);
  color: var(--gold-500);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong));
}
.divider::after { background: linear-gradient(90deg, var(--hairline-strong), transparent); }
.divider__gem {
  width: 7px;
  height: 7px;
  flex: none;
  transform: rotate(45deg);
  border: 1px solid currentColor;
}

/* 2. Thin gold ring — the logo's circular border, reused as a badge */
.ring-badge {
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.125rem;
  flex: none;
}
.ring-badge svg { width: 1.125rem; height: 1.125rem; }

/* 3. Rice-stalk watermark (lúa = rice). Decorative only. */
.rice-watermark {
  position: absolute;
  pointer-events: none;
  color: var(--gold-500);
  opacity: 0.05;
  inline-size: clamp(150px, 20vw, 300px);
}
.rice-watermark--tr { top: -2%; right: -4%; transform: rotate(8deg); }
.rice-watermark--bl { bottom: -4%; left: -5%; transform: rotate(-160deg); }

/* --- Scroll reveal -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Never leave content hidden if JS fails. */
html:not(.js) .reveal { opacity: 1; transform: none; }

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

/* --- Utilities ------------------------------------------------------------ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.center { text-align: center; }
