/* ============================================================
   Pequeño Saigón · Direction C «Indochine»
   Enamel-white signage panels, mustard lettering, arched frames.
   Theme lock: light only (enamel house; brief mandates zero dark
   sections). Documented shape rule: imagery = arch (pill top),
   panels/plaques = 14px/10px, interactive = pill.
   ============================================================ */

:root {
  --enamel: #FAF7F0;      /* dominant page ground */
  --cream: #F1E9DA;       /* soft panel fill */
  --ink: #3B2F23;         /* deep sepia lettering */
  --ink-soft: #5C4F41;    /* secondary sepia, 7.4:1 on enamel */
  --gold: #C89B3C;        /* decorative mustard (rules, bands) */
  --gold-ink: #8A6519;    /* mustard lettering, 4.96:1 AA */
  --gold-deep: #A97E1F;   /* star fill, 3.45:1 */
  --green: #1F5C4D;       /* tile green, 7.3:1 on enamel */
  --green-soft: rgba(31, 92, 77, 0.45);
  --hairline: rgba(31, 92, 77, 0.22);
  --pinstripe: rgba(200, 155, 60, 0.5);
  --radius-panel: 14px;
  --wrap: 960px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- base ---------- */

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

html,
body { overflow-x: clip; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--enamel);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "onum" 1, "pnum" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

p { margin: 0; }

::selection { background: rgba(200, 155, 60, 0.35); }

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

.wrap {
  max-width: calc(var(--wrap) + 2 * clamp(16px, 4vw, 32px));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--green);
  color: var(--enamel);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
}

/* ---------- masthead (wordmark + inline anchors, not fixed) ---------- */

.masthead {
  padding-top: clamp(22px, 3.5vw, 36px);
  text-align: center;
}

.wordmark {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 22px);
  font-size: clamp(24px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
}

.wordmark::before,
.wordmark::after {
  content: "";
  flex: 1;
  max-width: 110px;
  height: 1px;
}

.wordmark::before { background: linear-gradient(90deg, transparent, var(--green-soft)); }
.wordmark::after  { background: linear-gradient(270deg, transparent, var(--green-soft)); }

.masthead-sub {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.masthead-nav { margin-top: 14px; }

.masthead-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.masthead-nav li {
  display: flex;
  align-items: center;
}

.masthead-nav li + li::before {
  content: "";
  width: 1px;
  height: 11px;
  background: var(--green-soft);
  margin: 0 16px;
}

.masthead-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.masthead-nav a:hover,
.masthead-nav a:focus-visible {
  color: var(--gold-ink);
  border-bottom-color: var(--gold-ink);
}

/* ---------- signage panels ---------- */

main { padding-bottom: clamp(28px, 5vw, 48px); }

.panel {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  background: var(--cream);
  border: 1px solid var(--green-soft);
  border-radius: var(--radius-panel);
  box-shadow: 0 1px 0 rgba(59, 47, 35, 0.05), 0 12px 28px rgba(59, 47, 35, 0.05);
}

/* mustard pinstripe inside the frame */
.panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--pinstripe);
  border-radius: 9px;
  pointer-events: none;
}

.panel-head {
  text-align: center;
  padding: 22px 18px 16px;
  border-bottom: 4px double var(--green-soft);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.panel-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.panel-body {
  padding: clamp(24px, 4vw, 36px) clamp(18px, 4.5vw, 44px) clamp(30px, 4.5vw, 42px);
  text-align: center;
}

.panel-note {
  font-size: 18.5px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-inline: auto;
}

section[id] { scroll-margin-top: 20px; }

/* ---------- tiled-floor divider band (CSS gradients only) ---------- */

.tile-band {
  height: 22px;
  margin: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid rgba(31, 92, 77, 0.3);
  border-bottom: 1px solid rgba(31, 92, 77, 0.3);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 11px 11px, rgba(200, 155, 60, 0.5) 1.6px, transparent 2.7px),
    repeating-linear-gradient(0deg, rgba(31, 92, 77, 0.22) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(31, 92, 77, 0.22) 0 1px, transparent 1px 22px);
}

/* ---------- arched enamel frames ---------- */

.arch {
  position: relative;
  margin: 0 auto;
  width: min(100%, 420px);
  padding: 10px;
  background: var(--enamel);
  border: 1px solid rgba(31, 92, 77, 0.55);
  border-radius: 999px 999px 16px 16px;
  box-shadow: 0 10px 22px rgba(59, 47, 35, 0.08);
}

