@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable-Vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  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: "Inter";
  src: url("assets/fonts/Inter-Variable-Vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

:root {
  color-scheme: light;
  --jt-forest: #1F2F24;
  --jt-moss: #354534;
  --jt-champagne: #C9A96A;
  --jt-champagne-light: #F2DDAE;
  --jt-ivory: #F8F5ED;
  --jt-charcoal: #2B2B28;
  --jt-white: #FFFEFA;
  --jt-sand: #E9E1D2;
  --jt-mist: #E9EFEB;
  --jt-success: #28724C;
  --jt-warning: #8A5A18;
  --jt-danger: #B73B36;
  --jt-info: #286C83;
  --gold-ink: #70552B;
  /* Editorial surfaces are theme-aware. Photo/foil pairings stay invariant:
     UI theme must never put Forest ink on a dark photograph. */
  --shadow-editorial: 0 2px 4px rgb(31 47 36 / 3%), 0 14px 30px -12px rgb(31 47 36 / 14%), 0 32px 60px -28px rgb(31 47 36 / 16%);
  --shadow-editorial-hover: 0 4px 8px rgb(31 47 36 / 5%), 0 20px 48px -18px rgb(31 47 36 / 22%);
  --shadow-editorial-utility: 0 8px 28px -20px rgb(31 47 36 / 32%);
  --photo-overlay: linear-gradient(to top, rgb(31 47 36 / 85%) 0%, transparent 60%);
  --photo-copy: var(--jt-ivory);
  --photo-copy-secondary: #EFE5D0;
  --photo-caption-surface: rgb(31 47 36 / 90%);
  --photo-focus-shadow: 0 0 0 calc(var(--focus-width) + var(--focus-offset) + var(--border-width-emphasis)) var(--jt-forest);
  --photo-save-surface: rgb(248 245 237 / 92%);
  --photo-save-ink: var(--jt-forest);
  --photo-save-selected-surface: var(--jt-forest);
  --photo-save-selected-ink: var(--jt-ivory);
  --photo-save-shadow: 0 3px 12px rgb(0 0 0 / 10%);
  --photo-scope-surface: rgb(31 47 36 / 86%);
  --photo-scope-line: rgb(201 169 106 / 60%);
  --photo-copy-shadow: 0 1px 8px rgb(0 0 0 / 35%);
  --foil-edge: var(--jt-champagne);
  --foil-ink: #47351C;
  --foil-surface: linear-gradient(135deg, #EADCBC, #F8F0DA 48%, #D7BD87);
  --foil-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 3px 8px rgb(0 0 0 / 16%);
  --radius-editorial-card: var(--space-tile);
  --space-editorial-mobile-gap: 28px;
  --space-editorial-scope-inline: 9px;
  --space-editorial-note: 3px;
  --editorial-index-min: 30px;
  --editorial-photo-position: 50% 58%;
  --type-editorial-photo-price: clamp(1.2rem, 2vw, 1.75rem);
  --type-editorial-card-title: clamp(1.1rem, 1.5vw, 1.4rem);
  --type-editorial-spotlight-title: clamp(1.75rem, 2.7vw, 2.5rem);
  --type-editorial-spotlight-mobile: 1.8rem;
  --type-editorial-photo-price-mobile: 1.5rem;
  --line-editorial-note: 1.5;
  --line-editorial-reading: 1.65;
  --line-editorial-trust: 1.6;
  --tracking-editorial-foil: .02em;

  --canvas: var(--jt-ivory);
  --surface: var(--jt-white);
  --surface-raised: #FFFFFF;
  --surface-soft: #F1EEE5;
  --ink: var(--jt-charcoal);
  --ink-secondary: #4E514B;
  --ink-muted: #62655F;
  --ink-inverse: var(--jt-ivory);
  --line: #D8D3C8;
  --line-strong: #BDB6A7;
  --primary: var(--jt-forest);
  --primary-foreground: var(--jt-ivory);
  --accent: var(--jt-champagne);
  --accent-foreground: #211D15;
  --success: var(--jt-success);
  --success-soft: #E5F0E8;
  --warning: var(--jt-warning);
  --warning-soft: #F6EDD9;
  --danger: var(--jt-danger);
  --danger-soft: #F8E8E5;
  --danger-foreground: var(--jt-ivory);
  --info: var(--jt-info);
  --info-soft: #E4F0F3;
  --hero-copy: #FFFEFA;
  --hero-copy-soft: rgb(255 254 250 / 88%);
  --hero-light-overlay: linear-gradient(90deg, rgb(15 24 18 / 78%) 0%, rgb(15 24 18 / 53%) 45%, rgb(15 24 18 / 5%) 100%);
  --hero-phone-overlay: linear-gradient(0deg, rgb(17 29 22 / 84%), transparent 80%);
  --hero-night-overlay: linear-gradient(90deg, rgb(9 20 15 / 10%), rgb(9 20 15 / 15%) 36%, rgb(9 20 15 / 90%) 100%);
  --scrim: rgb(15 24 18 / 52%);
  --device-frame: #141512;
  --device-frame-line: #8D8D84;
  --night-canvas: #121A15;
  --night-surface: #19241D;
  --night-raised: #202D24;
  --night-soft: #26362B;
  --night-line: #3C4B3F;
  --night-line-strong: #59695A;
  --night-primary: #31513B;
  --night-success: #71C994;
  --night-success-soft: #20392A;
  --night-warning: #E6BB6B;
  --night-warning-soft: #3A2E1A;
  --night-danger: #F08B7D;
  --night-danger-soft: #432724;
  --night-info: #7DC5D8;
  --night-info-soft: #1F3942;
  --night-copy-soft: #E0E1D8;
  --night-copy-muted: #B6B9B0;
  --night-control-boundary: #8D9A8F;

  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Inter", Arial, sans-serif;
  /* Core reading scale plus named optical exceptions used by the approved boards. */
  --type-micro: 0.625rem;
  --type-overline: 0.6875rem;
  --type-xs: 0.75rem;
  --type-ui: 0.8125rem;
  --type-sm: 0.875rem;
  --type-lead: 0.9375rem;
  --type-md: 1rem;
  --type-price: 1.0625rem;
  --type-emphasis: 1.125rem;
  --type-lg: 1.25rem;
  --type-section: 1.3125rem;
  --type-timing: 1.375rem;
  --type-phone-title: 1.5625rem;
  --type-phone-brand: 1.6875rem;
  --type-font-sample-display: 1.5rem;
  --type-font-sample-ui: 1.375rem;
  --type-stationery-wordmark: 1.75rem;
  --type-letterhead-wordmark: 1.5rem;
  --type-wordmark-specimen: 2.9375rem;
  --type-display-specimen: 3.25rem;
  --type-brand-wordmark: clamp(1.75rem, 3vw, 2.625rem);
  --type-page-title: clamp(2rem, 5vw, 4.25rem);
  --type-page-title-mobile: 2.25rem;
  --type-section-title: clamp(1.625rem, 3vw, 2.375rem);
  --type-hero-title: clamp(1.875rem, 4vw, 3.5rem);
  --type-detail-title: clamp(1.3125rem, 2vw, 1.75rem);
  --type-night-title: clamp(1.5rem, 3vw, 2.375rem);
  --type-xl: clamp(1.75rem, 2.8vw, 2.5rem);
  --type-display: clamp(2.6rem, 6vw, 5.5rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --line-wordmark: 0.9;
  --line-display-tight: 0.95;
  --line-display: 0.99;
  --line-feature: 1.02;
  --line-tight: 1.08;
  --line-utility: 1.1;
  --line-meta: 1.15;
  --line-card: 1.16;
  --line-heading: 1.18;
  --line-label: 1.2;
  --line-data: 1.25;
  --line-ui: 1.3;
  --line-support: 1.35;
  --line-copy: 1.4;
  --line-body: 1.55;
  --tracking-meta: 0.08em;
  --tracking-label: 0.14em;
  --tracking-overline: 0.12em;
  --tracking-heading: -0.02em;
  --tracking-section: -0.025em;
  --tracking-hero: -0.035em;
  --tracking-editorial: -0.04em;
  --tracking-wordmark: -0.045em;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-tiny: 2px;
  --space-micro: 4px;
  --space-subtle: 6px;
  --space-inset: 10px;
  --space-detail: 12px;
  --space-tile: 14px;
  --space-comfort: 18px;
  --space-section-gap: 20px;
  --space-hero-inner: 36px;
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 12px;
  --radius-4: 16px;
  --radius-5: 24px;
  --radius-bar: 3px;
  --radius-phone: 34px;
  --radius-phone-screen: 26px;
  --radius-circle: 50%;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-width-emphasis: 2px;
  --device-frame-border-width: 2px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --focus-ring: var(--jt-forest);
  --control-height: 48px;
  --target-min: 44px;

  --content-max: 1200px;
  --brand-wordmark-width: 13rem;
  --brand-lockup-width: 23rem;
  --brand-header-lockup-min-width: 9rem;
  --brand-header-lockup-width: 13rem;
  --brand-mobile-wordmark-width: 6rem;
  --brand-min-wordmark: 24px;
  --brand-min-monogram-size: 16px;
  --brand-min-lockup-width: 80px;
  --grid-columns: 12;
  --grid-gutter: 24px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-height: 72px;
  --layer-dock: 35;
  --layer-intent: 39;
  --layer-header: 40;
  --layer-toast: 60;
  --dock-height: 68px;
  --hero-light-focus: 50% 57%;
  --hero-light-focus-mobile: 59% center;
  --hero-dark-focus: 18% 38%;
  --hero-dark-focus-mobile: 18% 46%;

  --shadow-soft: 0 10px 30px rgb(31 47 36 / 8%);
  --shadow-raised: 0 18px 46px rgb(31 47 36 / 14%);
  --shadow-sheet: 0 24px 64px rgb(15 24 18 / 24%);
  --shadow-button-hover: 0 4px 12px rgb(31 47 36 / 12%);
  --motion-fast: 120ms;
  --motion-press: 120ms;
  --motion-card: 160ms;
  --motion-sheet: 240ms;
  --motion-route: 320ms;
  --motion-distance-press: 1px;
  --motion-distance-hover: 2px;
  --motion-distance-dialog: var(--space-detail);
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-size-lg: 24px;
  --icon-stroke: 1.8px;
  --status-dot-size: var(--space-subtle);
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #121A15;
  --surface: #19241D;
  --surface-raised: #202D24;
  --surface-soft: #26362B;
  --ink: #F8F5ED;
  --ink-secondary: #D7D6CE;
  --ink-muted: #B6B9B0;
  --ink-inverse: #1F2F24;
  --line: #3C4B3F;
  --line-strong: #59695A;
  --primary: #31513B;
  --primary-foreground: #F8F5ED;
  --accent: #D5B679;
  --accent-foreground: #211D15;
  --success: #71C994;
  --success-soft: #20392A;
  --warning: #E6BB6B;
  --warning-soft: #3A2E1A;
  --danger: #F08B7D;
  --danger-soft: #432724;
  --danger-foreground: var(--jt-forest);
  --info: #7DC5D8;
  --info-soft: #1F3942;
  --gold-ink: #F2DDAE;
  --focus-ring: #F2DDAE;
  --shadow-soft: 0 10px 30px rgb(0 0 0 / 20%);
  --shadow-raised: 0 18px 46px rgb(0 0 0 / 32%);
  --shadow-sheet: 0 24px 64px rgb(0 0 0 / 44%);
  --shadow-editorial: 0 2px 4px rgb(0 0 0 / 12%), 0 14px 30px -12px rgb(0 0 0 / 35%), 0 32px 60px -28px rgb(0 0 0 / 40%);
  --shadow-editorial-hover: 0 4px 8px rgb(0 0 0 / 18%), 0 20px 48px -18px rgb(0 0 0 / 48%);
  --shadow-editorial-utility: 0 8px 28px -20px rgb(0 0 0 / 60%);
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-press: 0ms; --motion-card: 0ms; --motion-sheet: 0ms; --motion-route: 0ms; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
