:root {
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 3.8vw + 0.5rem, 3.75rem);
  --text-display: clamp(2.625rem, 4.8vw + 0.9rem, 4.75rem);
  --text-section: clamp(2rem, 2.8vw + 0.9rem, 3.375rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.5625rem);
  --text-lead: clamp(1.0625rem, 0.35vw + 0.95rem, 1.3125rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --color-error: oklch(52% 0.19 27);
  --color-success: oklch(50% 0.12 150);

  --container: 1440px;
  --gutter: 64px;
  --gap-columns: 32px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 168px;

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* Mainstays-inspired Full-Palette Color Worlds for Kunci Kuppi */
  --color-paper: oklch(97.5% 0.025 92);
  --color-paper-2: oklch(93.5% 0.042 82);
  --color-paper-3: oklch(89.5% 0.052 78);

  --color-ink: oklch(22% 0.045 32);
  --color-ink-2: oklch(34% 0.042 34);
  --color-muted: oklch(46% 0.036 38);
  --color-rule: oklch(83% 0.038 78);

  --color-espresso: oklch(22% 0.042 34);
  --color-espresso-2: oklch(27% 0.045 34);
  --color-espresso-ink: oklch(97.5% 0.022 92);
  --color-espresso-ink-2: oklch(88% 0.028 86);
  --color-espresso-muted: oklch(78% 0.032 82);
  --color-espresso-rule: oklch(37% 0.038 36);

  /* Kunci Banjar Greens + Sunny Bakery Tangerine (non-red, non-blue playful palette) */
  --color-field: oklch(47% 0.13 146);
  --color-accent: oklch(47% 0.13 146);
  --color-accent-deep: oklch(38% 0.12 146);
  --color-accent-soft: oklch(93% 0.04 142);
  --color-accent-ink: oklch(98% 0.018 92);
  --color-tangerine: oklch(75% 0.155 58);
  --color-pistachio: oklch(80% 0.14 142);
  --color-focus: oklch(38% 0.12 146);
  --color-focus-light: oklch(86% 0.145 82);

  /* Golden Crust / Marigold + Kuncikuppi #b5834d */
  --color-marigold: oklch(86% 0.145 82);
  --color-crust: oklch(64.8% 0.094 67);
  --color-crust-ink: oklch(40% 0.095 60);
  --color-crust-bright: oklch(86% 0.145 82);

  --font-display: "Inclusive Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inclusive Sans", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Gambetta", ui-serif, Georgia, serif;
  --font-mono: "Azeret Mono", ui-monospace, monospace;

  --radius-card: 18px;
  --radius-pill: 999px;
  --rule-hair: 1px;
  --rule-double: 3px;
  --shadow-card: 5px 5px 0 oklch(22% 0.045 32);
  --tracking-display: -0.025em;

  /* Wavy SVG edge masks matching Mainstays' .wave-component */
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 24 Q 75 0 150 24 T 300 24 T 450 24 T 600 24 T 750 24 T 900 24 T 1050 24 T 1200 24 L 1200 48 L 0 48 Z' fill='%23000'/%3E%3C/svg%3E");

  /* Illustrated Mainstays-inspired custom SVG cursors */
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M7 4l14 10-6 2-2.5 7z' fill='%23fff8e0' stroke='%232e1a14' stroke-width='2.4' stroke-linejoin='round'/%3E%3Ccircle cx='21' cy='22' r='3' fill='%23f5923a' stroke='%232e1a14' stroke-width='1.5'/%3E%3C/svg%3E");
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M13 5c1.6 0 2.8 1.2 2.8 2.8v6.7l1-.4c1.2-.5 2.5.1 3 1.2l1-.3c1.1-.4 2.4.2 2.8 1.3l.7-.1c1.3-.2 2.5.8 2.5 2.1v4.4c0 4.6-3.7 8.3-8.3 8.3h-2.4c-3.1 0-5.9-1.7-7.4-4.4l-2.6-4.7c-.7-1.3-.2-2.9 1.1-3.6 1.1-.6 2.5-.3 3.2.7l.7 1V7.8C10.2 6.2 11.4 5 13 5z' fill='%23fff8e0' stroke='%23156a2c' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cursor-pressed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='11' fill='%23156a2c' stroke='%23fff8e0' stroke-width='2.4'/%3E%3Cpath d='M12 16l3 3 5-6' fill='none' stroke='%23fff8e0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cursor-bake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='38' viewBox='0 0 84 38'%3E%3Cg transform='rotate(-6 42 19)'%3E%3Crect x='3' y='4' width='78' height='30' rx='15' fill='%23e8b938' stroke='%232e1a14' stroke-width='2.2'/%3E%3Ctext x='42' y='24' text-anchor='middle' font-family='sans-serif' font-size='13' font-weight='700' fill='%232e1a14'%3EBake!%3C/text%3E%3C/g%3E%3C/svg%3E");
  --cursor-story: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='38' viewBox='0 0 84 38'%3E%3Cg transform='rotate(5 42 19)'%3E%3Crect x='3' y='4' width='78' height='30' rx='15' fill='%23fff8e0' stroke='%232e1a14' stroke-width='2.2'/%3E%3Ctext x='42' y='24' text-anchor='middle' font-family='sans-serif' font-size='13' font-weight='700' fill='%232e1a14'%3ERead!%3C/text%3E%3C/g%3E%3C/svg%3E");
  --cursor-visit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='38' viewBox='0 0 88 38'%3E%3Cg transform='rotate(-4 44 19)'%3E%3Crect x='3' y='4' width='82' height='30' rx='15' fill='%23f5923a' stroke='%232e1a14' stroke-width='2.2'/%3E%3Ctext x='44' y='24' text-anchor='middle' font-family='sans-serif' font-size='13' font-weight='700' fill='%232e1a14'%3EBanjar!%3C/text%3E%3C/g%3E%3C/svg%3E");
}
