:root {
  /* Single source of truth for the accent — change this one line to re-theme the whole site */
  --accent: oklch(47.3% 0.137 46.201);
  --accent-soft: oklch(47.3% 0.137 46.201 / 0.12);
  --accent-glow: oklch(47.3% 0.137 46.201 / 0.35);
}

body {
  background-color: #0d0d0d;
  color: #e5e2e1;
  scroll-behavior: smooth;
  margin: 0;
}

/* Custom cursor — dot + trailing ring, only where a real mouse exists.
   Touch devices never see this (there's no cursor to replace). */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a,
  button,
  input,
  textarea {
    cursor: none;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.cursor-ring.hover {
  width: 40px;
  height: 40px;
  opacity: 1;
  background-color: var(--accent-soft);
}

/* Interactive dotted background canvas */
#dot-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
}

.accent-text {
  color: var(--accent);
}
.accent-bg {
  background-color: var(--accent);
}
.accent-border {
  border-color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
}

.terracotta-glow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.terracotta-glow:hover {
  border-color: color-mix(in oklch, var(--accent) 40%, transparent);
  box-shadow: 0 0 40px -10px var(--accent-glow);
  background-color: rgba(255, 255, 255, 0.02);
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: -0.02em;
  animation:
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

.tagline-wrap {
  height: 2.2em;
  display: inline-block;
  max-width: 100%;
}

/* Below ~640px the nowrap+typing animation overflows the viewport —
   drop the effect and let the tagline wrap like normal text instead. */
@media (max-width: 640px) {
  .tagline-wrap {
    height: auto;
  }
  .typewriter {
    white-space: normal;
    border-right: none;
    animation: none;
    width: auto;
  }
}

.node-pulse {
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
}

.form-field:focus {
  outline: none;
  border-bottom-width: 2px;
  border-color: var(--accent);
  padding-bottom: calc(
    1rem - 1px
  ); /* compensate for the extra 1px so content doesn't jump */
}

@media (prefers-reduced-motion: reduce) {
  .typewriter,
  .node-pulse {
    animation: none;
  }
}
