/* style.css */

/* Base layout */
body {
  font-family: Georgia, serif;
  margin: 15px auto;
  line-height: 1.2;
  max-width: 900px;
  font-size: clamp(18px, 2vw, 20px); /* responsive scaling */
  padding: 0 10px;                   /* avoids text touching screen edges */
}

/* Headings */
h1 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  text-align: center;
}

/* Links */
a {
  text-decoration: none;
  color: blue;
}

/* Paragraphs */
p {
  white-space: pre-line;
}

/* Images & Videos */
img, video {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  height: auto;
}

video {
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Text blocks */
.poem, .prose {
  text-align: left;
}

/* Section divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #555;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.divider:not(:empty)::before {
  margin-right: 0.75em;
}
.divider:not(:empty)::after {
  margin-left: 0.75em;
}

.divider span {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  body {
    line-height: 1.6;
    padding: 0 15px;
  }

  h1 {
    font-size: 1.2em;
  }

  .divider {
    margin: 1.5rem 0;
  }
}
