:root {
  --bg: #0b0b0f;
  --fg: #eaeaea;
  --muted: #9a9a9a;
  --accent: #e63946;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg) url('images/bg-texture.png') repeat;
  color: var(--fg);
  line-height: 1.8;
}

.accent-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: var(--accent);
  z-index: 100;
}

.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(120deg, #0b0b0f, #11101a);
  animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {background: linear-gradient(120deg, #0b0b0f, #11101a);}
  50% {background: linear-gradient(120deg, #11101a, #0b0b0f);}
  100% {background: linear-gradient(120deg, #0b0b0f, #11101a);}
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: 0.1em; margin: 0; }
p { color: var(--muted); margin-top: 0.5rem; font-style: italic; }

.post-list {
  max-width: 760px;
  margin: auto;
  padding: 2rem 1rem;
}

.post {
  padding: 1.5rem 0;
  border-bottom: 1px solid #1f1f26;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.5s;
  opacity: 0;
}

.post a {
  font-size: 1.6rem;
  color: var(--fg);
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.post a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.post:hover a {
  color: var(--accent);
}

.post:hover a::after { width: 100%; }

.post-content {
  max-width: 720px;
  margin: auto;
  padding: 2rem 1rem;
}

.post-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.post-content h2 { margin-top: 2rem; }

.post-content img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
  margin: 2rem 0;
  transition: transform 0.3s ease;
}

.post-content img:hover { transform: scale(1.02); }

.back {
  display: block;
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back:hover { color: var(--accent); }

footer {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Optional overlay for textures */
.texture-overlay {
  position: fixed;
  inset: 0;
  background: url('/images/overlay.png') center / cover;
  opacity: 0.15;
  pointer-events: none;
}
