/* Background tokens and layers from the main author site. */
:root {
  /* Typography Tokens */
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette (11 Stardust Mesh Colors + 12 Mist Accents) */
  --bg-main: #FAF7F2;
  --bg-card: rgba(255, 255, 255, 0.76);
  --bg-card-hover: rgba(255, 255, 255, 0.90);
  
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --text-soft: #6B7280;

  --color-teal: #0F8B8D;
  --color-teal-glow: rgba(15, 139, 141, 0.25);
  --color-plum: #8C3A80;
  --color-plum-glow: rgba(140, 58, 128, 0.20);
  --color-gold: #E8A238;
  --color-gold-bright: #F59E0B;
  --color-gold-metallic: #D4AF37;
  
  --mesh-peach: rgba(255, 218, 193, 0.65);
  --mesh-blue: rgba(181, 226, 250, 0.55);
  --mesh-lavender: rgba(226, 212, 240, 0.60);
  --mesh-apricot: rgba(255, 183, 178, 0.50);

  --border-light: rgba(15, 139, 141, 0.15);
  --border-gold: rgba(212, 175, 55, 0.40);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(15, 139, 141, 0.06);
  --shadow-md: 0 12px 32px rgba(140, 58, 128, 0.08);
  --shadow-glow: 0 0 25px rgba(232, 162, 56, 0.25);
  --shadow-frame: 0 16px 40px rgba(15, 139, 141, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.3);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"],
.dark-theme {
  color-scheme: dark;
  --bg-main: #0D1420;
  --bg-card: rgba(20, 30, 44, 0.84);
  --bg-card-hover: rgba(28, 40, 57, 0.94);

  --text-dark: #F7F3ED;
  --text-muted: #CBD5E1;
  --text-soft: #9EABB9;

  --color-teal: #52CED0;
  --color-teal-glow: rgba(82, 206, 208, 0.24);
  --color-plum: #D78BCB;
  --color-plum-glow: rgba(215, 139, 203, 0.2);
  --color-gold: #F2B858;
  --color-gold-bright: #F6C86F;
  --color-gold-metallic: #E6BE50;

  --mesh-peach: rgba(155, 70, 83, 0.24);
  --mesh-blue: rgba(25, 121, 149, 0.28);
  --mesh-lavender: rgba(115, 73, 160, 0.3);
  --mesh-apricot: rgba(179, 95, 64, 0.22);

  --border-light: rgba(82, 206, 208, 0.2);
  --border-gold: rgba(230, 190, 80, 0.5);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, 0.28);
  --shadow-frame: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(230, 190, 80, 0.36);
}

/* --- SVG Noise Grain Overlay --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* --- Pastel Mesh Background Orbs --- */
.pastel-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
  transition: transform 0.1s linear;
}

.orb-peach {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -50px;
  background: var(--mesh-peach);
  animation: floatOrbA 18s ease-in-out infinite alternate;
}

.orb-blue {
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: -100px;
  background: var(--mesh-blue);
  animation: floatOrbB 22s ease-in-out infinite alternate;
}

.orb-lavender {
  width: 450px;
  height: 450px;
  top: 35%;
  left: 25%;
  background: var(--mesh-lavender);
  animation: floatOrbC 20s ease-in-out infinite alternate;
}

.orb-apricot {
  width: 400px;
  height: 400px;
  top: 60%;
  right: 15%;
  background: var(--mesh-apricot);
  animation: floatOrbA 24s ease-in-out infinite alternate;
}

@keyframes floatOrbA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 60px) scale(1.1); }
}

@keyframes floatOrbB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.08); }
}

@keyframes floatOrbC {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -50px) scale(0.95); }
}

/* --- Interactive Stardust Canvas (Background ambient magic) --- */
.dust-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

