*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    var(--color-bg-1) 0%,
    var(--color-bg-2) 25%,
    var(--color-bg-3) 50%,
    var(--color-bg-4) 75%,
    var(--color-bg-1) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

.animated-bg::before,
.animated-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 20s ease-in-out infinite;
}

.animated-bg::before {
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--color-bg-3) 0%, transparent 70%);
}

.animated-bg::after {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, var(--color-bg-4) 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
