:root {
  --bg: #0a0a12;
  --bg-deep: #050509;
  --fg: #ececec;
  --muted: #8a8aa0;
  --rule: #1f1f2e;
  --neon-pink: #ff2bd6;
  --neon-cyan: #00f0ff;
  --neon-purple: #9d4dff;
  --neon-yellow: #f6ff3c;
  --accent: var(--neon-pink);
  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.site-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.site-header nav a {
  margin-left: 1.25rem;
  color: var(--muted);
}
.site-header nav a:hover { color: var(--fg); text-decoration: none; }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---------- Landing: NEON ---------- */

body.landing {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 5, 9, 0.15), rgba(5, 5, 9, 0.30)),
    radial-gradient(ellipse at 20% 0%, rgba(255, 43, 214, 0.10), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(157, 77, 255, 0.08), transparent 60%),
    url('/assets/bela-bg.jpg') center top / cover no-repeat,
    var(--bg-deep);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  position: relative;
}
body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}
.landing main,
.landing .site-header { position: relative; z-index: 2; }

.landing .site-header { border-bottom: none; }
.landing .site-header nav { display: none; }
.landing .site-title {
  color: var(--neon-cyan);
  text-shadow:
    0 0 4px rgba(0, 240, 255, 0.7),
    0 0 14px rgba(0, 240, 255, 0.35);
}
.landing .site-header nav a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.7);
}

.landing main {
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
}
.landing-hero {
  text-align: center;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.landing-hero h1 { order: 1; }
.landing-hero .landing-tagline { order: 2; }
.landing-hero .landing-choices { order: 3; margin-top: auto; }
@media (min-width: 541px) {
  .landing-hero .landing-choices { order: 0; margin-top: 0; margin-bottom: 1.5rem; }
}
.landing-hero h1 {
  font-size: 3.25rem;
  margin: 1rem 0 0.4rem;
  letter-spacing: 0.04em;
  color: var(--neon-pink);
  text-shadow:
    0 0 6px rgba(255, 43, 214, 0.8),
    0 0 18px rgba(255, 43, 214, 0.5),
    0 0 36px rgba(255, 43, 214, 0.3),
    0 0 60px rgba(255, 43, 214, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
  .landing-hero h1 { animation: neon-flicker 6s infinite; }
}
.landing-tagline {
  color: var(--neon-cyan);
  margin: 0 0 1.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}
.landing-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 540px) {
  .landing-choices { grid-template-columns: 1fr; }
}
.landing-choice {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem;
  border: 2px solid var(--neon-pink);
  border-radius: 8px;
  color: var(--fg);
  background: rgba(5, 5, 9, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 18px rgba(255, 43, 214, 0.55),
    0 0 36px rgba(255, 43, 214, 0.25),
    inset 0 0 18px rgba(255, 43, 214, 0.08);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.landing-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(0, 240, 255, 0.08) 50%,
    transparent 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.landing-choice:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 43, 214, 0.08);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow:
    0 0 18px rgba(255, 43, 214, 0.5),
    0 0 40px rgba(255, 43, 214, 0.25),
    inset 0 0 24px rgba(255, 43, 214, 0.1);
}
.landing-choice:hover::after { opacity: 1; }
.landing-choice:nth-child(2) {
  border-color: var(--neon-cyan);
  background: rgba(5, 5, 9, 0.85);
  box-shadow:
    0 0 18px rgba(0, 240, 255, 0.55),
    0 0 36px rgba(0, 240, 255, 0.25),
    inset 0 0 18px rgba(0, 240, 255, 0.08);
}
.landing-choice:nth-child(2):hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow:
    0 0 18px rgba(0, 240, 255, 0.5),
    0 0 40px rgba(0, 240, 255, 0.25),
    inset 0 0 24px rgba(0, 240, 255, 0.1);
}
.landing-choice-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon-pink);
  text-shadow:
    0 0 4px rgba(255, 43, 214, 0.7),
    0 0 12px rgba(255, 43, 214, 0.35);
}
.landing-choice:nth-child(2) .landing-choice-title {
  color: var(--neon-cyan);
  text-shadow:
    0 0 4px rgba(0, 240, 255, 0.7),
    0 0 12px rgba(0, 240, 255, 0.35);
}
.landing-choice-sub {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ---------- Blog: NEON ---------- */

body.blog-index,
body.post-page {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 43, 214, 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(0, 240, 255, 0.14), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(157, 77, 255, 0.12), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
  position: relative;
}

/* subtle horizontal scanlines */
body.blog-index::before,
body.post-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}

