:root {
  --bg: #0b0b10;
  --fg: #f5f2ea;
  --muted: rgba(245, 242, 234, 0.6);
  --accent: #ff8a5c;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: start;
}

.field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--bg);
}

.ambient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 138, 92, 0.32), transparent 55%),
    radial-gradient(circle at 78% 70%, rgba(124, 107, 255, 0.26), transparent 55%);
  filter: blur(70px);
  animation: ambient-drift 44s ease-in-out infinite;
  will-change: transform;
}

@keyframes ambient-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3%, -2%) rotate(5deg); }
}

.dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 2rem;
  padding-left: clamp(2rem, 8vw, 7rem);
  max-width: 28rem;
}

.name {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.01em;
}

.tagline {
  margin-top: 0.75rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.links {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .ambient {
    animation: none;
  }
}
