/* Lavies "Giấy gói & lời nhắn" design tokens. Mirrors the front matter of DESIGN.md:
   change both together. Fonts are self-hosted (CSP: default-src 'self'). */

/* Fraunces: variable opsz 9-144 + wght 400-600, SOFT pinned at 100 and WONK at 0 when downloaded. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-latin-400-600-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-vietnamese-400-600-normal.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: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-latin-400-600-italic.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-vietnamese-400-600-italic.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; }
/* Nunito: variable wght, one file covers 400/600/700. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/nunito-latin-400-700-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/nunito-vietnamese-400-700-normal.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; }
/* Dancing Script 500: ribbon tags, greeting card, short notes only. */
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/dancing-script-latin-500-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/dancing-script-vietnamese-500-normal.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; }

:root {
  /* ---- Palette (DESIGN.md "colors") ---- */
  --paper: #FFFAF5;       /* main background */
  --kraft-50: #F6EBDD;    /* warm section */
  --kraft: #C8A27A;       /* texture, borders, decor; never text */
  --kraft-deep: #7A5B3E;  /* kraft-toned text when needed: 5.97:1 on paper */
  --mint-50: #EAF1E8;     /* cool section */
  --mint: #A8C3A6;        /* wrapping-paper decor */
  --sage-deep: #4F6B52;   /* secondary accent text and links: 5.69:1 on paper */
  --sage-ink: #3E5641;    /* hover of sage-deep */
  --blush-50: #FCEEF0;    /* soft highlight */
  --blush: #F4C6CF;       /* decor, chips, selected states (text on it: cocoa or peony-deep) */
  --peony: #B23A62;       /* the ONE primary action colour: white text 5.71:1 */
  --peony-deep: #8E2B4D;  /* hover/active of peony: white text 8.07:1 */
  --butter: #F3DC8F;      /* tiny highlights */
  --rose: #E9AEBD;        /* wrap sheet behind deep-pink/red bouquets; decor only */
  --cocoa: #3B2F2C;       /* body text: 12.4:1 on paper */
  --cocoa-soft: #6E605A;  /* secondary text: 5.81:1 on paper, 5.12:1 on kraft-50 */
  --line: #EADFD3;        /* hairlines (decorative) */
  --line-strong: #A08D80; /* control boundary: 3.17:1 on white (WCAG 1.4.11) */
  --white: #FFFFFF;
  --danger: #A8322A;      /* form errors only: 6.66:1 on white */
  --sage-10: rgba(79, 107, 82, 0.10);
  --sage-4: rgba(79, 107, 82, 0.05);

  /* ---- Shadows: paper only, never heavy ---- */
  --shadow-paper: 0 1px 1px rgba(59, 47, 44, 0.04), 0 6px 14px -8px rgba(59, 47, 44, 0.22);
  --shadow-pop: 0 10px 28px -6px rgba(59, 47, 44, 0.16), 0 2px 6px rgba(59, 47, 44, 0.06);
  --shadow-soft: var(--shadow-paper);
  --shadow-card: var(--shadow-paper);

  /* ---- Type ---- */
  --font-display: "Fraunces", "Lora", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;
  --display-soft: "SOFT" 100, "WONK" 0; /* no-op on the pinned files, keeps a full-axis build soft */

  /* Fluid scale: 390px phone -> 1440px desktop. */
  --fs-hero: clamp(3.5rem, 2.2rem + 5.2vw, 6.5rem);       /* 56 -> 104 */
  --fs-display: clamp(2.5rem, 1.85rem + 2.6vw, 4.25rem);  /* 40 -> 68, page titles */
  --fs-heading: clamp(2.25rem, 1.6rem + 2.67vw, 4rem);    /* 36 -> 64, h2 */
  --fs-subhead: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);      /* 24 -> 32 */
  --fs-title: 1.1875rem;
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);    /* 16 -> 17 */
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;
  --fs-script: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --lh-body: 1.6;
  --tracking-tight: -0.02em;
  --tracking-label: 0.04em;

  /* ---- Shape: 4-12px, no arches ---- */
  --radius-xs: 4px;
  --radius-sm: 6px;   /* photos */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --rounded-sm: var(--radius-sm);
  --rounded-md: var(--radius-md);
  --rounded-lg: var(--radius-lg);
  --rounded-pill: var(--radius-pill);

  /* ---- Space ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px; --space-32: 128px;
  --container: 1240px;
  --gutter: 16px;
  --section-pad: clamp(64px, 3.5rem + 5vw, 144px);
  --dock-h: 64px;
  --header-h: 64px;

  /* ---- Motion "bloom": opacity/transform only, all off under prefers-reduced-motion ---- */
  --ease-bloom: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-quick: 250ms;
  --dur-soft: 450ms;
  --dur-bloom: 800ms;
  --dur-slow: 1200ms;
  --ease: var(--ease-bloom);
  --ease-out: var(--ease-bloom);
  --dur-fast: 160ms;
  --dur-base: var(--dur-quick);
  --dur-overlay: 350ms;
  --dur-reveal: var(--dur-bloom);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 80px; } }
