/* ==================== PALETTE & TYPE ====================
   The body of the invitation is a traditional Vietnamese wedding card: lacquer-red stock
   with gold-foil lettering, cream paper inserts pasted on top, indigo for the night scenes.
   Two typefaces only: a script for the couple's names, one serif for everything else. */
:root {
  --vermilion: #a31d23;        /* son: lacquer-red card stock */
  --vermilion-deep: #7c1218;   /* shaded red, second panel and pressed edges */
  --gold: #e9c47a;             /* thep vang: foil lettering on red and indigo */
  --gold-bright: #f7e2a8;      /* highlight in the foil gradient */
  --ochre: #a9781f;            /* the same gold printed on cream paper (darker so it reads) */
  --parchment: #fbf3df;        /* diep paper: inserts, and text on dark panels */
  --parchment-warm: #f2e3c0;   /* shaded paper */
  --paper-pure: #fffaf0;       /* photo mounts */
  --ink: #2e1a14;              /* text on paper */
  --ink-mid: #5c4234;
  --ink-muted: #7a5e4e;
  --indigo: #2b3a67;
  --indigo-deep: #1a2244;      /* night sky above the gate */
  --sage: #55806a;
  --hairline: rgba(46, 26, 20, 0.16);

  --font-script: 'Italianno', 'Great Vibes', cursive;
  --font-text: 'Fraunces', 'Lora', Georgia, serif;

  --foil: linear-gradient(170deg, var(--gold-bright) 0%, var(--gold) 38%, #c99a45 62%, var(--gold-bright) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  background: radial-gradient(circle at top center, #5a1418 0%, #3a0c10 58%, #26070a 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.invitation-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--vermilion);
  box-shadow: 0 0 80px rgba(20, 4, 6, 0.6);
  overflow-x: hidden;
}

/* The page cannot be scrolled down until the guest has reached the last film scene. */
html.is-scroll-locked, html.is-scroll-locked body { overflow: hidden; overscroll-behavior: none; }
html.is-scroll-locked .cinema-section { touch-action: none; }

/* Gold-foil lettering: used only for names, the big date and panel titles on dark stock. */
.foil-text {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
