/* ==========================================================================
   Design Tokens — portoadam.my.id
   Palet Brand Sido Bangun: Navy (#0F172A), Emas (#DCA54A), Krem (#FAF5E5)
   Kontras teks utama dirancang memenuhi WCAG AA (>= 4.5:1)
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-navy: #0F172A;
  --color-navy-elevated: #162038;
  --color-navy-subtle: #1E293B;
  --color-gold: #DCA54A;
  --color-gold-bright: #E8BC71;
  --color-gold-deep: #7A5110;
  --color-cream: #FAF5E5;
  --color-cream-soft: #F2EBD6;
  --color-slate-light: #CBD5E1;
  --color-slate-dark: #334155;

  /* Semantic Surface & Ink */
  --bg-page: var(--color-navy);
  --bg-surface: var(--color-navy-elevated);
  --bg-surface-alt: var(--color-navy-subtle);
  --bg-editorial-light: var(--color-cream);
  --bg-editorial-muted: var(--color-cream-soft);

  --text-primary: var(--color-cream);
  --text-secondary: var(--color-slate-light);
  --text-accent: var(--color-gold);
  --text-on-light: var(--color-navy);
  --text-muted-on-light: var(--color-slate-dark);
  --text-on-gold: var(--color-navy);

  /* Borders & Dividers */
  --border-subtle: rgba(250, 245, 229, 0.14);
  --border-strong: rgba(250, 245, 229, 0.28);
  --border-accent: rgba(220, 165, 74, 0.45);
  --border-on-light: rgba(15, 23, 42, 0.16);

  /* Focus & Elevation */
  --focus-ring: 2px solid var(--color-gold);
  --focus-offset: 3px;
  --shadow-md: 0 12px 32px rgba(4, 8, 18, 0.42);
  --shadow-glow-gold: 0 0 24px rgba(220, 165, 74, 0.22);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.5rem, 2.4vw, 2rem);
  --text-3xl: clamp(2rem, 3.8vw, 3rem);
  --text-display: clamp(2.25rem, 6vw, 4.75rem);

  --leading-tight: 1.08;
  --leading-snug: 1.28;
  --leading-normal: 1.65;
  --tracking-tight: -0.025em;
  --tracking-wider: 0.14em;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Layout */
  --container-max: 72rem;
  --container-narrow: 48rem;
  --section-py: clamp(3.5rem, 8vw, 6.5rem);
  --gutter-x: clamp(1rem, 4vw, 2.5rem);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 9999px;

  /* Motion */
  --duration-fast: 160ms;
  --duration-base: 320ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index */
  --z-header: 20;
  --z-skip: 50;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
  }
}
