/**
 * ivanadiaz.com ambient surface — shared page background + typography.
 * Source: index.html + docs/COLORS.md §1.1
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --ink: #343a40;
  --ink-soft: #6e6e73;
  --paper: #f8f9fa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(52, 58, 64, 0.1);
  --accent: #004288;
  --accent-soft: rgba(0, 66, 136, 0.08);
  --radius: 8px;
  --display: Outfit, Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { height: 100%; scroll-behavior: smooth; }

body.ivan-surface {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% 8%, rgba(196, 178, 152, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 120% 80% at 15% 0%, rgba(72, 120, 95, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 88% 12%, rgba(120, 140, 220, 0.13) 0%, transparent 50%),
    radial-gradient(ellipse 100% 90% at 50% 100%, rgba(72, 98, 128, 0.08) 0%, transparent 48%),
    radial-gradient(ellipse 80% 55% at 20% 78%, rgba(160, 180, 255, 0.11) 0%, transparent 45%),
    radial-gradient(ellipse 75% 55% at 28% 55%, rgba(210, 195, 175, 0.09) 0%, transparent 42%),
    linear-gradient(165deg, #fafbfc 0%, #eef0f5 42%, #f8f9fa 72%, #dee2e6 100%);
  background-attachment: fixed;
}

body.ivan-surface::before {
  content: '';
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(88, 145, 118, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(130, 150, 230, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 45% 60%, rgba(210, 195, 175, 0.09) 0%, transparent 36%),
    radial-gradient(circle at 55% 78%, rgba(180, 190, 255, 0.13) 0%, transparent 38%),
    radial-gradient(circle at 60% 85%, rgba(72, 120, 95, 0.1) 0%, transparent 40%);
  filter: blur(48px);
  animation: ivanAmbientDrift 42s ease-in-out infinite alternate;
}

body.ivan-surface::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes ivanAmbientDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2.5%, -1.5%) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  body.ivan-surface::before { animation: none; }
}

.ivan-page {
  position: relative;
  z-index: 2;
}
