﻿:root {
  --accent: #990099;
  --text: #3b3b3b;
  --bg: #fafafa;
  --max-width: 800px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* --- Base layout --- */
body {
  font-family: var(--font-serif);
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Header / title --- */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

header p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0;
}

/* --- Image --- */
figure {
  text-align: center;
  margin: 1rem auto 2rem;
}
figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}
figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* --- Poem text --- */
.poem {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;       /* compact lines for verse */
  margin-bottom: 2rem;
  text-align: left;
}
  
.poem b {
  font-family: var(--font-sans);
  font-weight: 600;
}

/* --- Translation sections --- */
.translation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .translation {
    grid-template-columns: 1fr;
  }
}
.translation h2 {
  font-family: var(--font-sans);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.translation p {
  text-align: justify;
  margin: 0;
}

/* --- Notes or commentary --- */
.notes {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 2rem;
}
.notes h3 {
  font-family: var(--font-sans);
  color: var(--accent);
  margin-top: 0;
}

/* --- Navigation links --- */
.nav {
  text-align: center;
  margin-top: 2rem;
}
.nav a {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  transition: background 0.2s ease;
}
.nav a:hover {
  background: #7a007a;
}

/* --- Footer --- */
footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 1.5rem 1rem;
  color: #777;
  border-top: 1px solid #e0e0e0;
  background-color: #f5f5f5;
}
