/* ==========================================================================
   MIYO BEAUTY ATELIER — Foundations
   日式美睫嫁接工作室 / Japanese Eyelash Extension Atelier

   The palette is built around warm beiges, milky champagnes, and a
   signature rose-gold "MIYO bronze" pulled from the brand mark. Type
   pairs an English serif (display) with a Traditional Chinese sans
   (body) and a brushed handwriting accent for headlines on hero art.
   ========================================================================== */

/* ---------- Webfonts ----------
   Body / UI:  Noto Sans TC — closest free match to the boutique TC sans
               used on the landing page and course flyers.
   Display:   Cormorant Garamond — high-contrast wide serif that mirrors
               the english "MIYO" wordmark on the logo.
   Brush:     Huninn — TC-native handwriting (full traditional coverage)
               that matches the handwritten 美感 / 量身定制 phrases on
               the course art. Replaces Ma Shan Zheng (which is SC and
               drops glyphs in TC strings).
   --------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@400;500;600;700&family=Huninn&display=swap');

:root {
  /* ----- Brand Bronze (primary) ----------------------------------------
     pulled from the logo mark and the recurring caption pills */
  --bronze-900: #6B4A30;   /* deepest — small headings on cream */
  --bronze-800: #855E40;   /* CTA bg */
  --bronze-700: #9A7253;   /* default brand color, body links */
  --bronze-600: #B08866;   /* logo bronze, headlines on cream */
  --bronze-500: #C49A78;   /* sub-headings, decorative accents */
  --bronze-400: #D4B392;   /* tags, soft borders */
  --bronze-300: #E2C9AE;   /* hairlines, dividers on cream */
  --bronze-200: #EFDBC5;   /* card hover, soft fills */
  --bronze-100: #F6E8D6;   /* tinted card surface */

  /* ----- Cream / Champagne neutrals ------------------------------------ */
  --cream-50:  #FBF5EC;    /* page background */
  --cream-100: #F6EEE1;    /* default surface */
  --cream-200: #EFE3D0;    /* raised card */
  --cream-300: #E4D2B8;    /* subtle border on cream */
  --cream-400: #D6BFA1;    /* deeper accent border */
  --milk-white:#FFFCF6;    /* cards / panels — never pure white */

  /* ----- Ink (text) — warm grayed-browns, never pure black ------------- */
  --ink-900: #2E241B;      /* primary text on cream */
  --ink-800: #463629;      /* default body */
  --ink-700: #5C4736;      /* secondary text */
  --ink-500: #8B7560;      /* tertiary / captions */
  --ink-400: #A89683;      /* placeholder / disabled */
  --ink-300: #C7B9A6;      /* dividers on white */

  /* ----- Soft accents (sparingly) -------------------------------------- */
  --rose-blush: #E8C7B6;   /* the lash-art rose used in course graphics */
  --gold-glow:  #E8C886;   /* highlight orb / decorative circle */
  --sage-paper: #C9C2A8;   /* gridded paper background tint */

  /* ----- Semantic ------------------------------------------------------ */
  --bg:            var(--cream-50);
  --bg-elevated:   var(--milk-white);
  --bg-tinted:     var(--bronze-100);
  --surface-card:  var(--milk-white);
  --surface-pill:  var(--cream-200);

  --fg:            var(--ink-900);
  --fg-body:       var(--ink-800);
  --fg-muted:      var(--ink-500);
  --fg-faint:      var(--ink-400);

  --brand:         var(--bronze-600);
  --brand-strong:  var(--bronze-800);
  --brand-soft:    var(--bronze-200);

  --border:        var(--cream-300);
  --border-strong: var(--bronze-400);
  --hairline:      rgba(154, 114, 83, 0.18);

  /* ----- Type families ------------------------------------------------- */
  --font-display:  "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-serif-tc: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  --font-sans:     "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brush:    "Huninn", "Noto Serif TC", "PingFang TC", cursive;

  /* ----- Type scale (display / body / micro) --------------------------- */
  --fs-display-xl: 64px;   /* hero on flyers / landing */
  --fs-display-lg: 48px;
  --fs-display-md: 36px;
  --fs-h1: 32px;
  --fs-h2: 26px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-micro: 11px;

  --lh-tight:   1.15;
  --lh-snug:    1.35;
  --lh-body:    1.7;     /* TC reads better with airy line-height */
  --lh-loose:   1.9;

  /* generous letter-spacing on uppercase english — matches "BEAUTY ATELIER" */
  --tracking-wide:   0.18em;
  --tracking-wider:  0.32em;
  --tracking-widest: 0.5em;
  --tracking-tc:     0.08em; /* TC headings get a touch of breathing room */

  /* ----- Radii — generous, capsule-y ----------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-pill: 999px;

  /* ----- Spacing (4px grid) -------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ----- Shadows — soft, cream-tinted, never gray ---------------------- */
  --shadow-sm:  0 1px 2px rgba(110, 78, 50, 0.06);
  --shadow-md:  0 6px 18px rgba(110, 78, 50, 0.08);
  --shadow-lg:  0 18px 40px rgba(110, 78, 50, 0.12);
  --shadow-card:0 12px 32px rgba(154, 114, 83, 0.10), 0 2px 6px rgba(154, 114, 83, 0.06);
  --shadow-inset:inset 0 1px 0 rgba(255, 252, 246, 0.7);

  /* ----- Brand gradients — warm wash, never bluish-purple -------------- */
  --grad-cream:    linear-gradient(180deg, #FBF5EC 0%, #F2E2C9 100%);
  --grad-bronze:   linear-gradient(135deg, #C49A78 0%, #9A7253 100%);
  --grad-glow:     radial-gradient(60% 60% at 50% 40%, #F4DDB6 0%, rgba(244,221,182,0) 70%);
  --grad-arch:     linear-gradient(180deg, #F4E5CC 0%, #E8D2B0 100%);

  /* ----- Motion ------------------------------------------------------- */
  --ease-out-soft:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --duration-fast:  150ms;
  --duration-base:  240ms;
  --duration-slow:  420ms;
}

/* ==========================================================================
   Element defaults — semantic typography
   ========================================================================== */

html, body {
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-tc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-serif-tc);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tc);
  color: var(--fg);
}

h2, .h2 {
  font-family: var(--font-serif-tc);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tc);
  color: var(--fg);
}

h3, .h3 {
  font-family: var(--font-serif-tc);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--fg);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--fg);
}

.display {
  font-family: var(--font-serif-tc);
  font-size: var(--fs-display-lg);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tc);
  color: var(--bronze-700);
}

.display-en {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--bronze-600);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bronze-600);
}

.handwriting {
  font-family: var(--font-brush);
  font-weight: 400;
  color: var(--bronze-700);
  letter-spacing: 0.04em;
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-body);
}

small, .caption {
  font-size: var(--fs-caption);
  color: var(--fg-muted);
  letter-spacing: var(--tracking-tc);
}

a {
  color: var(--bronze-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-fast) var(--ease-out-soft),
              border-color var(--duration-fast) var(--ease-out-soft);
}
a:hover {
  color: var(--bronze-800);
  border-bottom-color: var(--bronze-400);
}

hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: var(--space-8) 0;
}
