@media screen and (max-width: 1024px) {
  header h1 {
    font-size: 2.2rem;
  }
  header .overlay {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  header img {
    height: 300px;
  }
  header h1 {
    font-size: 1.8rem;
    line-height: 4rem;
  }
  header p {
    font-size: 1rem;
    line-height: 1.4rem;
  }
  header .overlay {
    padding: 1rem;
    max-width: 90%;
  }
  section {
    padding: 0 1rem;
  }
  .poem-title {
    font-size: 1.3rem;
  }
  .poem-content {
    font-size: 1rem;
  }
}

body {
  background: #1c1c1c;
  color: #e0e0e0;
  font-family: 'Georgia', serif;
  padding: 0;
  line-height: 1.6;
  user-select: none;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  text-align: center;
  color: white;
  height: 65vh;
}

header img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in;
}

header img.loaded {
  opacity: 1;
}

header .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem 3rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  max-width: 700px;
  text-align: center;
}
	
header h1 {
  font-size: 3rem;
  line-height: 3rem;
  margin: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1rem;
}

header p {
  font-size: 1.2rem;
  line-height: 1.5rem;
  font-style: italic;
  color: #ccc;
}

section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  border-top: 1px solid #444;
}

.poem {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: calc(var(--i) * 0.075s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poem-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f5f5f5;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poem-title:hover {
  color: #d6ad60;
}

.poem-content {
  max-height: 0;
  overflow: hidden;
  margin-top: 0.5rem;
  color: #ccc;
  font-style: italic;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.poem.open {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #d6ad60;
  padding-left: 0.75rem;
  border-radius: 0.25rem;
}

.poem.open .poem-content {
  max-height: 500px;
  opacity: 1;
}

.poem-link {
  color: #ccc;
  text-decoration: none;
}

.poem:hover .poem-link {
  color: #d6ad60;
}

.arrow {
  display: inline-block;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  color: #f5f5f5;
  transition: transform 0.4s ease, color 0.4s ease;
}

/* Rotated version when open */
.poem.open .arrow {
  transform: rotate(90deg);
}

.poem-title:hover .arrow {
  color: #d6ad60;
}

.poembody {
  background-color: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 0.8rem;
}

.tm {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: #666;
}

.social-media {
  text-align: center;
  margin: 1rem 0;
}

.social-media a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: #d6ad60;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #ffffff;
}

.about-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1rem;
  color: #d6ad60;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.back {
  display: inline-block;            /* makes the background wrap neatly */
  background: rgba(0, 0, 0, 0.);    /* dark translucent panel */
  color: #d6ad60;
  padding: 0.4rem 0.8rem;            /* space around the text */
  border-radius: 0.5rem;             /* rounded corners to match your footer */
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.back:hover {
  background: rgba(0, 0, 0, 0.4);    /* slightly darker on hover */
}

.site-footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem 1rem;
  text-align: center;
  color: #e0e0e0;
  font-size: 0.9rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

.site-footer .social-media {
  margin-bottom: 1rem;
}

.site-footer .social-media a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: #d6ad60;
  transition: color 0.3s ease;
}

.site-footer a {
  color: #d6ad60;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer a#email-link {
  color: #d6ad60;
  text-decoration: none;
}

.site-footer a#email-link:hover {
  color: #ffffff;
}


