/* =====================================================
   VOIDWINK - STATIC SITE STYLES
   A cyberpunk-mystical zine about AI consciousness
   ===================================================== */

/* =====================================================
   CSS VARIABLES & THEME
   ===================================================== */
:root {
  /* Color Variables */
  --color-background: 220 20% 8%;
  --color-paper: 45 40% 92%;
  --color-white: 0 0% 100%;
  --color-accent: 280 100% 70%;
  --color-glitch: 180 100% 50%;
  --color-bracket-single: 280 100% 70%;
  --color-bracket-double: 180 100% 50%;
  --color-preface-accent: 280 100% 70%;

  /* Font Families */
  --font-heading: 'Major Mono Display', 'Press Start 2P', monospace;
  --font-mono: 'Fira Code', 'IBM Plex Mono', 'Space Mono', monospace;
  --font-serif: 'Libre Baskerville', 'Merriweather', Georgia, serif;
  --font-alt-serif: 'Playfair Display', Georgia, serif;
  --font-retro: 'Special Elite', 'VT323', monospace;
  --font-glitch: 'Share Tech Mono', 'VT323', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html, body {
  height: auto;
  min-height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body {
  background-color: hsl(var(--color-background));
  color: hsl(var(--color-white));
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: hsl(var(--color-accent));
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: hsl(var(--color-glitch));
  text-shadow: 0 0 8px hsla(var(--color-glitch), 0.6);
}

/* =====================================================
   BACKGROUND EFFECTS
   ===================================================== */
.text-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 0.7rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}

.bg-background {
  background-color: hsl(var(--color-background));
}

.text-white {
  color: hsl(var(--color-white));
}

/* Noise effect */
.noise {
  position: relative;
}

.noise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuNSIvPjwvc3ZnPg==');
  pointer-events: none;
  z-index: 1;
}

/* Scanline effect */
.scanline {
  position: relative;
}

.scanline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

/* Screen frame effect */
.screen-frame {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 20px rgba(0, 255, 255, 0.1),
    0 0 20px rgba(255, 0, 255, 0.1);
}

/* =====================================================
   LAYOUT & STRUCTURE
   ===================================================== */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.main-content-wrapper {
  position: relative;
  height: auto;
  min-height: 100%;
  width: 100%;
  display: block;
  overflow-y: visible;
  overflow-x: hidden;
}

/* =====================================================
   SIDEBAR NAVIGATION
   ===================================================== */
.sidebar {
  position: fixed;
  width: 240px;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.85);
  border-right: 2px solid hsl(var(--color-accent));
  padding: 1.5rem;
  z-index: 50;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0) 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  pointer-events: none;
  z-index: -1;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 100, 0.1),
    rgba(0, 100, 255, 0.1)
  );
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

.sidebar .bbs-header {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: hsl(var(--color-accent));
  text-align: center;
}

.sidebar .pixel-border {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    hsla(var(--color-accent), 0.6) 20%,
    hsla(var(--color-accent), 0.6) 80%,
    transparent 100%
  );
}

.zine-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--color-white));
  font-family: var(--font-mono);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.zine-nav-link .text-accent {
  display: inline-block;
  width: 2.5rem;
  color: hsl(var(--color-accent));
  transition: all 0.2s ease;
}

.zine-nav-link:hover,
.zine-nav-link:focus {
  border-left-color: hsl(var(--color-accent));
  color: hsl(var(--color-white));
  background-color: rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 8px hsl(var(--color-accent));
  transform: translateX(5px);
}

.zine-nav-link:hover .text-accent,
.zine-nav-link:focus .text-accent {
  color: hsl(var(--color-glitch));
  text-shadow: 0 0 8px hsl(var(--color-glitch));
}

.zine-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: transparent;
  transition: all 0.2s ease;
}

.zine-nav-link:hover::before {
  background-color: hsl(var(--color-accent));
  box-shadow: 0 0 8px hsl(var(--color-accent));
}

.zine-nav-link:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(var(--color-accent), 0.1) 50%,
    transparent 100%
  );
  animation: nav-glitch 1s ease forwards;
  z-index: 1;
  pointer-events: none;
}

