:root {
  --cover: #22301f;       /* book-cloth green */
  --cover-ink: #e9e2cf;   /* parchment text on cover */
  --page: #f1ece0;        /* parchment page */
  --page-deep: #e8e1cf;
  --ink: #241f19;         /* warm near-black ink */
  --muted: #6c6255;
  --line: #d7cdb6;
  --gilt: #8a6a2c;        /* muted brass accent, used sparingly */
  --max: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

/* header + footer sit on the cover-green band */
.site-header, .site-footer { background: var(--cover); color: var(--cover-ink); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.brand {
  text-decoration: none;
  font-family: "Libre Caslon Display", "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--cover-ink);
}
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; color: var(--cover-ink); opacity: .78; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }

.site-footer { padding: 40px 24px 46px; text-align: center; font-size: .85rem; line-height: 1.7; }
.footer-links { display: flex; justify-content: center; gap: 18px 22px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a, .site-footer .fine a {
  text-decoration: underline;
  text-decoration-color: rgba(233,226,207,.35);
  text-underline-offset: 3px;
}
.site-footer .fine { opacity: .75; }

/* ---- homepage: hero + index ---- */
.hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 48px; align-items: start; }
.hero-mark {
  font-family: "Libre Caslon Display", serif;
  font-size: 1rem;
  color: var(--muted);
  border-left: 1px solid var(--gilt);
  padding-left: 16px;
  line-height: 1.5;
}
.hero-mark span { display: block; }
h1.title {
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 30px;
}
.intro p { max-width: 62ch; font-size: 1.14rem; margin: 0 0 20px; color: #332c23; }
.intro p.sign { margin-top: 30px; font-style: italic; color: var(--ink); }

.index-section { padding: 64px 0 88px; }
.index-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.index-heading h2 { font-family: "Libre Caslon Display", serif; font-weight: 400; font-size: 1.6rem; margin: 0; }
.index-heading .count { font-size: .85rem; color: var(--muted); font-style: italic; }

.poem-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.poem-row .num { font-family: "Libre Caslon Display", serif; color: var(--gilt); font-size: 1rem; padding-top: .2em; }
.poem-row h3 { font-family: "Libre Caslon Display", serif; font-weight: 400; font-size: 1.7rem; margin: 0 0 8px; }
.poem-row .original { margin: 0 0 10px; font-style: italic; color: var(--muted); font-size: .98rem; }
.poem-row .desc { margin: 0; color: #4a4237; font-size: .98rem; max-width: 52ch; }
.poem-row .links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: .3em; white-space: nowrap; }
.poem-row .links a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; font-size: .92rem; color: var(--ink); }
.poem-row .links a:hover { text-decoration-color: var(--gilt); color: var(--gilt); }
.poem-row.placeholder { opacity: .5; }
.poem-row.placeholder .num { color: var(--muted); }
.poem-row.placeholder .links span { font-size: .9rem; font-style: italic; color: var(--muted); }

/* ---- general content pages (about, charities, privacy, 404) ---- */
main.page { width: min(calc(100% - 48px), 720px); margin: 0 auto; padding: 72px 0 88px; }
.page-copy h1 {
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.page-copy h2 { font-family: "Libre Caslon Display", serif; font-weight: 400; font-size: 1.4rem; margin: 40px 0 14px; }
.page-copy p { margin: 0 0 19px; color: #332c23; }
.signature { margin-top: 34px !important; font-style: italic; }
.signature a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.quiet-note { color: var(--muted); font-size: .9rem; }
.privacy-list { padding-left: 22px; }
.privacy-list li { margin-bottom: 9px; }

/* ---- charities ---- */
.charity-list { margin: 30px 0 0; }
.charity {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.charity h2 { font-family: "Libre Caslon Display", serif; font-weight: 400; font-size: 1.75rem; margin: 0 0 10px; }
.charity p { margin: 0 0 16px; color: var(--muted); }
.charity a { display: inline-block; border: 1px solid var(--ink); padding: 9px 18px; text-decoration: none; font-size: .88rem; color: var(--ink); background: transparent; }
.charity a:hover { background: var(--cover); border-color: var(--cover); color: var(--cover-ink); }

/* ---- poem template ---- */
.poem-head { text-align: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 42px; }
.poem-head .original-title { margin: 0 0 5px; font-style: italic; color: var(--muted); font-size: .95rem; }
.poem-head .author { margin: 0 0 22px; color: var(--muted); }
.poem-head .translation-label { margin: 0 0 8px; color: var(--gilt); font-size: .82rem; }
.poem-head h1 {
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin: 0;
}
.poem { max-width: 620px; margin: 0 auto; font-size: 1.1rem; line-height: 1.85; }
.stanza { margin-bottom: 30px; }
.stanza:last-child { margin-bottom: 0; }
.refrain { margin-top: 8px; font-style: italic; color: var(--ink); }

.action-row { justify-content: center; margin: 46px 0 0; display: flex; }
.button {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink);
  background: transparent;
}
.button:hover { background: var(--cover); border-color: var(--cover); color: var(--cover-ink); }

.translation-note, .charity-callout {
  max-width: 660px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
  text-align: left;
  text-wrap: pretty;
}
.translation-note p { margin: 0 0 11px; }
.translation-note p:last-child { margin-bottom: 0; }
.charity-callout { margin-top: 26px; padding-top: 24px; }
.charity-callout a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding: 56px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-mark { border-left: none; border-top: 1px solid var(--gilt); padding-left: 0; padding-top: 12px; }
  .index-section { padding: 48px 0 64px; }
  .poem-row { grid-template-columns: 28px 1fr; row-gap: 14px; padding: 24px 0; }
  .poem-row .links { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; padding-top: 6px; }
  main.page { padding: 48px 0 64px; }
  .poem { font-size: 1rem; line-height: 1.75; }
}
