/* === 4ntler.com === */

:root {
  --bg: #0a0a14;
  --bg-card: #0f0f1e;
  --text: #e0e0f0;
  --text-muted: #8888aa;
  --accent-1: #00FFF0;
  --accent-2: #FF2D95;
  --border: #2a2a3e;
}

/* === Reset & Base === */

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

::selection {
  background: var(--accent-2);
  color: var(--bg);
}

/* === Layout === */

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* === Header === */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeSlideDown 0.5s ease-out both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--accent-2);
}

.brand img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.brand-name {
  font-family: 'Major Mono Display', monospace;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-1);
  text-shadow: 0 0 20px rgba(0, 255, 240, 0.25);
}

.social-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
  color: var(--accent-1);
  transform: translateY(-2px);
}

/* === Bio === */

.bio {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.bio-sizer {
  visibility: hidden;
  white-space: pre-wrap;
}

.bio-typed {
  position: absolute;
  inset: 0;
}

.bio-cursor {
  color: var(--text-muted);
  animation: blink 1s steps(1) infinite;
}

.bio a {
  color: var(--accent-1);
}

.bio a:hover {
  color: var(--accent-2);
}

/* === Divider === */

.pixel-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 2rem;
}

/* === Content Grid === */

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  animation: fadeSlideUp 0.5s ease-out 0.2s both;
}

@media (min-width: 640px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Cards === */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.card h2 {
  font-family: 'Major Mono Display', monospace;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--accent-1);
}

/* === Music Card === */

.music-card iframe {
  border: 0;
  width: 100%;
  height: 241px;
  margin-bottom: 0.75rem;
}

.music-card iframe:last-of-type {
  margin-bottom: 0;
}

.bandcamp-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.bandcamp-link:hover {
  color: var(--accent-2);
}

/* === LibLSDJ Card === */

.liblsdj-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.liblsdj-card p:last-of-type {
  margin-bottom: 0;
}

.liblsdj-card a {
  color: var(--accent-1);
  text-decoration-color: var(--accent-1);
}

.liblsdj-card a:hover {
  color: var(--accent-2);
}

.donate-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--accent-1);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.donate-btn:hover {
  background: rgba(0, 255, 240, 0.05);
  border-color: var(--accent-1);
  color: var(--accent-1);
}

.donate-btn:active {
  background: rgba(0, 255, 240, 0.1);
}

/* === Live Section === */

.live-section {
  display: none;
  margin-top: 1.5rem;
  animation: fadeSlideUp 0.4s ease-out both;
}

.live-section.has-events {
  display: block;
}

.live-section h2 {
  font-family: 'Major Mono Display', monospace;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-1);
}

/* === Footer === */

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* === Links (global) === */

a {
  color: var(--accent-1);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-2);
}

/* === Animations === */

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

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === Reduced Motion === */

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

/* === Mobile === */

@media (max-width: 639px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }

  .brand {
    flex-direction: column;
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 2rem;
  }

  .social-links {
    justify-content: center;
  }
}
