:root {
  --bg-0: #010510;
  --bg-1: #051023;
  --bg-2: #141a23;

  --ink: #d7deff;
  --muted: rgba(215, 222, 255, 0.72);

  --neon-red: #d9402c;
  --neon-red-2: #c01310;
  --neon-teal: #2eb887;

  --text: #d7deff; /* Alias for --ink, used by player */
  --neon-purple: rgba(136, 123, 218, 0.4); /* Player border accent */

  --lav: #887bda;
  --violet: #2d265e;

  --card: rgba(20, 26, 35, 0.72);
  --card-border: rgba(136, 123, 218, 0.22);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 1.125rem;

  /* Typography */
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  /* Layout Variables */
  --content-width: 61.25rem; /* 980px */
  --spacing: 1.125rem; /* 18px */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font:
    0.9375rem/1.55 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background-color: var(--bg-0);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: -1;
  background:
    radial-gradient(
        1200px 700px at 65% 25%,
        rgba(136, 123, 218, 0.14),
        transparent 60%
      ),
    radial-gradient(
        900px 600px at 20% 60%,
        rgba(46, 184, 135, 0.12),
        transparent 55%
      ),
    radial-gradient(
        800px 450px at 80% 85%,
        rgba(217, 64, 44, 0.1),
        transparent 55%
      ),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 55%, #000 100%);
  animation: bg-drift 40s infinite alternate ease-in-out;
  pointer-events: none;
  transform: translateZ(0); /* Force GPU acceleration */
}

@keyframes bg-drift {
  0% {
    transform: translate(0, 0) scale(1) translateZ(0);
  }
  50% {
    transform: translate(-40px, 50px) scale(1.1) translateZ(0);
  }
  100% {
    transform: translate(40px, -20px) scale(0.95) translateZ(0);
  }
}

:focus-visible {
  outline: 2px solid var(--neon-teal);
  outline-offset: 4px;
}

.hidden {
  display: none !important;
}

.master-player.hidden {
  display: flex !important;
  transform: translateY(100%);
}

a {
  color: var(--lav);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 1.75rem 1.125rem 5rem;
  position: relative;
  z-index: 10;
}

/* Ambient effects: grain + CRT */
.fx-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.05; /* Lowered opacity to compensate for removing blend mode */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  /* Removed mix-blend-mode: overlay as it is very expensive */
  transform: translateZ(0);
}

.fx-crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.02)),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 3px,
      transparent 5px
    );
  opacity: 0.4;
  animation: flicker 8s infinite;
  overflow: hidden;
  transform: translateZ(0);
}

.fx-crt::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(46, 184, 135, 0.1) 50%,
    transparent
  );
  opacity: 0.4;
  pointer-events: none;
  animation: scanline-roll 18s linear infinite;
  will-change: transform;
}

@keyframes scanline-roll {
  0% { transform: translateY(-150px) translateZ(0); }
  100% { transform: translateY(100vh) translateZ(0); }
}

@keyframes flicker {
  0% { opacity: 0.4; }
  5% { opacity: 0.35; }
  10% { opacity: 0.45; }
  15% { opacity: 0.38; }
  20% { opacity: 0.42; }
  100% { opacity: 0.4; }
}

/* Masthead */
.mast {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(20, 26, 35, 0.8),
    rgba(1, 5, 16, 0.55)
  );
  border: 1px solid rgba(136, 123, 218, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

/* Banner */
.banner-wrap {
  display: block;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  line-height: 0;
  transition: transform 150ms ease, border-color 150ms ease;
}

.banner-wrap:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(46, 184, 135, 0.35);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.mast::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    600px 240px at 25% 30%,
    rgba(46, 184, 135, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}

.logo {
  width: 4rem;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  margin-top: 0.25rem;
  border-radius: 0.875rem;
  box-shadow:
    0 0 1.125rem rgba(46, 184, 135, 0.18),
    0 0 1.875rem rgba(217, 64, 44, 0.12);
}

.title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tagline {
  margin: 2px 0 0;
  color: var(--muted);
}

.brand-cta {
  margin-top: 14px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(45, 38, 94, 0.25);
  border: 1px solid rgba(136, 123, 218, 0.18);
  color: var(--ink);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 184, 135, 0.35);
  box-shadow:
    0 0 0 1px rgba(46, 184, 135, 0.12),
    0 12px 38px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

/* Layout */
.grid {
  margin-top: var(--spacing);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--spacing);
}

