/* ==========================================================================
   Lace & Allure — Foundation
   Apple-style structure: system type, deep whitespace, restrained colour.
   ========================================================================== */

:root {
  /* --- Brand palette --- */
  --ink:            #0E0D0B;
  --ink-soft:       #1D1B17;
  --ivory:          #F7F3EC;
  --paper:          #FFFFFF;
  --mist:           #F5F5F7;   /* the neutral tile grey */
  --gold:           #B08D57;
  --gold-bright:    #C9A227;
  --gold-wash:      #EFE3D0;

  /* --- Semantic surfaces --- */
  --bg:             var(--paper);
  --bg-alt:         var(--mist);
  --bg-inverse:     var(--ink);
  --surface:        var(--paper);
  --surface-raised: #FBFAF8;

  /* --- Text --- */
  --text:           #12110F;
  --text-secondary: #6E6A63;
  --text-tertiary:  #9A958C;
  --text-on-dark:   #F4F1EC;
  --text-on-dark-2: rgba(244, 241, 236, 0.66);

  /* --- Lines & accents --- */
  --hairline:        rgba(18, 17, 15, 0.10);
  --hairline-strong: rgba(18, 17, 15, 0.18);
  --focus:           #B08D57;

  /* --- Platform brand colours --- */
  --shopee:      #EE4D2D;
  --tiktok:      #111111;
  --tiktok-cyan: #25F4EE;
  --tiktok-pink: #FE2C55;
  --lazada:      #0F146D;
  --lazada-pink: #F5599D;

  /* --- Typography --- */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Hoefler Text", Georgia, "Times New Roman", serif;

  /* Fluid type scale — very large display sizes, tight tracking */
  --fs-hero:    clamp(2.75rem, 7.5vw, 5.5rem);
  --fs-display: clamp(2.25rem, 5vw, 3.75rem);
  --fs-h2:      clamp(1.75rem, 3.4vw, 2.75rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:    clamp(1.0625rem, 1.55vw, 1.3125rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-micro:   0.8125rem;

  /* --- Space --- */
  --gutter:     clamp(20px, 5vw, 32px);
  --section-y:  clamp(64px, 11vw, 140px);
  --max:        1280px;
  --max-narrow: 800px;
  --max-text:   680px;

  /* --- Radii --- */
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-pill: 980px;

  /* --- Elevation --- */
  --shadow-sm: 0 1px 2px rgba(18,17,15,.05), 0 4px 12px rgba(18,17,15,.05);
  --shadow-md: 0 2px 6px rgba(18,17,15,.06), 0 12px 32px rgba(18,17,15,.09);
  --shadow-lg: 0 8px 24px rgba(18,17,15,.10), 0 28px 64px rgba(18,17,15,.14);

  /* --- Motion --- */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur:      320ms;
  --dur-slow: 620ms;

  --nav-h: 52px;
}

/* Dark mode: honour the OS, but let an explicit data-theme win. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:             #000000;
    --bg-alt:         #0B0B0C;
    --bg-inverse:     #0B0B0C;
    --surface:        #121214;
    --surface-raised: #17171A;
    --text:           #F4F1EC;
    --text-secondary: #A6A29B;
    --text-tertiary:  #7C7871;
    --hairline:        rgba(244, 241, 236, 0.12);
    --hairline-strong: rgba(244, 241, 236, 0.22);
    --mist:            #0B0B0C;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.4);
    --shadow-md: 0 2px 6px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.55), 0 28px 64px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg:             #000000;
  --bg-alt:         #0B0B0C;
  --bg-inverse:     #0B0B0C;
  --surface:        #121214;
  --surface-raised: #17171A;
  --text:           #F4F1EC;
  --text-secondary: #A6A29B;
  --text-tertiary:  #7C7871;
  --hairline:        rgba(244, 241, 236, 0.12);
  --hairline-strong: rgba(244, 241, 236, 0.22);
  --mist:            #0B0B0C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.4);
  --shadow-md: 0 2px 6px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.55), 0 28px 64px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }

p { text-wrap: pretty; }

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* The serif is an accent only — wordmark and eyebrows — never body copy. */
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
}

.muted   { color: var(--text-secondary); }
.tiny    { font-size: var(--fs-micro); color: var(--text-tertiary); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--max-narrow); }
.container-text   { max-width: var(--max-text); }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(44px, 7vw, 84px); }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--text-on-dark-2); }

.section-head { max-width: var(--max-text); margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 + .lead { margin-top: 16px; }

.stack > * + * { margin-top: var(--stack-gap, 16px); }
.divider { height: 1px; background: var(--hairline); border: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 200; background: var(--ink); color: var(--text-on-dark);
  padding: 12px 22px; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Anything JS-dependent stays hidden until JS confirms it can run. */
.no-js-hide { display: none; }
.js .no-js-hide { display: revert; }
