:root {
  --bg-color: #f8f1e7;
  --font-color: #000;
  --accent-color: #bbb0ae;
  --header-bg: #680822;
  --font-primary: 'witch', serif;
  --font-title: 'arcade', monospace;
}

/* --- Typography & Fonts --- */
a {
  color: #bbb0ae;
  text-decoration: none;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

a:hover {
  color: #680822;
  text-shadow:
    0 0 6px #680822,
    0 0 12px #680822,
    0 0 18px #680822;
}

@font-face {
  font-family: 'witch';
  src: url('https://caelivane.neocities.org/fonts/witch.woff2') format('woff2'),
       url('https://caelivane.neocities.org/fonts/witch.woff') format('woff'),
       url('https://caelivane.neocities.org/fonts/witch.ttf') format('truetype');
}

@font-face {
  font-family: 'arcade';
  src: url('https://caelivane.neocities.org/fonts/arcade.woff2') format('woff2'),
       url('https://caelivane.neocities.org/fonts/arcade.woff') format('woff'),
       url('https://caelivane.neocities.org/fonts/arcade.ttf') format('truetype');
}

/* Base layout */
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: #403955;
  font-family: var(--font-primary);
  background-image: url('https://caelivane.neocities.org/images/tiles/ghosts.png');
  background-repeat: repeat;
}

#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-content {
  background-color: #333333;
  color: var(--accent-color);
  padding: 20px;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
}

#site-title {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3em;
  color: #bbb0ae;
  text-align: center;
  font-family: 'arcade', monospace;
  margin: 10px auto;
  padding-right: 0.5em;
  text-shadow:
    0 0 12px rgba(192, 192, 192, 0.4),
    0 0 24px rgba(192, 192, 192, 0.3);
  animation: glowPulse 3s ease-in-out infinite;
}

#site-title h1 {
  margin: 0;
}

#site-title::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
}

#site-title::after {
  content: '█';
  display: inline-block;
  width: 0.545em;
  height: 1em;
  background-color: #bbb0ae;
  animation: blink 3s infinite;
  margin-left: 10px;
  position: relative;
  top: 0.1em;
  text-shadow:
    0 0 10px rgba(192, 192, 192, 0.6),
    0 0 18px rgba(192, 192, 192, 0.4);
  flex-shrink: 0;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 12px rgba(192, 192, 192, 0.4),
      0 0 24px rgba(192, 192, 192, 0.3);
  }
  50% {
    text-shadow:
      0 0 16px rgba(121, 92, 52, 0.6),
      0 0 32px rgba(121, 92, 52, 0.5);
  }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  background-color: #333333;
  color: #bbb0ae;
}

/* Optional link style */
a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
