:root {
  --bg: #f5f1ea;
  --ink: #1a1a1a;
  --muted: #5b5b5b;
  --accent: #b5472a;
  --accent-2: #6b5b95;
  --paper: #fffaf2;
  --shadow: 0 12px 35px rgba(0,0,0,0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", "Georgia", serif;
}

a { color: inherit; text-decoration: none; }

a:hover { color: var(--accent); }

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(245, 241, 234, 0.8);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-card {
  background: var(--paper);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 44px;
  margin: 0 0 12px;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-quote {
  margin-top: 20px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: rgba(181, 71, 42, 0.08);
  font-style: italic;
}

.hero-panel {
  background: linear-gradient(135deg, rgba(181,71,42,0.12), rgba(107,91,149,0.15)),
              url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"600\" height=\"600\"><rect width=\"600\" height=\"600\" fill=\"%23f7f1e7\"/><circle cx=\"460\" cy=\"120\" r=\"120\" fill=\"%23e2c9b3\"/><circle cx=\"140\" cy=\"420\" r=\"180\" fill=\"%23e6d6c6\"/></svg>");
  border-radius: var(--radius);
  padding: 26px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.hero-panel p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  margin: 0 0 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--paper);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.poem-list {
  display: grid;
  gap: 10px;
}

.poem-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.poem-link span {
  color: var(--muted);
  font-size: 14px;
}

.poem {
  background: var(--paper);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-item {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(181,71,42,0.3), rgba(107,91,149,0.3));
}

.gallery-caption {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; }
  .hero-title { font-size: 36px; }
}
