:root {
  --maxw: 760px;
  --pad: 22px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header, .site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
}
.contact-form {
  margin-top: 1rem;
}

.form-field {
  margin: 0 0 1rem 0;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  opacity: 0.8;
}

input, textarea, button {
  font: inherit;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
}

button {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  cursor: pointer;
}

.contact-status {
  margin-top: 0.75rem;
  opacity: 0.75;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.site-nav {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
}

.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) var(--pad) var(--pad);
}

.page h1, .poem-title {
  font-size: 2rem;
  margin: 1.4rem 0 0.6rem 0;
}

/* subtitles under book titles */
.page-subtitle {
  margin: 0.5rem 0 1.25rem 0;
  opacity: 0.75;
}

.poem-meta {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.poem-body {
  font-size: 1.08rem;
  line-height: 1.9;
}

/* stanzas are <p>, line breaks are <br> (with markdown-it breaks: true) */
.poem-body p {
  margin: 0 0 1.6rem 0;
}

.poem-body p:last-child {
  margin-bottom: 0;
}

/* chapter/book listing */
.texts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.texts-list li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.texts-list li:first-child {
  border-top: 0;
}

.text-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}

.text-date {
  opacity: 0.6;
  font-size: 0.95rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* footer */
.site-footer {
  font-size: 0.95rem;
  opacity: 0.75;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-copyright {
  opacity: 0.7;
  font-size: 0.95rem;
}

.sep {
  opacity: 0.5;
}
.contact-form {
  max-width: 520px;
}

.contact-form label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.9rem;
  font: inherit;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.contact-status {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .text-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}
