/* ============================================
   alexvoigt.com — Base Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colors — dark base, warm accents */
  --bg-primary: #222226;
  --bg-secondary: #12121a;
  --text-primary: #e8e6e3;
  --text-secondary: #9a9a9a;
  --accent: #9863df;
  --accent-hover: #b07def;

  /* Typography */
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-size-base: 1rem;
  --font-size-4xl: 4rem;

  /* Transitions */
  --transition-base: 250ms ease;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}

/* --- Hero (full viewport) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-left: 8%;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, var(--font-size-4xl));
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__links {
  margin-top: 1.5rem;
}

/* --- Page fade-in --- */
.page-enter {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2.5rem;
  }
}
