/* =========================================================================
   YAREY Spa & Wellness — Brand tokens (CSS)
   Source of truth: tokens/brand-tokens.json  ·  Guide: BRAND_GUIDELINES.md
   Usage: <link rel="stylesheet" href="tokens/brand.css">  (paths are relative to this file)
   ========================================================================= */

/* ---------- Fonts (all SIL Open Font License, bundled in /fonts) ---------- */
@font-face { font-family: "Bodoni Moda"; src: url("./fonts/BodoniModa-Variable.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("./fonts/BodoniModa-Italic-Variable.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("./fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("./fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("./fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("./fonts/Mulish-Variable.ttf") format("truetype"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("./fonts/Mulish-Italic-Variable.ttf") format("truetype"); font-weight: 200 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("./fonts/Kanit-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("./fonts/Kanit-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("./fonts/Kanit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("./fonts/Kanit-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url("./fonts/NotoSansThai-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("./fonts/Oswald-Variable.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }

:root {
  /* ---------- Colour ---------- */
  --yarey-teak:        #7A4A2E;  /* primary brand colour: logo mark, accents, bands, icons */
  --yarey-deep-teak:   #4F2F1C;  /* headlines, prices, dark backgrounds */
  --yarey-sand:        #F1E8DA;  /* main background (never pure white for brand pieces) */
  --yarey-sage:        #C9D3BD;  /* offer / info block background */
  --yarey-sage-deep:   #5D6B55;  /* tagline, secondary labels */
  --yarey-sage-ink:    #2F3B2C;  /* body text on sage */
  --yarey-ink:         #2A2119;  /* body text on sand / white */
  --yarey-muted:       #9A8572;  /* captions, meta, small labels */
  --yarey-line:        #D9C3A5;  /* hairlines, borders, secondary text on deep teak */
  --yarey-highlight:   #F2D06B;  /* ONE key fact per design only (e.g. per-person price) */
  --yarey-white:       #FFFFFF;
  --yarey-photo-scrim: linear-gradient(180deg, rgba(20,14,8,.60) 0%, rgba(20,14,8,.08) 45%, rgba(20,14,8,.18) 100%);

  /* ---------- Type families ---------- */
  --font-wordmark: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;                 /* YAREY wordmark & rare elegant titles */
  --font-headline: "Barlow Condensed", "Kanit", "Oswald", "Avenir Next Condensed", "Arial Narrow", sans-serif; /* headlines & prices (Kanit covers Thai + ฿, Oswald covers Cyrillic) */
  --font-body:     "Mulish", "Noto Sans Thai", "Avenir Next", "Helvetica Neue", Arial, sans-serif;            /* body, labels, UI (Noto Sans Thai covers Thai + ฿) */
  --font-thai-headline: "Kanit", "Noto Sans Thai", sans-serif;
  --font-thai-body:     "Noto Sans Thai", "Kanit", sans-serif;
  --font-cjk:      "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;          /* load from Google Fonts when needed */

  /* ---------- Type settings ---------- */
  --wordmark-tracking: 0.32em;   /* YAREY always tracked */
  --tagline-tracking:  0.30em;   /* MASSAGE · SAUNA · PLUNGE (live UI labels) */
  --label-tracking:    0.12em;   /* small uppercase labels / pills */
  --headline-leading:  1.02;
  --body-leading:      1.45;

  /* Social canvas type scale (px at 1080 px width) */
  --fs-wordmark-feed: 96px;  --fs-wordmark-story: 120px;
  --fs-tagline-feed:  24px;  --fs-tagline-story:  28px;
  --fs-h1-feed:       62px;  --fs-h1-story:       78px;
  --fs-sub-feed:      23px;  --fs-sub-story:      28px;
  --fs-body-feed:     21px;  --fs-body-story:     25px;
  --fs-price-feed:    84px;  --fs-price-story:   104px;
  --fs-small-feed:    19px;  --fs-small-story:    23px;

  /* Web type scale (rem, 16px base) */
  --fs-web-display: 3.5rem; --fs-web-h1: 2.5rem; --fs-web-h2: 1.75rem; --fs-web-h3: 1.25rem;
  --fs-web-body: 1rem; --fs-web-small: .875rem; --fs-web-label: .75rem;

  /* ---------- Space, radius, borders ---------- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 40px; --space-8: 56px; --space-9: 80px;
  --safe-margin-feed: 36px;          /* min. side margin on 1080 px social canvases */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --border-brand: 2px solid var(--yarey-teak);
  --shadow-soft: 0 6px 24px rgba(79, 47, 28, .10);

  /* ---------- Signature graphic ---------- */
  --scallop-size: 34px;              /* scalloped band: 34 px repeat, 12 px circles */
}

/* ---------- Ready-made classes (optional) ---------- */
.yarey-wordmark { font-family: var(--font-wordmark); font-weight: 470; letter-spacing: var(--wordmark-tracking); text-transform: uppercase; }
.yarey-tagline  { font-family: var(--font-body); font-weight: 600; letter-spacing: var(--tagline-tracking); text-transform: uppercase; }
.yarey-headline { font-family: var(--font-headline); font-weight: 800; line-height: var(--headline-leading); text-transform: uppercase; color: var(--yarey-deep-teak); }
.yarey-label    { font-family: var(--font-body); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; }
.yarey-body     { font-family: var(--font-body); font-weight: 500; line-height: var(--body-leading); color: var(--yarey-ink); }
.yarey-price    { font-family: var(--font-headline); font-weight: 800; color: var(--yarey-deep-teak); line-height: 1; }
.yarey-price-was { font-family: var(--font-body); font-weight: 700; text-decoration: line-through; color: #6B5A48; }
.yarey-highlight { background: var(--yarey-highlight); color: var(--yarey-ink); font-family: var(--font-body); font-weight: 800; padding: 4px 10px; }
.yarey-pill     { background: var(--yarey-sand); color: var(--yarey-deep-teak); font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; padding: 10px 18px; border-radius: var(--radius-sm); text-transform: uppercase; }
.yarey-scallop-band {            /* teak band with sand scallops on top edge */
  height: var(--scallop-size);
  background: radial-gradient(circle at 17px 0, var(--yarey-sand) 12px, transparent 13px) 0 0 / 34px 34px repeat-x, var(--yarey-teak);
}
.yarey-scallop-edge-sage {       /* sand → sage scalloped transition */
  height: var(--scallop-size);
  background: radial-gradient(circle at 17px 34px, var(--yarey-sage) 12px, transparent 13px) 0 0 / 34px 34px repeat-x, var(--yarey-sand);
}
:lang(th) { letter-spacing: 0 !important; text-transform: none !important; }  /* never track or upper-case Thai */
