﻿/* Shared design tokens — DO NOT rename; sections depend on these. */
:root {
  --cream: #FBF7F0;
  --ivory: #FFFDF8;
  --blush: #F3EADB;
  --blush-deep: #D9C39A;
  --rose: #8C672D; /* bronze accent (no pink) — QA2: sẫm hơn #A27B3E để chữ nhỏ đạt ≥4.5:1 trên ngà */
  --peach: #F5EDE0;
  --sage: #EDE6D8;
  --lavender: #E9E1D2;
  --gold: #B8893B;
  --gold-light: #D9B66E;
  --gold-deep: #8A6224;
  /* Đỏ son (sơn mài) — điểm nhấn tiết chế, luôn đi cùng vàng. --red-deep cho chữ nhỏ trên kem (≥4.5:1). */
  --red: #A8201A;
  --red-deep: #7E1612;
  --red-gradient: linear-gradient(135deg, #6E120F 0%, #9A1D17 30%, #B8322A 50%, #9A1D17 70%, #6E120F 100%);
  --ink: #3B332B;
  --ink-soft: #6E6255;
  /* QA2: dải giữa bớt nhạt (#F3DEA4 → #E6C988) để chữ vàng ngắn ("Tiệc Cưới", "Album") không chìm vào nền ngà */
  --gold-gradient: linear-gradient(135deg, #7E5A22 0%, #B8893B 32%, #E6C988 50%, #B8893B 68%, #7E5A22 100%);

  --font-script: "Great Vibes", "Dancing Script", cursive;
  --font-display: "Playfair Display", "Cormorant Garamond", serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Be Vietnam Pro", system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --page-max: 480px; /* mobile-first; content column on desktop */
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Gold foil text helper */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.script { font-family: var(--font-script); font-weight: 400; }

/* Page column: every section uses <section class="page" id="...">  */
.page {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 72px var(--gutter);
  overflow: hidden;
}

/* Scroll reveal: add class="reveal" to any element; main.js adds .is-in */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Desktop: show the invitation as a phone-width column on a soft backdrop */
@media (min-width: 700px) {
  body { background: radial-gradient(ellipse at top, #FFFDF8 0%, #F3EADB 55%, #E4D5B8 100%) fixed; }
  #app { max-width: var(--page-max); margin: 0 auto; background: var(--cream); box-shadow: 0 0 80px rgba(59,51,43,.16); min-height: 100vh; }
}
