@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&family=Yuji+Syuku&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'New Tegomin', serif;
  line-height: 1.8;
  color: #c0c0c0;
  background-color: #050505;
  /* Slightly darker */
  position: relative;
  overflow-x: hidden;
  letter-spacing: 0.05em;
}

/* Film grain effect */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* Base grain layer */
.film-grain::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  animation: grain-animation 0.5s steps(4) infinite;
}

/* Vignette and scanlines overlay */
.film-grain::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(0deg, transparent 0, rgba(0, 0, 0, 0.05) 1px, transparent 2px);
  opacity: 0.6;
  animation: flicker 0.15s infinite;
}

@keyframes grain-animation {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -10%);
  }

  20% {
    transform: translate(-15%, 5%);
  }

  30% {
    transform: translate(7%, -25%);
  }

  40% {
    transform: translate(-5%, 25%);
  }

  50% {
    transform: translate(-15%, 10%);
  }

  60% {
    transform: translate(15%, 0%);
  }

  70% {
    transform: translate(0%, 15%);
  }

  80% {
    transform: translate(-15%, 35%);
  }

  90% {
    transform: translate(10%, -10%);
  }
}

@keyframes flicker {
  0% {
    opacity: 0.55;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.58;
  }
}

@keyframes text-jerk {

  0%,
  94%,
  96%,
  100% {
    transform: translate(0, 0) skew(0);
    filter: blur(0);
  }

  95% {
    transform: translate(-1.5px, 0.5px) skew(0.5deg);
    filter: blur(0.2px);
  }

  97% {
    transform: translate(1.5px, -1px) skew(-0.2deg);
  }
}

@keyframes spooky-fade {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }

  20% {
    transform: skew(3deg);
  }

  24% {
    transform: skew(-5deg);
  }

  28% {
    transform: skew(0deg);
  }

  100% {
    transform: skew(0deg);
  }
}

@keyframes pulse-red {

  0%,
  100% {
    opacity: 0.05;
  }

  50% {
    opacity: 0.15;
  }
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.site-header {
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid #111;
  background: #050505;
}

.site-title {
  font-family: 'Yuji Syuku', serif;
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.site-title a {
  color: #900;
  /* Dark blood red */
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(255, 0, 0, 0.2);
  transition: all 0.5s ease;
}

.site-title a:hover {
  color: #f00;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.7), 0 0 30px rgba(255, 0, 0, 0.4);
  letter-spacing: 0.2em;
  animation: title-shiver 0.2s infinite;
}

@keyframes title-shiver {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, 1px);
  }

  75% {
    transform: translate(1px, 1px);
  }

  100% {
    transform: translate(-1px, -1px);
  }
}

.site-description {
  font-family: 'New Tegomin', serif;
  font-size: 1.2rem;
  color: #555;
  letter-spacing: 0.2em;
  font-style: italic;
  margin-top: 5px;
  opacity: 0.7;
}

/* Main content */
.site-content {
  min-height: 60vh;
  padding: 0 0 60px;
}

.content-wrapper {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'Yuji Syuku', serif;
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 30px;
  border-bottom: 1px solid #222;
  padding-bottom: 10px;
  letter-spacing: 0.3em;
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
  margin-top: -20px;
  /* Offset to connect with header if needed */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.9) 80%),
    linear-gradient(rgba(136, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #900;
  opacity: 0.05;
  animation: pulse-red 8s infinite ease-in-out;
}


.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  animation: hero-fade-in 2s ease-out;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: #900;
  letter-spacing: 0.5em;
  margin-bottom: 20px;
  font-weight: 400;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.hero-title {
  font-family: 'Yuji Syuku', serif;
  font-size: 4rem;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 0, 0, 0.2);
  position: relative;
  animation: hero-fade-in 2s ease-out, glitch-skew 4s infinite linear alternate-reverse;
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.hero-title::before {
  color: #f00;
  z-index: -1;
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  display: none;
}

.hero-title:hover::before {
  display: block;
}


.hero-description {
  font-size: 1.1rem;
  color: #888;
  margin: 0 auto;
  line-height: 2;
  font-style: italic;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Post list and cards */
.post-list {
  list-style: none;
  display: grid;
  gap: 40px;
}

.post-card {
  background:
    linear-gradient(rgba(10, 10, 10, 0.8), rgba(5, 5, 5, 0.9)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  border: 1px solid #1a1a1a;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}


.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: #600;
  transition: height 0.5s ease;
}

.post-card:hover {
  background: rgba(25, 25, 25, 0.8);
  border-color: #333;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-card:hover::before {
  height: 100%;
}

.post-header-mini {
  margin-bottom: 20px;
}

.post-date-tag {
  font-size: 0.8rem;
  color: #444;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 10px;
}

.post-card h2 {
  font-family: 'Yuji Syuku', serif;
  font-size: 1.8rem;
  margin: 0;
}

.post-card h2 a {
  color: #bbb;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(136, 0, 0, 0.5);
}

.post-body {
  margin-top: 15px;
}

.post-excerpt {
  color: #888;
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: #600;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #f00;
  border-bottom-color: #f00;
  padding-left: 10px;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* Individual post */
.post {
  padding: 40px 0;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.post-title {
  font-family: 'Yuji Syuku', serif;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.post-date {
  font-size: 0.95rem;
  color: #666;
}

.post-content {
  font-size: 1.1rem;
  line-height: 2;
  color: #b0b0b0;
}

.post-content p {
  margin-bottom: 2em;
  text-align: justify;
  animation: text-jerk 67s infinite;
}

.post-content p:nth-child(2n) {
  animation-duration: 91s;
  animation-delay: 13s;
}

.post-content p:nth-child(3n) {
  animation-duration: 113s;
  animation-delay: 29s;
}

.post-content em {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: -1em;
  margin-bottom: 2em;
  animation: spooky-fade 8s infinite ease-in-out;
}

.post-content h3 {
  font-family: 'Yuji Syuku', serif;
  color: #a00;
  /* Subdued blood red */
  margin: 2em 0 1em;
  font-size: 1.8rem;
  border-left: 3px solid #600;
  padding-left: 15px;
}

.post-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.back-link {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #222;
  background-color: #0a0a0a;
  color: #555;
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #888;
}

/* Responsive design */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-item h2 {
    font-size: 1.5rem;
  }
}