/* If we want the specific 1.2/0.8 split on large screens */
@media (min-width: 55rem) {
  .grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.wide {
  grid-column: 1 / -1;
}

/* Cards */
.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-hd {
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(136, 123, 218, 0.14);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

summary.card-hd {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

summary.card-hd::-webkit-details-marker {
  display: none;
}

summary.card-hd:hover {
  background: rgba(136, 123, 218, 0.05);
}

summary.card-hd::after {
  content: "▼";
  font-size: 10px;
  color: var(--muted);
  transition: transform 200ms ease;
}

details[open] summary.card-hd::after {
  transform: rotate(180deg);
}

.card-hd h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(215, 222, 255, 0.92);
}

.card-hd-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.card-bd {
  padding: 14px 18px 18px;
}

.neon-red {
  color: var(--neon-red);
  text-shadow:
    0 0 10px rgba(217, 64, 44, 0.35),
    0 0 28px rgba(217, 64, 44, 0.2);
}

.muted {
  color: var(--muted);
}

.fine {
  font-size: 13px;
}

.rule {
  height: 1px;
  margin: 14px 0;
  background: rgba(136, 123, 218, 0.14);
}

/* Listen */
.listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.kicker {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(46, 184, 135, 0.75);
  margin-bottom: 2px;
}

.headline {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(46, 184, 135, 0.35);
  background: rgba(46, 184, 135, 0.12);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(46, 184, 135, 0.06),
    0 18px 55px rgba(0, 0, 0, 0.35);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-rss {
  background: rgba(217, 64, 44, 0.12);
  border-color: rgba(217, 64, 44, 0.35);
  gap: 8px;
}

.btn-rss:hover {
  border-color: var(--neon-red) !important;
  background: rgba(217, 64, 44, 0.2) !important;
}

.card-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 64, 44, 0.45);
  box-shadow:
    0 0 0 1px rgba(217, 64, 44, 0.1),
    0 26px 70px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.embed-frame {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(136, 123, 218, 0.14);
  background: rgba(1, 5, 16, 0.45);
  padding: 12px;
}

.embed-placeholder {
  color: var(--muted);
  padding: 18px 12px;
}

.audio {
  width: 100%;
}

/* Episodes */
.episodes {
  display: grid;
  gap: 12px;
}

.ep {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(1, 5, 16, 0.45);
  border: 1px solid rgba(136, 123, 218, 0.14);
}

.ep.featured {
  background: rgba(45, 38, 94, 0.25);
  border-color: rgba(136, 123, 218, 0.3);
  padding: 18px;
  flex-direction: row;
  align-items: flex-start;
}

.ep-art {
  width: 5rem;
  aspect-ratio: 1 / 1;
  border-radius: 0.625rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.4);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ep.featured .ep-art {
  width: clamp(5rem, 15vw, 7.5rem);
}

.ep-art:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(46, 184, 135, 0.4),
    0 0 40px rgba(217, 64, 44, 0.2);
}

.ep-content {
  flex: 1;
  min-width: 0;
}

.ep-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ep-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-teal);
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}

.ep-label.bonus {
  color: var(--neon-red);
  display: inline-block;
  margin-bottom: 0;
  margin-right: 8px;
  vertical-align: middle;
}

.ep-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.ep-title {
  font-weight: 700;
  color: var(--ink);
}

.ep.featured .ep-title {
  font-size: 18px;
  margin-bottom: 6px;
  display: block;
}

.ep-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.ep-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ep-summary {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-summary.muted {
  color: var(--muted);
}

/* Global Master Player */
.master-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 16, 35, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  z-index: 1000;
  padding: 0.75rem 1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.master-player.hidden {
  transform: translateY(100%);
}

.player-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr 300px 200px;
  align-items: center;
  gap: 1.5rem;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

#player-art {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.player-text {
  min-width: 0;
  flex: 1;
}

.player-title-wrap {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, black 95%, transparent);
}

.player-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  display: inline-block;
  width: max-content;
}

.player-title.scrolling {
  animation: marquee 20s linear infinite;
  padding-right: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.player-status {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.player-btn:hover {
  color: var(--neon-teal);
}

.player-btn.main {
  background: var(--neon-teal);
  color: var(--bg-0);
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.player-btn.main:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--neon-teal);
}

.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 35px;
}

.player-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--neon-teal);
  border-radius: 2px;
  width: 0%;
}

