:root {
  --bg: #faf7f2;
  --ink: #262220;
  --muted: #6b6259;
  --accent: #7a5c3e;
  --line: #e4ddd3;
  --max-width: 680px;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.7;
  font-size: 18px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

header.site-header h1 {
  margin: 0;
  font-weight: normal;
  letter-spacing: 0.04em;
  font-size: 2.2rem;
}

header.site-header p.tagline {
  color: var(--muted);
  font-style: italic;
  margin: 0.4rem 0 0;
}

nav.site-nav {
  margin-top: 1.2rem;
}

nav.site-nav a {
  margin: 0 0.8rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.poem {
  margin-bottom: 3.5rem;
}

.poem h2 {
  font-weight: normal;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.poem .date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.poem p {
  white-space: pre-line;
  margin: 0;
}

.poem-list-item {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.poem-list-item h2 {
  font-weight: normal;
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
}

.poem-list-item p.excerpt {
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.author-photo {
  text-align: center;
  margin: 0 0 2.5rem;
}

.author-photo img {
  max-width: 260px;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(38, 34, 32, 0.15);
}

.author-photo .credit {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.bio-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bio-facts li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--line);
}

.bio-facts li:last-child { border-bottom: none; }

.bio-facts strong {
  display: inline-block;
  min-width: 140px;
  color: var(--accent);
  font-weight: normal;
  font-style: italic;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--muted);
}

/* Contact form */
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

form.contact-form label {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

form.contact-form input,
form.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

form.contact-form button {
  align-self: flex-start;
  font-family: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 3px;
  cursor: pointer;
}

form.contact-form button:hover {
  opacity: 0.9;
}

form.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.form-status.success { color: #3d6b3d; }
.form-status.error { color: #a13d3d; }

.placeholder-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  border: 1px dashed var(--line);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 2rem;
}
