/*
  Say Hello Vietnam: shared tokens and site chrome.
  Loaded by every page before page-specific styles.

  Follows the Say Hello Vietnam brand guidelines v3.0 (11.10.2026).
  Palette: Hello Red #D5442C, Sun Yellow #F0B83D, Ink #252522, Warm Paper #FFF9EF, Palm Green #356354.
  Colour roles:
    --accent       Hello Red, brand emphasis at heading sizes only
    --accent-text  small coloured labels: Palm Green on Paper, Sun Yellow on Ink
                   (the guide rules out yellow small text on Paper)
    --action       Palm Green, every interactive fill, always with Paper text
  Type: Be Vietnam Pro. 800 for page titles, 700 for section titles, 500 for labels and menus,
  400 for body (16-18px, line-height 1.5-1.65). Headings stay within 32-56px.
  Logo: no-tagline header logo shown at 230-300px on desktop, never below 200px; keep clear space
  of 1/4 of the V symbol's height on every side.
  Shape rule: media and panels use --radius (16px); buttons, pills and inputs are full-pill.
  Z-index scale: header 10, mobile menu 20, skip link 30.
*/
:root {
  --bg: #FFF9EF;
  --surface: #F7F0E3;
  --surface-strong: #EFE8DA;
  --ink: #252522;
  --ink-soft: #3A4C42;
  --muted: #536B60;
  --line: #E6DFD1;
  --accent: #D5442C;
  --accent-text: #356354;
  --action: #356354;
  --action-hover: #2C594C;
  --on-action: #FFF9EF;
  --band: #356354;
  --band-ink: #FFF9EF;
  --band-muted: #D5E0D2;
  --band-line: rgba(255, 249, 239, .22);
  --foot: #252522;
  --foot-ink: #E5ECDF;
  --shadow: 0 18px 50px rgba(37, 52, 44, .12);
  --radius: 16px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #252522;
    --surface: #2D2D2A;
    --surface-strong: #363632;
    --ink: #FFF9EF;
    --ink-soft: #EDE6D9;
    --muted: #C8C1B3;
    --line: #42423D;
    --accent: #D5442C;
    --accent-text: #F0B83D;
    --action: #356354;
    --action-hover: #3E7262;
    --on-action: #FFF9EF;
    --band: #356354;
    --band-ink: #FFF9EF;
    --band-muted: #D5E0D2;
    --band-line: rgba(255, 249, 239, .22);
    --foot: #1D1D1B;
    --foot-ink: #E5ECDF;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.no-photo { display: grid; place-items: center; background: var(--surface-strong); color: var(--muted); }
.no-photo::after { content: 'Photo omitted'; max-width: 12ch; padding: 10px; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.35; }
/* Reusable, accessible cue for generated editorial illustrations. */
.illustration-frame { position: relative; }
.illustration-frame > img { width: 100%; height: 100%; object-fit: cover; }
.illustration-label { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid rgba(53, 99, 84, .2); border-radius: 999px; background: rgba(255, 249, 239, .96); color: #356354; box-shadow: 0 2px 8px rgba(37, 37, 34, .14); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: 800; letter-spacing: -.025em; }
h2, h3 { font-weight: 700; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell, .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip, .skip-link { position: absolute; z-index: 30; top: -80px; left: 12px; padding: 12px 16px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: 15px; font-weight: 700; }
.skip:focus, .skip-link:focus { top: 12px; }

/* Header */
/* Not sticky: the logo is shown at its guideline size, so the header is tall. */
.sitehead { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--bg); }
.sitehead-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; padding-block: 20px; }
.brand picture { display: block; }
.brand-logo { width: 232px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a { position: relative; padding-block: 6px; color: var(--ink-soft); transition: color .2s ease; }
.nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--accent); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.menubtn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--action); border-radius: 999px; background: var(--action); color: var(--on-action); font-size: 15px; font-weight: 700; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn:hover { border-color: var(--action-hover); background: var(--action-hover); color: var(--on-action); }
.btn:active { transform: scale(.98); }
.btn.alt { border-color: color-mix(in srgb, var(--ink) 22%, transparent); background: transparent; color: var(--ink); }
.btn.alt:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Small label: used sparingly, never above every heading */
.eyebrow { margin: 0; color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Footer */
.sitefoot { padding: 44px 0; border-top: 1px solid var(--line); background: var(--foot); color: var(--foot-ink); font-size: 15px; }
.footrow { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer-logo { width: 220px; height: auto; }
.foottag { margin: 0; color: var(--foot-ink); opacity: .85; }
.footlinks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footlinks a { transition: color .2s ease; }
.footlinks a:hover { color: #F0B83D; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Mobile: compact logo at its 200px minimum, centred; links sit below it. */
  .sitehead-row { flex-direction: column; gap: 0; }
  .brand { padding-block: 16px 8px; }
  .brand-logo { width: 200px; }
  .sitehead-row > .nav { padding-bottom: 12px; }
  .footer-logo { width: 200px; }
  .footrow { grid-template-columns: 1fr; gap: 16px; }
}

/* Motion: only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