.player-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.player-btn-sm {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.player-btn-sm:hover, .player-btn-sm.active {
  color: var(--neon-teal);
}

.player-vol {
  width: 80px;
}

.player-vol input {
  width: 100%;
  accent-color: var(--neon-teal);
}

/* Queue Panel */
.queue-panel {
  position: absolute;
  bottom: 100%;
  right: 1rem;
  width: 350px;
  max-height: 400px;
  background: rgba(10, 20, 40, 0.98);
  border: 1px solid var(--neon-purple);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.queue-hd {
  padding: 1rem;
  border-bottom: 1px solid rgba(136, 123, 218, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queue-hd h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.queue-list {
  overflow-y: auto;
  flex: 1;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.queue-item.active {
  background: rgba(46, 184, 135, 0.1);
  border-left: 3px solid var(--neon-teal);
}

.queue-item img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.queue-item-info {
  min-width: 0;
}

.queue-item-title {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-meta {
  font-size: 0.7rem;
  color: var(--muted);
}

.ep-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.btn-play {
  background: var(--neon-teal);
  color: var(--bg-0);
}

.btn-queue {
  background: rgba(136, 123, 218, 0.15);
  border-color: rgba(136, 123, 218, 0.3);
}

@media (max-width: 900px) {
  .player-wrap {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .player-progress-wrap {
    grid-column: 1 / -1;
    order: 3;
  }
  .player-extra {
    display: none;
  }
}

/* Custom Vaporwave Player */
.ncr-player {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(136, 123, 218, 0.2);
}

.player-play {
  background: var(--neon-teal);
  color: var(--bg-0);
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 0 0.625rem rgba(46, 184, 135, 0.3);
}

.player-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0.9375rem rgba(46, 184, 135, 0.5);
}

.player-play svg {
  margin-left: 0.125rem; /* Optical centering for play icon */
}

.player-play .pause-icon {
  display: none;
}

.player-play.playing .play-icon {
  display: none;
}

.player-play.playing .pause-icon {
  display: block;
}

.player-play.playing svg {
  margin-left: 0;
}

.player-track {
  flex: 1;
  height: 0.25rem;
  background: rgba(215, 222, 255, 0.1);
  border-radius: 0.125rem;
  position: relative;
  cursor: pointer;
}

.player-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-teal), var(--lav));
  border-radius: 0.125rem;
  box-shadow: 0 0 0.5rem rgba(46, 184, 135, 0.4);
}

.player-time {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--lav);
  min-width: 2.5rem;
  text-align: right;
}

.player-volume {
  display: flex;
  align-items: center;
  width: clamp(3rem, 8vw, 4rem);
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.player-vol-slider {
  width: 100%;
  height: 0.25rem;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(215, 222, 255, 0.1);
  border-radius: 0.125rem;
  outline: none;
  cursor: pointer;
}

.player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--neon-teal);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0.3125rem var(--neon-teal);
}

@media (max-width: 600px) {
  .player-volume {
    display: none;
  }
}

@media (max-width: 580px) {
  .ep.featured {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .ep.featured .ep-top {
    justify-content: center;
  }
}


.ep-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Links & Directory */
.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .directory {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.dir-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.links li {
  margin: 6px 0;
}

/* Footer */
.foot {
  margin-top: 18px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

/* Blog posts */
.post {
  padding: 16px;
  border-radius: 14px;
  background: rgba(1, 5, 16, 0.45);
  border: 1px solid rgba(136, 123, 218, 0.14);
}

.post + .post {
  margin-top: 16px;
}

.post-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.post-log {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-teal);
}

.post-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: var(--neon-teal);
}

.read-more {
  font-weight: 600;
  color: var(--neon-teal) !important;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Individual Post Page */
.post-page {
  width: 100%;
}

.post-page-title {
  font-size: 32px;
  margin: 0 0 20px;
  color: var(--ink);
  line-height: 1.2;
}

.post-nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  flex-wrap: wrap;
}

.post-nav-buttons .btn {
  flex: 1;
  min-width: 7.5rem;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.post-content {
  color: var(--muted);
  line-height: 1.6;
}

.post-content p {
  margin: 0 0 0.625rem;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content a {
  color: var(--lav);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.625rem;
  margin: 0.75rem 0;
  box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.4);
}

.post-content em {
  font-style: italic;
}

.post-content strong {
  font-weight: 700;
  color: var(--ink);
}

.post-content ul,
.post-content ol {
  margin: 0.625rem 0;
  padding-left: 1.25rem;
}

.post-content li {
  margin: 0.25rem 0;
}

.post-content blockquote {
  margin: 0.75rem 0;
  padding: 0.625rem 1rem;
  border-left: 0.1875rem solid var(--lav);
  background: rgba(136, 123, 218, 0.1);
  border-radius: 0 0.5rem 0.5rem 0;
}

.post-content code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Header links for blog page */
.logo-link {
  display: block;
}

.title a {
  color: inherit;
  text-decoration: none;
}

.title a:hover {
  text-decoration: none;
}

/* Reduced motion: disable animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .fx-crt,
  .fx-crt::after {
    animation: none;
  }

  .chip,
  .btn {
    transition: none;
  }
}
