/* ============================================================
   PSITHAYLANDIA — DESIGN TOKENS
   Colors, Typography, Spacing, Elevation
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Local Fonts ── */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('./fonts/LibreBaskerville-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('./fonts/LibreBaskerville-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

:root {
  /* ── BASE COLORS ── */
  --color-bronze:       #af794d;
  --color-bronze-light: #c99b72;
  --color-bronze-dark:  #8c5e35;
  --color-rose:         #b28d79;
  --color-rose-light:   #cba898;
  --color-rose-dark:    #8f6b59;
  --color-white:        #ffffff;
  --color-cream:        #faf6f1;
  --color-parchment:    #f2ebe0;
  --color-warm-gray:    #e8ddd1;
  --color-stone:        #c4b3a4;
  --color-earth:        #7a6252;
  --color-deep:         #3d2b1f;
  --color-ink:          #1e1209;

  /* ── SEMANTIC COLORS ── */
  --fg-primary:    var(--color-ink);
  --fg-secondary:  var(--color-earth);
  --fg-muted:      var(--color-stone);
  --fg-inverse:    var(--color-white);
  --fg-accent:     var(--color-bronze);

  --bg-primary:    var(--color-white);
  --bg-warm:       var(--color-cream);
  --bg-parchment:  var(--color-parchment);
  --bg-accent:     var(--color-bronze);
  --bg-dark:       var(--color-deep);

  --border-light:  var(--color-warm-gray);
  --border-medium: var(--color-stone);
  --border-accent: var(--color-bronze);

  /* ── TYPOGRAPHY: FONT FAMILIES ── */
  --font-display:  'Playfair Display SC', 'Times New Roman', serif;
  --font-body:     'Libre Baskerville', 'Georgia', serif;

  /* ── TYPOGRAPHY: SCALE ── */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3.5rem;    /* 56px */
  --text-5xl:  5rem;      /* 80px */

  /* ── TYPOGRAPHY: LINE HEIGHTS ── */
  --leading-tight:  1.15;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.85;

  /* ── TYPOGRAPHY: LETTER SPACING ── */
  --tracking-tight:  -0.01em;
  --tracking-normal:  0em;
  --tracking-wide:    0.06em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.2em;

  /* ── SPACING ── */
  --space-1:  0.25rem;   /* 4px  */
  --space-2:  0.5rem;    /* 8px  */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.5rem;    /* 24px */
  --space-6:  2rem;      /* 32px */
  --space-7:  3rem;      /* 48px */
  --space-8:  4rem;      /* 64px */
  --space-9:  6rem;      /* 96px */
  --space-10: 8rem;      /* 128px */

  /* ── BORDER RADIUS ── */
  --radius-none: 0;
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-full: 9999px;

  /* ── SHADOWS ── */
  --shadow-sm:  0 1px 3px rgba(61, 43, 31, 0.08);
  --shadow-md:  0 4px 16px rgba(61, 43, 31, 0.12);
  --shadow-lg:  0 12px 40px rgba(61, 43, 31, 0.16);
  --shadow-inset: inset 0 1px 3px rgba(61, 43, 31, 0.1);

  /* ── TRANSITIONS ── */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

/* ── SEMANTIC TYPE ELEMENTS ── */

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-primary);
  text-wrap: pretty;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-primary);
  text-wrap: pretty;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-primary);
  text-wrap: pretty;
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--fg-primary);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--fg-primary);
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--fg-primary);
  text-wrap: pretty;
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-secondary);
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--fg-muted);
  font-style: italic;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-accent);
}