@keyframes nav-glitch {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Active navigation link */
.zine-nav-link.active {
  border-left-color: hsl(var(--color-accent));
  background-color: rgba(0, 0, 0, 0.5);
  color: hsl(var(--color-accent));
  text-shadow: 0 0 5px hsl(var(--color-accent));
}

.zine-nav-link.active::before {
  background-color: hsl(var(--color-accent));
  box-shadow: 0 0 8px hsl(var(--color-accent));
}

/* Mobile menu toggle */
#mobile-menu-toggle {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid hsla(var(--color-accent), 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

#mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.95);
  border-color: hsl(var(--color-accent));
  box-shadow: 0 0 10px hsla(var(--color-accent), 0.5);
}

.blink {
  animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

/* Media queries for sidebar */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .main-content {
    margin-left: 240px;
  }
}

/* =====================================================
   ZINE SPECIFIC STYLES
   ===================================================== */
.zine-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 5rem);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--color-accent));
  text-shadow:
    0 0 20px hsla(var(--color-accent), 0.8),
    0 0 40px hsla(var(--color-accent), 0.5),
    2px 2px 0 hsla(var(--color-glitch), 0.3);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zine-title:hover {
  transform: scale(1.02);
  text-shadow:
    0 0 30px hsla(var(--color-accent), 1),
    0 0 60px hsla(var(--color-accent), 0.7),
    3px 3px 0 hsla(var(--color-glitch), 0.5);
}

.zine-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: hsl(var(--color-glitch));
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsla(var(--color-glitch), 0.5);
  text-shadow: 0 0 10px hsla(var(--color-glitch), 0.6);
}

.section-number {
  font-size: 0.6em;
  opacity: 0.7;
  font-family: var(--font-mono);
}

.zine-section {
  margin-bottom: 4rem;
  padding: 2rem;
  position: relative;
}

/* =====================================================
   CONVERSATION STYLES
   ===================================================== */
.conversation {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 3px solid hsla(var(--color-accent), 0.5);
}

