/* Worthle Architectural Precision Ledger Theme (Shared for Blogs, Profiles, Root & Privacy) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  contain: strict;
  transform: translateZ(0);
  background-size: 64px 64px;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .font-display, .font-heading {
  font-family: 'Chivo', -apple-system, BlinkMacSystemFont, sans-serif;
}

html.dark, html.dark body {
  background-color: #070A19 !important;
  color: #ffffff;
}

html.light, html.light body {
  background-color: #ECEAE4 !important;
  color: #121212;
}

html.dark body > header {
  background-color: rgba(7, 10, 25, 0.90) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.light body > header {
  background-color: rgba(236, 234, 228, 0.90) !important;
  border-color: rgba(18, 18, 18, 0.16) !important;
}

html.light .ledger-surface {
  background-color: #FAF9F6 !important;
  border: 1.5px solid #121212 !important;
  box-shadow: 4px 4px 0px #121212 !important;
}

html.dark .ledger-surface {
  background-color: #0D111C !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.85), 0 4px 14px -2px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html.light body > footer {
  background-color: rgba(236, 234, 228, 0.75) !important;
  border-color: rgba(18, 18, 18, 0.15) !important;
}

html.dark body > footer {
  background-color: rgba(7, 10, 25, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .animate-cta-bounce,
  .animate-cta-glow,
  .animate-arrow-nudge,
  .rank-pill-shimmer,
  .animate-ping,
  .animate-pulse,
  .spotlighted {
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
