:root {
  --bg-color: #f8f1e7;
  --font-color: #000;
  --accent-color: #fff6d7;
  --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');
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: #a6a59f;
  font-family: var(--font-primary);
  background-image: url('https://caelivane.neocities.org/images/tiles/roses.gif');
  background-repeat: repeat;
}

#page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 20px;
}

#main-content-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
}

.side-column {
  width: 300px;
  background: #5a3939;
  color: #a6a59f;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-column {
  flex-grow: 1;
  background: #5a3939;
  color: #a6a59f;
  padding: 20px;
  max-width: 800px;
  box-sizing: border-box;
}

.side-column.right {
  overflow: hidden;
  height: 1200px;
  position: relative;
}

.scroll-polaroids {
  position: relative;
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, white 10%, white 90%, transparent);
  width: 100%;
}

.scroll-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scrollLoop 60s linear infinite;
}

@keyframes scrollLoop {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.polaroid {
  background: #f8f1e7;
  border: 2px solid #000;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
  padding: 10px 10px 25px;
  width: 90%;
  max-width: 220px;
  text-align: center;
  margin: 10px auto;
  position: relative;
  z-index: 2;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #333;
}

.polaroid figcaption {
  margin-top: 10px;
  font-size: 1em;
  color: #000;
  font-family: 'arcade', monospace;
}

.polaroid:nth-child(odd) {
  transform: rotate(-2deg);
}

.polaroid:nth-child(even) {
  transform: rotate(2deg);
}

#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; }
}

.sidebar-photo {
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-photo img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.sidebar-photo figcaption {
  font-size: 0.9em;
  margin-top: 5px;
  color: var(--accent-color);
  font-family: var(--font-primary);
}

footer {
  text-align: center;
  font-size: 0.9em;
  background-color: #5a3939;
  color: #a6a59f;
  margin-bottom: 20px;
}

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

a:hover {
  text-decoration: underline;
}