/* Shared with index.html — atmospheric shell for HTML prototypes */

:root {
  --paper: #eceef4;
  --mist: #e2e6f0;
  --surface: #f6f7fb;
  --ink: #1a2230;
  --ink-soft: #4a5568;
  --ink-faint: rgba(26, 34, 48, 0.42);
  --sage: #6b8f9c;
  --sage-deep: #3d5a66;
  --sage-mist: rgba(107, 143, 156, 0.2);
  --horizon: #c4a574;
  --horizon-mist: rgba(196, 165, 116, 0.28);
  --world-a: rgba(99, 132, 168, 0.35);
  --world-b: rgba(107, 143, 156, 0.25);
  --world-c: rgba(196, 165, 116, 0.22);
  --slate-mist: rgba(38, 48, 58, 0.09);
  --gold-leaf: rgba(198, 162, 88, 0.18);
  --gold-leaf-deep: rgba(168, 132, 58, 0.12);
  --gold-sheen: rgba(232, 214, 168, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 95% 72% at 50% 108%, var(--slate-mist), transparent 52%),
    radial-gradient(ellipse 55% 48% at 4% 92%, rgba(44, 54, 66, 0.07), transparent 46%),
    radial-gradient(ellipse 50% 44% at 96% 8%, rgba(58, 68, 82, 0.06), transparent 44%),
    linear-gradient(168deg, #e4e7ee 0%, var(--paper) 48%, #eef0f5 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 44% at 14% 78%, var(--gold-leaf), transparent 58%),
    radial-gradient(ellipse 38% 48% at 91% 32%, var(--gold-leaf-deep), transparent 54%),
    radial-gradient(ellipse 30% 36% at 58% 91%, var(--gold-sheen), transparent 50%),
    radial-gradient(ellipse 22% 28% at 72% 18%, rgba(212, 178, 95, 0.14), transparent 46%),
    radial-gradient(circle 42vw at 12% 22%, var(--world-a), transparent 58%),
    radial-gradient(circle 38vw at 92% 18%, var(--world-b), transparent 55%),
    radial-gradient(ellipse 90% 55% at 50% 108%, var(--horizon-mist), transparent 50%),
    radial-gradient(circle 28vw at 78% 78%, var(--world-c), transparent 52%),
    radial-gradient(ellipse 70% 50% at 40% 0%, rgba(99, 132, 168, 0.12), transparent 45%);
  animation: zs-field-drift 36s var(--ease) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 3px,
      rgba(35, 44, 54, 0.04) 3px,
      rgba(35, 44, 54, 0.04) 4px
    ),
    repeating-linear-gradient(
      -3deg,
      transparent,
      transparent 11px,
      rgba(28, 36, 46, 0.045) 11px,
      rgba(28, 36, 46, 0.045) 12px
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.032' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: auto, auto, 480px 480px;
}

@keyframes zs-field-drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(1.5%, -2%) scale(1.035) rotate(0.8deg); opacity: 0.93; }
}

a {
  color: var(--sage-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zs-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
