/* --- GLOBAL RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- BASE --- */
body {
  font-family: 'IBM Plex Mono', monospace;
  color: #000000;
  overflow: hidden;
  height: 80vh;
  background: #0d0d1a;
  position: relative;
}

/* --- BACKGROUND: Midnight Lava Lamp with CRT overlay --- */
.background {
  background-image: linear-gradient(to right, #0d0d1a, #1c1c31);
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  filter: contrast(1.1) saturate(1.2) brightness(1.1) hue-rotate(-5deg);
}

.background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* --- BLOBS --- */
.blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.blobs li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: animate 25s linear infinite;
  bottom: -150px;
  background: radial-gradient(circle, rgba(139,46,46,0.15) 0%, transparent 70%);
}

/* Blob variations with subtle color hints */
.blobs li:nth-child(2) { background: radial-gradient(circle, rgba(255,140,105,0.1) 0%, transparent 70%); left:10%; width:20px; height:20px; animation-delay: 2s; animation-duration: 12s;}
.blobs li:nth-child(3) { background: radial-gradient(circle, rgba(218,112,214,0.08) 0%, transparent 70%); left:70%; width:20px; height:20px; animation-delay: 4s;}
.blobs li:nth-child(4) { background: radial-gradient(circle, rgba(139,46,46,0.12) 0%, transparent 70%); left:40%; width:60px; height:60px; animation-delay:0s; animation-duration:18s;}
.blobs li:nth-child(5) { background: radial-gradient(circle, rgba(255,140,105,0.06) 0%, transparent 70%); left:65%; width:20px; height:20px;}
.blobs li:nth-child(6) { background: radial-gradient(circle, rgba(218,112,214,0.1) 0%, transparent 70%); left:75%; width:110px; height:110px; animation-delay:3s;}
.blobs li:nth-child(7) { background: radial-gradient(circle, rgba(139,46,46,0.15) 0%, transparent 70%); left:35%; width:150px; height:150px; animation-delay:7s;}
.blobs li:nth-child(8) { background: radial-gradient(circle, rgba(255,140,105,0.05) 0%, transparent 70%); left:50%; width:25px; height:25px; animation-delay:15s; animation-duration:45s;}
.blobs li:nth-child(9) { background: radial-gradient(circle, rgba(218,112,214,0.04) 0%, transparent 70%); left:20%; width:15px; height:15px; animation-delay:2s; animation-duration:35s;}
.blobs li:nth-child(10){ background: radial-gradient(circle, rgba(139,46,46,0.1) 0%, transparent 70%); left:85%; width:150px; height:150px; animation-delay:0s; animation-duration:11s;}

@keyframes animate {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}

/* --- LAYOUT --- */
.page-wrapper {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 55% 45%;
  height: 100vh;
  align-items: center;
}

.image-section {
  grid-column: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.image-section img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

/* --- CONTENT --- */
.container {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  max-width: 600px;
}

/* --- TITLE --- */
.title {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 2rem;
  color: #e0ded3; /* shale off-white */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  align-items: center;
  gap: 3.3rem; /* evenly spaced and aligned with title */
  margin-bottom: 4rem;
}

nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* --- POSTCARD --- */
.content {
  background-image: url("IMG_7121.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2rem 1.5rem;
  border-radius: 3px;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.postcard-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #666;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  padding-right: 6rem;
}

.stamp {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8b2e2e;
  border: 3px solid #8b2e2e;
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #8b2e2e;
  text-decoration: none;
  border-bottom: 1.5px solid #8b2e2e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #6b1e1e;
  border-bottom-color: #6b1e1e;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .page-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .image-section {
    padding: 2rem;
  }

  .container {
    padding: 2rem;
  }

  .title {
    font-size: 1.5rem;
  }

  nav {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.65rem;
  }
}
