body {
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  background: linear-gradient(135deg, #f5f5f5, #e0eafc);
  color: #333;
  scroll-behavior: smooth;
  height: 100vh;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: left;
  color: #333;
  margin: 0 0 2rem 0;
  font-weight: 500;
  font-size: 1.8em;
  font-family: "Raleway";
  text-decoration: none;
  line-height: 1.3;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Styles for the new spans */
.h1-separator {
  font-weight: 300; /* Lighter weight for the pipe */
  color: #555; /* Use a less prominent color */
  margin: 0 0.2em; /* Add a little space around the pipe */
}

.h1-subtitle {
  font-weight: 300; /* Lighter weight for the subtitle */
  color: #555; /* Match separator or use main text color */
  /* color: var(--text-color); */ /* Alternative: Keep main color but lighter weight */
}

.h1-link {
  color: inherit; /* Make the link inherit the H1's text color */
  text-decoration: none; /* Remove the default underline */
  transition: color 0.2s ease; /* Add smooth transition for hover */
}

.h1-link:hover {
  color: #58a6ff; /* Change color on hover (optional, use var(--text-color) to keep it same) */
  /* text-decoration: underline; */ /* Optionally add underline on hover */
}

#haiku-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.haiku {
  background: #f7f7f7;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #eee;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.haiku:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  background: #f9f9f9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.haiku-date {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.75rem;
  font-style: italic;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.haiku:hover .haiku-date {
  opacity: 1;
}

.haiku-text {
  white-space: pre-line;
  font-size: 1.05rem;
  color: #2c3e50;
  line-height: 2;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  text-align: left;
  word-spacing: 0.15rem;
  font-weight: 300;
}

@media screen and (max-width: 480px) {
  .haiku-text {
    font-size: 0.95rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
  }
}

.haiku:hover .haiku-text {
  color: #3498db;
  transform: translateY(-2px);
}

.gidole-regular {
  font-family: "Gidole", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.noto-sans-jp-seijaku {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: light;
}
