/* ===========================================================
   LAYAN — design tokens
   Colours: brandbook "LAYAN / The Burgundy Concept" (agency space.)
   Exact values from colors/LAYAN-brand-colors.pdf — do not alter.
   Type: Faberge (display, one weight) + Arimo (text/UI).
   =========================================================== */

/* ---------- typefaces ---------- */
@font-face {
  font-family: 'Faberge';
  src: url('../assets/fonts/Faberge-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Faberge';
  src: url('../assets/fonts/Faberge-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Arimo';
  src: url('../assets/fonts/Arimo-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arimo';
  src: url('../assets/fonts/Arimo-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Arimo';
  src: url('../assets/fonts/Arimo-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arimo';
  src: url('../assets/fonts/Arimo-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  /* ---------- brand palette (locked) ---------- */
  --burgundy:          #510000;   /* rgb(81, 0, 0)      — primary */
  --burgundy-midnight: #30050E;   /* rgb(48, 5, 14)     — deepest field */
  --garnet:            #75131F;   /* rgb(117, 19, 31)   — accent, hover, marks */
  --black:             #1E100F;   /* rgb(30, 16, 15)    — warm black */
  --cotton-fluff:      #F9F3E5;   /* rgb(249, 243, 229) — cream canvas */
  --white:             #FFFFFF;

  /* ---------- derived neutrals (not in the brandbook — tune freely) ---------- */
  --cream-100: #FDFAF4;
  --cream-200: #F9F3E5;           /* = Cotton Fluff */
  --cream-300: #EFE6D3;
  --cream-400: #DED2BB;
  --ink-600:   rgba(30, 16, 15, .62);
  --ink-400:   rgba(30, 16, 15, .40);
  --ink-200:   rgba(30, 16, 15, .16);
  --hairline:  rgba(81, 0, 0, .18);
  --cream-a90: rgba(249, 243, 229, .90);
  --cream-a60: rgba(249, 243, 229, .60);
  --cream-a12: rgba(249, 243, 229, .12);

  /* ---------- semantic roles ---------- */
  --bg:            var(--cotton-fluff);
  --bg-inverse:    var(--black);
  --text:          var(--black);
  --text-muted:    var(--ink-600);
  --text-inverse:  var(--cotton-fluff);
  --accent:        var(--burgundy);
  --accent-hover:  var(--garnet);
  --surface-deep:  var(--burgundy-midnight);

  /* ---------- type ---------- */
  --font-display: 'Faberge', 'Times New Roman', Georgia, serif;
  --font-text:    'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid scale — tune in task 4 when the chapter components land */
  --fs-hero:     clamp(64px, 11vw, 180px);
  --fs-h1:       clamp(44px, 7vw, 112px);
  --fs-h2:       clamp(32px, 4.2vw, 64px);
  --fs-h3:       clamp(22px, 2.2vw, 32px);
  --fs-lead:     clamp(18px, 1.6vw, 24px);
  --fs-body:     clamp(15px, 1.1vw, 17px);
  --fs-small:    13px;
  --fs-eyebrow:  12px;

  /* ---------- layout ---------- */
  --pad-x:       6.5vw;           /* header / page inset, as in the reference */
  --gutter:      16px;            /* phone side gutter */
  --sidebar-w:   20%;             /* fixed left column on ≥1024px (task 3) */
  --radius-pill: 999px;
  --radius-card: 16px;

  /* ---------- motion ---------- */
  --ease-out:    cubic-bezier(.2, .7, .2, 1);
  --ease-draw:   cubic-bezier(.3, .8, .25, 1);
  --ease-rise:   cubic-bezier(.16, .85, .25, 1);
  --dur-fast:    .35s;
  --dur-base:    .6s;
  --dur-slow:    .9s;
}

@media (max-width: 760px) {
  :root { --pad-x: 5vw; }
}