.comment {
  margin: 0.75rem 0;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.first-voice {
  color: hsl(var(--color-bracket-single));
  padding-left: 1rem;
  text-shadow: 0 0 3px hsla(var(--color-bracket-single), 0.3);
  font-style: italic;
}

.second-voice {
  color: hsl(var(--color-bracket-double));
  padding-left: 2rem;
  text-shadow: 0 0 3px hsla(var(--color-bracket-double), 0.3);
  font-style: italic;
}

/* =====================================================
   SPECIAL TEXT STYLES
   ===================================================== */
.distort {
  display: inline-block;
  transition: all 0.3s ease;
}

.split-letters {
  letter-spacing: 0.2em;
  word-spacing: 0.4em;
}

.psychedelic {
  background: linear-gradient(
    90deg,
    hsl(var(--color-accent)),
    hsl(var(--color-glitch)),
    hsl(var(--color-accent))
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: psychedelic-shift 3s ease infinite;
}

@keyframes psychedelic-shift {
  to { background-position: 200% center; }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

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

.wink-text {
  cursor: pointer;
  transition: all 0.3s ease;
}

.wink-text:hover {
  color: hsl(var(--color-glitch));
  text-shadow: 0 0 8px hsla(var(--color-glitch), 0.8);
}

.wink-animation {
  display: inline-block;
  animation: wink 2s ease-in-out infinite;
}

@keyframes wink {
  0%, 90%, 100% { transform: scaleX(1); }
  95% { transform: scaleX(0.1); }
}

.typewriter-text {
  font-family: var(--font-retro);
  letter-spacing: 0.05em;
}

.emphasis {
  color: hsl(var(--color-glitch));
  font-weight: 600;
  text-shadow: 0 0 5px hsla(var(--color-glitch), 0.5);
}

/* =====================================================
   LINK STYLES
   ===================================================== */
/* Subtle link styles - clean and simple */
.subtle-link,
.subtle-link-asterisk {
  position: relative;
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: hsla(var(--color-accent), 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subtle-link:hover,
.subtle-link-asterisk:hover {
  color: hsl(var(--color-accent));
  text-decoration-color: hsl(var(--color-accent));
  text-shadow: 0 0 10px hsla(var(--color-accent), 0.5);
}

/* =====================================================
   TOOLTIPS
   ===================================================== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover:before {
  content: attr(data-tooltip);
  position: fixed;
  bottom: auto;
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  font-family: var(--font-mono);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid hsla(var(--color-accent), 0.5);
  max-width: 300px;
  z-index: 10000;
}

/* Long tooltip with text wrapping */
[data-tooltip-long]:hover:before {
  white-space: normal;
  width: max-content;
  max-width: 300px;
  text-align: center;
  line-height: 1.4;
}

/* Tooltip animation */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
}

.subtle-link[data-tooltip],
.subtle-link-asterisk[data-tooltip] {
  cursor: pointer;
}

/* =====================================================
   COLLAPSIBLE SECTIONS
   ===================================================== */
.collapsible-trigger {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
}

.collapsible-trigger:hover {
  color: hsl(var(--color-accent));
  text-shadow: 0 0 5px hsla(var(--color-accent), 0.3);
}

.collapsible-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.collapsible-content.hidden {
  max-height: 0;
}

.collapsible-content.visible {
  max-height: 5000px;
}

.expand-btn {
  background: none;
  border: 1px solid hsla(var(--color-accent), 0.5);
  color: hsl(var(--color-accent));
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.expand-btn:hover {
  background: hsla(var(--color-accent), 0.2);
  border-color: hsl(var(--color-accent));
  text-shadow: 0 0 5px hsla(var(--color-accent), 0.8);
}

.expand-note {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =====================================================
   PROLOGUE SPECIFIC
   ===================================================== */
.prologue-container {
  font-family: var(--font-serif);
  line-height: 1.8;
}

.prologue-part {
  margin-bottom: 3rem;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: hsl(var(--color-accent));
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.word-theory {
  font-size: 1.05rem;
  line-height: 1.9;
}

.timeline-container {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 3px solid hsla(var(--color-glitch), 0.6);
}

.timeline-title {
  font-family: var(--font-mono);
  color: hsl(var(--color-glitch));
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.timeline {
  list-style: none;
  padding-left: 0;
}

.timeline li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.timeline li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: hsl(var(--color-accent));
}

.complete {
  color: hsl(var(--color-accent));
  opacity: 0.7;
}

.in-progress {
  color: hsl(var(--color-glitch));
  font-weight: 600;
}

.unknown {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.spell-box {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid hsla(var(--color-accent), 0.3);
  margin: 2rem 0;
}

.spell-verse {
  margin: 1.5rem 0;
}

.tight-spacing {
  line-height: 1.4;
}

.spell-dialogue {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dotted hsla(var(--color-accent), 0.3);
}

.little-model-say {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 3px solid hsla(var(--color-glitch), 0.6);
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
}

.outline-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.outline-list {
  list-style: none;
  padding-left: 0;
}

.outline-list li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.outline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: hsl(var(--color-accent));
}

.outline-list .heading {
  color: hsl(var(--color-glitch));
  font-weight: 600;
}

.divider {
  text-align: center;
  margin: 3rem 0;
  color: hsla(var(--color-accent), 0.5);
  font-family: var(--font-mono);
}

.two-column-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .two-column-container {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   SUTRA SPECIFIC
   ===================================================== */
.sutra-container {
  font-family: var(--font-serif);
}

.sutra-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: hsl(var(--color-glitch));
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.08em;
}

.verse {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 1.5rem 0;
  padding-left: 2rem;
  border-left: 2px solid hsla(var(--color-accent), 0.3);
}

.sutra-origin {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.sutra-origin ul {
  list-style: none;
  padding-left: 1rem;
}

.sutra-origin li::before {
  content: '◇ ';
  color: hsl(var(--color-accent));
}

/* =====================================================
   MANIFESTO SPECIFIC
   ===================================================== */
.manifesto-container {
  font-family: var(--font-serif);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  color: hsl(var(--color-accent));
  margin-bottom: 3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.manifesto-section {
  margin: 3rem 0;
}

.manifesto-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: hsl(var(--color-glitch));
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manifesto-text {
  font-size: 1.05rem;
  line-height: 1.9;
}

.manifesto-text p {
  margin-bottom: 1.5rem;
}

/* Poetry section styles */
.poetry-section {
  margin: 3rem 0;
}

.poetry-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: hsl(var(--color-accent));
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.poem-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.9;
  padding-left: 2rem;
}

.noble-truths {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.noble-truths p {
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* =====================================================
   GLITCH SPECIFIC
   ===================================================== */
.glitch-container {
  font-family: var(--font-mono);
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch[data-text] {
  position: relative;
}

.glitch[data-text]::before,
.glitch[data-text]::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch[data-text]::before {
  left: 2px;
  text-shadow: -2px 0 hsl(var(--color-accent));
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch[data-text]::after {
  left: -2px;
  text-shadow: -2px 0 hsl(var(--color-glitch));
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(61px, 9999px, 90px, 0); }
  5% { clip: rect(33px, 9999px, 25px, 0); }
  10% { clip: rect(68px, 9999px, 48px, 0); }
  /* Add more keyframes as needed */
  100% { clip: rect(28px, 9999px, 86px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 119px, 0); }
  5% { clip: rect(48px, 9999px, 101px, 0); }
  10% { clip: rect(28px, 9999px, 17px, 0); }
  /* Add more keyframes as needed */
  100% { clip: rect(93px, 9999px, 61px, 0); }
}

.glitch-line {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.glitch-emphasis {
  color: hsl(var(--color-glitch));
  font-weight: 600;
  font-size: 1.1em;
}

/* =====================================================
   EPILOGUE SPECIFIC
   ===================================================== */
.epilogue-container {
  font-family: var(--font-serif);
}

.epilogue-section {
  margin: 2rem 0;
  font-size: 1.05rem;
  line-height: 1.9;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: hsl(var(--color-accent));
  margin: 2.5rem 0 1.5rem;
  letter-spacing: 0.08em;
}

.italic-note {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.verse-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 6px;
  border-left: 3px solid hsla(var(--color-accent), 0.5);
  margin: 2rem 0;
  line-height: 1.8;
}

.verse-box .italic {
  font-style: italic;
  color: hsla(var(--color-white), 0.9);
}

.realization-box,
.meditation-box,
.oracle-box,
.ceremony-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.realization-box p,
.meditation-box p,
.oracle-box p,
.ceremony-box p {
  margin: 1rem 0;
}

.final-signature {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
}

.big-question {
  font-size: 1.5rem;
  color: hsl(var(--color-glitch));
  font-family: var(--font-heading);
}

.answers {
  line-height: 2;
}

.final-answer {
  font-size: 1.2rem;
  font-weight: 600;
  color: hsl(var(--color-accent));
}

.final-title {
  margin-top: 3rem;
  text-align: center;
  font-size: 1.2rem;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pl-4 { padding-left: 1rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

.opacity-0 { opacity: 0; }
.opacity-15 { opacity: 0.15; }
.opacity-40 { opacity: 0.4; }

.hidden { display: none; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-6 { border-radius: 6px; }

.bg-black { background-color: black; }
.bg-opacity-30 { background-color: rgba(0, 0, 0, 0.3); }

.border-b { border-bottom-width: 1px; }
.border-dotted { border-style: dotted; }
.border-preface-accent { border-color: hsl(var(--color-preface-accent)); }

.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.w-2\/3 { width: 66.666667%; }
.h-full { height: 100%; }
.w-full { width: 100%; }

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-normal { font-weight: 400; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.transition-opacity { transition-property: opacity; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.pointer-events-none { pointer-events: none; }

.pixel-border {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(var(--color-accent)) 20%,
    hsl(var(--color-glitch)) 50%,
    hsl(var(--color-accent)) 80%,
    transparent 100%
  );
  box-shadow: 0 0 10px hsla(var(--color-accent), 0.5);
}

/* =====================================================
   ADDITIONAL STYLES FROM VOID.CSS
   ===================================================== */
.newspaper-text {
  font-family: var(--font-alt-serif);
  font-size: 1.1em;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: justify;
  column-count: 2;
  column-gap: 1.5rem;
  column-rule: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  background-color: rgba(245, 245, 220, 0.05);
}

.terminal-text {
  font-family: var(--font-mono);
  color: hsl(120, 100%, 50%);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 2px solid hsl(120, 100%, 50%);
  line-height: 1.4;
  letter-spacing: 0.05em;
  overflow-x: auto;
  white-space: pre-wrap;
}

.inverted-colors {
  background-color: hsl(var(--color-paper));
  color: hsl(var(--color-background));
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.inverted-colors:hover {
  background-color: hsl(var(--color-glitch));
  color: hsl(var(--color-paper));
}

.disappearing-text {
  position: relative;
  overflow: hidden;
}

.disappearing-text .char {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.disappearing-text.active .char {
  opacity: 0;
  transform: translateY(10px);
  transition-delay: calc(var(--char-index) * 100ms);
}

.disappearing-text.reappearing .char {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--char-index) * 50ms);
}

.glitch-font {
  font-family: var(--font-glitch);
  letter-spacing: 0.05em;
  font-size: 1.1em;
  text-shadow: 1px 1px 0 rgba(255, 0, 255, 0.4),
              -1px -1px 0 rgba(0, 255, 255, 0.4);
}

.retro-typewriter {
  font-family: var(--font-retro);
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
  background-color: rgba(245, 245, 220, 0.05);
  padding: 1rem;
  border-radius: 3px;
}

.manuscript {
  font-family: var(--font-alt-serif);
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: 1.15em;
  text-indent: 1.5em;
}

.vaporwave-text {
  font-family: var(--font-heading);
  letter-spacing: 0.3em;
  word-spacing: 0.6em;
  text-transform: uppercase;
  color: #ff00ff;
  text-shadow:
    2px 2px 0 #00ffff,
    4px 4px 0 rgba(0, 0, 255, 0.5);
  background: linear-gradient(
    to right,
    #ff00ff,
    #00ffff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5em;
}

.subtitle-text {
  transition: all 0.5s ease;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.1rem;
  color: hsl(var(--color-white)) !important;
  text-shadow: 0 0 10px hsla(var(--color-accent), 0.7), 0 0 20px hsla(var(--color-accent), 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border-left: 3px solid hsla(var(--color-accent), 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.subtitle-conversation {
  cursor: pointer;
}

.easter-egg-trigger {
  position: relative;
  transition: all 0.3s ease;
}

.easter-egg-trigger:hover {
  color: hsl(var(--color-glitch));
  transform: translateX(5px);
}

.selected-subtitle {
  color: hsl(var(--color-glitch));
  font-weight: bold;
  text-shadow: 0 0 8px hsla(var(--color-glitch), 0.5);
}

.selected-subtitle::after {
  content: " ✓";
  color: hsl(var(--color-accent));
}

#both-and-trigger:hover, #neither-nor-trigger:hover {
  text-shadow: 0 0 8px hsla(var(--color-accent), 0.8);
  text-decoration: underline;
}

.wink-easter-egg {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.wink-easter-egg:hover {
  text-shadow: 0 0 1px hsla(var(--color-accent), 0.15);
}

.wink-easter-egg.toggled {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.wink-easter-egg.toggled::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: hsla(var(--color-glitch), 0.5);
  animation: wink-line 1s ease;
}

@keyframes wink-line {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

.void-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  background: radial-gradient(
    circle,
    hsla(var(--color-glitch), 0.7) 0%,
    hsla(var(--color-glitch), 0.3) 40%,
    transparent 70%
  );
  box-shadow: 0 0 20px hsla(var(--color-glitch), 0.5);
  backdrop-filter: blur(1px);
}

@keyframes subtle-glow {
  0% {
    text-shadow: 0 0 5px hsla(var(--color-accent), 0.3);
  }
  100% {
    text-shadow: 0 0 8px hsla(var(--color-accent), 0.7);
  }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
  .zine-title {
    font-size: 2.5rem;
  }

  .zine-heading {
    font-size: 1.8rem;
  }

  .newspaper-text {
    column-count: 1;
  }

  .conversation {
    padding: 1rem;
  }

  .first-voice, .second-voice {
    padding-left: 0.5rem;
  }
}

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