body.blog-index main,
body.post-page main { position: relative; z-index: 2; }

body.blog-index .site-header,
body.post-page .site-header {
  position: relative;
  z-index: 2;
  border-bottom-color: rgba(255, 43, 214, 0.25);
}
body.blog-index .site-title,
body.post-page .site-title {
  color: var(--neon-cyan);
  text-shadow:
    0 0 4px rgba(0, 240, 255, 0.7),
    0 0 14px rgba(0, 240, 255, 0.35);
}
body.blog-index .site-header nav a:hover,
body.post-page .site-header nav a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.7);
}

/* ---------- Blog index ---------- */

.blog-index h1 {
  font-size: 2.25rem;
  margin-bottom: 1.75rem;
  color: var(--neon-pink);
  text-shadow:
    0 0 6px rgba(255, 43, 214, 0.7),
    0 0 18px rgba(255, 43, 214, 0.4),
    0 0 36px rgba(255, 43, 214, 0.2);
  letter-spacing: 0.02em;
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list-item {
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  transition: background 0.15s;
}
.post-list-item:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 43, 214, 0.06),
    rgba(0, 240, 255, 0.04) 60%,
    transparent
  );
}
.post-list-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1rem 0.5rem;
  align-items: baseline;
  color: var(--fg);
}
.post-list-link:hover { text-decoration: none; }
.post-list-link:hover .post-list-title {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}
.post-list-date {
  color: var(--neon-purple);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(157, 77, 255, 0.4);
}
.post-list-title {
  font-weight: 500;
  transition: color 0.15s, text-shadow 0.15s;
}
.post-list-description {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.post-list-audio {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-shadow: 0 0 6px rgba(246, 255, 60, 0.6);
  box-shadow:
    0 0 8px rgba(246, 255, 60, 0.25),
    inset 0 0 6px rgba(246, 255, 60, 0.15);
}

/* ---------- Post page ---------- */

.post-header { margin-bottom: 2.25rem; }
.post-date {
  color: var(--neon-purple);
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  text-shadow: 0 0 6px rgba(157, 77, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  color: var(--neon-pink);
  text-shadow:
    0 0 6px rgba(255, 43, 214, 0.7),
    0 0 18px rgba(255, 43, 214, 0.4),
    0 0 36px rgba(255, 43, 214, 0.2);
}
.post-description {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-style: italic;
}

.post-audio {
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  background: rgba(0, 240, 255, 0.04);
  box-shadow:
    0 0 12px rgba(0, 240, 255, 0.18),
    inset 0 0 18px rgba(0, 240, 255, 0.05);
}
.post-audio-label {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}
.post-audio audio {
  width: 100%;
  filter: hue-rotate(180deg) saturate(0.9);
}

.post-body { font-size: 1.05rem; }
.post-body p { margin: 1em 0; }
.post-body a {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.45);
}
.post-body code {
  background: rgba(157, 77, 255, 0.12);
  border: 1px solid rgba(157, 77, 255, 0.3);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--neon-purple);
}
.post-body strong { color: var(--neon-yellow); }

.post-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 43, 214, 0.25);
  color: var(--muted);
}
.post-footer a {
  color: var(--neon-pink);
  text-shadow: 0 0 6px rgba(255, 43, 214, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .blog-index h1,
  .post-header h1 {
    animation: neon-flicker 6s infinite;
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.85;
  }
}
