/* ============================================
   BASE STYLES
   Reset, body, typography, global dark theme
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 300;
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Vignette overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  z-index: var(--z-vignette);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: var(--line-height-display);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-normal);
}

h1 {
  font-size: var(--font-size-hero);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-size-room-title);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

h3 {
  font-size: var(--font-size-section-title);
  color: var(--color-text-accent);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  font-weight: 300;
}

a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-gentle);
}

a:hover {
  color: var(--color-text-primary);
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-text-primary);
  font-size: inherit;
}

/* --- Utility classes --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Main app container --- */
#app {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
}

/* --- Particle canvas (behind everything) --- */
#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
}

/* --- Scroll indicator animation --- */
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  letter-spacing: var(--letter-spacing-normal);
  animation: scrollHint 2s var(--ease-gentle) infinite;
  cursor: default;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}
