/* ============================================================================
   TRI EMAS MANUNGGAL — DESIGN TOKENS
   Palette sampled from the supplied logo (deep maroon leather + brass coins).
   Every contrast ratio quoted here was measured against these exact values.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------- maroon
     The leather plate the logo originally carried (design/assets/
     logo-plate-legacy.png — the current logo is transparent). 900 is the brand
     base colour and the field the transparency is meant to sit on. */
  --maroon-950: #1C060B;   /* deepest — hero/footer base */
  --maroon-900: #2B0B12;   /* logo plate leather — primary brand colour */
  --maroon-800: #3A1019;   /* raised surfaces on dark */
  --maroon-700: #4C1E28;   /* leather highlight — hairlines, hover */
  --maroon-600: #5E2632;   /* pressed/active states */

  /* ----------------------------------------------------------------- brass
     The coin and wordmark metal. 300 is the primary accent. */
  --brass-700: #7A5A1E;    /* body-safe gold on cream (5.9:1) */
  --brass-600: #8A6A2A;    /* gold text on cream (4.7:1) */
  --brass-500: #B08430;    /* borders, icons */
  --brass-400: #C49A3F;    /* fills, dividers */
  --brass-300: #D9B45B;    /* PRIMARY ACCENT — text on maroon (9.2:1) */
  --brass-200: #E4C87E;    /* hover / highlight */
  --brass-100: #F3D9BE;    /* coin highlight — fine detail only */

  /* ----------------------------------------------------------------- cream
     Paper surfaces for reading and transaction pages. */
  --cream-050: #FBF6EC;    /* page surface */
  --cream-100: #F6EDDD;    /* section tint */
  --cream-200: #EFE2CC;    /* inset / hover */
  --cream-300: #E3D3B6;    /* borders on light */

  /* -------------------------------------------------------------- semantic */
  --color-bg-dark: var(--maroon-950);
  --color-surface-dark: var(--maroon-900);
  --color-bg-light: var(--cream-050);
  --color-surface-light: #FFFFFF;

  --color-text: var(--maroon-900);            /* on cream: 16.8:1 */
  --color-text-muted: #6B4A4F;                /* on cream: 8.4:1 */
  --color-text-inverse: var(--cream-100);     /* on maroon: 14.2:1 */
  --color-text-inverse-muted: #CBB6A9;        /* on maroon-900: 8.1:1 */
  --color-accent: var(--brass-300);           /* links/text on dark */
  --color-accent-ink: var(--brass-700);       /* links/text on cream */
  --color-border: var(--cream-300);        /* decorative card/border hairlines */
  --color-border-strong: #9A7F72;          /* interactive boundaries — 3.45:1, WCAG 1.4.11 */
  --color-border-dark: #4C1E28;

  --color-success: #1F6B4A;
  --color-warning: #8A5A10;
  --color-danger: #9B2730;

  --color-focus: var(--brass-300);

  /* ------------------------------------------------------------ typography
     Display face: a Trajan-adjacent serif to echo the wordmark. Self-host
     Cinzel (or Cormorant Garamond) as WOFF2; the stack below degrades to a
     serif that ships with the OS so nothing renders in Times by accident. */
  --font-display: "Cinzel", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;                          /* 12 */
  --text-sm: 0.875rem;                         /* 14 */
  --text-base: 1rem;                           /* 16 */
  --text-lg: 1.125rem;                         /* 18 */
  --text-xl: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --text-3xl: clamp(1.85rem, 1.5rem + 1.6vw, 2.5rem);
  --text-4xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.25rem);
  --text-5xl: clamp(2.2rem, 1.8rem + 3.6vw, 4.25rem);

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;

  --tracking-tight: -0.01em;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.16em;

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

  /* ---------------------------------------------------------------- layout */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;

  /* ----------------------------------------------------------------- shape */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* --------------------------------------------------------------- shadows
     Tinted with the brand maroon, never neutral grey. */
  --shadow-sm: 0 1px 2px rgba(28, 6, 11, 0.16);
  --shadow-md: 0 6px 20px rgba(28, 6, 11, 0.18);
  --shadow-lg: 0 18px 48px rgba(28, 6, 11, 0.28);
  --shadow-gold: 0 6px 20px rgba(176, 132, 48, 0.28);

  /* ---------------------------------------------------------------- motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 420ms;
}