/* double rule: inner mustard hairline follows the arch */
.arch::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--pinstripe);
  border-radius: 999px 999px 12px 12px;
  pointer-events: none;
}

.arch img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 999px 999px 9px 9px;
}

.arch-hero { width: min(100%, 440px); }

.arch-hero img {
  aspect-ratio: 4 / 5;
  max-height: 460px;
  max-height: min(54svh, 560px);
}

.arch-side { width: min(100%, 380px); }
.arch-side img { aspect-ratio: 4 / 5; }

.arch-wide { width: min(100%, 640px); }
.arch-wide img { aspect-ratio: 4 / 3; }

.arch-mini { width: min(100%, 280px); }
.arch-mini img { aspect-ratio: 4 / 5; }

/* ---------- hero ---------- */

.hero-body { padding-top: clamp(18px, 3vw, 26px); }

.hero-body .eyebrow { margin-bottom: 18px; }

.hero-promise {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: clamp(19px, 2.4vw, 23px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.hero-cta { margin-top: 22px; }

.cta {
  display: inline-block;
  padding: 13px 38px;
  background: var(--green);
  color: var(--enamel);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(250, 247, 240, 0.35);
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta:hover { background: #174A3E; transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(0.99); }

.cta:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

/* ---------- enseigne (rating plaques) ---------- */

.stars {
  position: relative;
  width: 130px;
  height: 26px;
  margin: 0 auto;
}

.stars-track,
.stars-fill {
  display: flex;
  height: 26px;
}

.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%; /* 4.5 of 5 */
  overflow: hidden;
}

.star {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}

.stars-track .star { fill: #DFD5C2; }
.stars-fill .star { fill: var(--gold-deep); }

.plaques {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.plaque {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: var(--enamel);
  border: 1px solid var(--green-soft);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 17px;
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--enamel), inset 0 0 0 4px var(--pinstripe);
}

.plaque strong {
  font-size: 21px;
  font-weight: 700;
}

.enseigne-body .panel-note { margin-top: 18px; }

/* ---------- le pho (split panel) ---------- */

.split-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.split-text {
  max-width: 46ch;
  margin-inline: auto;
}

.split-text p {
  font-size: 18.5px;
}

.split-text p + p { margin-top: 12px; }

.lede::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: 0.82;
  padding: 4px 10px 0 0;
  font-weight: 600;
  color: var(--gold-ink);
}

@media (min-width: 820px) {
  .split-body {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4.5vw, 52px);
    align-items: center;
  }
}

@media (max-width: 819.98px) {
  .panel-split .arch { order: -1; } /* food first on mobile */
}

/* ---------- la table ---------- */

.panel-photo .arch { margin-bottom: 22px; }

/* ---------- la carte (formal centered menu) ---------- */

.carte-intro { margin-bottom: 24px; }

.panel-carte .arch-mini { margin-bottom: 26px; }

.menu {
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
}

.menu div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.menu dt {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--green);
}

.menu dd {
  margin: 3px auto 0;
  max-width: 44ch;
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.menu-foot {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- visite ---------- */

.visite-place {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--ink);
}

.panel-visite .panel-note { margin-top: 12px; }

.platforms-label {
  margin-top: 28px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.platforms {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.platforms li {
  position: relative;
  padding: 2px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.platforms li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: var(--green-soft);
}

/* ---------- footer colophon ---------- */

.colophon {
  margin-top: clamp(6px, 2vw, 14px);
  border-top: 4px double var(--green-soft);
  padding: 28px 0 40px;
  text-align: center;
}

.colophon-mark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.colophon-text {
  max-width: 76ch;
  margin: 10px auto 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.colophon-text a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.colophon-text a:hover { color: var(--ink); }

.colophon-disclosure {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- mobile hero cap (390px target) ---------- */

@media (max-width: 640px) {
  .arch-hero { width: min(100%, 320px); }

  .arch-hero img {
    max-height: 300px;
    max-height: 42svh; /* hero capped per brief, CTA stays reachable */
  }

  .hero-promise { margin-top: 18px; }
  .hero-cta { margin-top: 18px; }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }

  .cta:hover { transform: none; }
}
