:root {
  --bg: #0d0d0d;
  --bg-raised: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --border: #2a2a2a;
  --focus: #fbbf24;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-raised: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e7eb;
  --focus: #d97706;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: border-color 0.2s ease, transform 0.1s ease;
  z-index: 100;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.theme-toggle:active {
  transform: scale(0.95);
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.landing__title {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.landing__title .char {
  display: inline-block;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
  min-width: 0.3em;
}

.landing__title .char:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 6px var(--accent-hover), 0 0 28px rgba(96, 165, 250, 0.45);
}

.landing__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  bottom: 5rem;
}

.landing__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing__link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  background: var(--bg-raised);
}

.landing__link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
