:root { --ink: #2b2b2b; --paper: #f6f1e7; --accent: #8a5a2b; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, "Times New Roman", serif;
  color: var(--ink); background: var(--paper); line-height: 1.6; }
.site-header { padding: 1rem 2rem; border-bottom: 2px solid var(--accent);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.site-header .brand { text-decoration: none; color: var(--accent); }
.site-header h1 { margin: 0; font-size: 1.5rem; }
.site-nav a { text-decoration: none; color: var(--accent); margin-left: 1.2rem; }
.site-nav a:hover { text-decoration: underline; }
/* landing page */
.home { max-width: 40rem; }
.home .lead { font-size: 1.25rem; line-height: 1.5; }
.home .cta { margin: 1.8rem 0; }
.home .button { display: inline-block; background: var(--accent); color: var(--paper);
  text-decoration: none; padding: 0.7rem 1.3rem; border-radius: 6px; font-size: 1.1rem; }
.home .button:hover { background: #6f4720; }
.home .sub { color: #555; }
.home .sub a { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem; }
/* recipient filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.filters .filter { text-decoration: none; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.2rem 0.8rem; font-size: 0.95rem; }
.filters .filter.active { background: var(--accent); color: var(--paper); }
.index-title { margin: 0.5rem 0 0; font-size: 1.3rem; }
.empty { color: #777; font-style: italic; }
.year { border-bottom: 1px solid #ccc; margin-top: 2rem; }
.letter-list { list-style: none; padding: 0; }
.letter-list li a { display: grid;
  grid-template-columns: 9rem 7rem 11rem 1fr;
  gap: 1rem; padding: 0.6rem 0.4rem; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid #e5ddcb; align-items: baseline; }
.letter-list li a:hover { background: #efe7d6; }
.letter-list .date { font-weight: bold; }
.letter-list .to { color: var(--accent); font-style: italic; }
.letter-list .snippet { color: #555; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
@media (max-width: 700px) {
  .letter-list li a { grid-template-columns: 1fr; gap: 0.1rem; }
  .letter-list .snippet { white-space: normal; }
}
.letter-nav { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.letter-meta { margin: 0 0 1rem; color: #555; }
.letter-meta a { color: var(--accent); }
/* about / medals */
.about-body { max-width: 42rem; }
.medals-featured { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.medals-featured figure { margin: 0; flex: 1 1 280px; max-width: 420px; }
.medals-gallery { display: grid; gap: 1.2rem; margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.about figure { margin: 0; }
.about img { width: 100%; border: 1px solid #bbb; background: #fff; cursor: zoom-in; }
.about figcaption { font-size: 0.9rem; color: #555; margin-top: 0.3rem; }
/* journey + places */
.journey-intro { max-width: 42rem; }
.journey-list { list-style: none; padding: 0; counter-reset: step; max-width: 46rem; }
.journey-list li { position: relative; padding: 0.6rem 0 0.6rem 2.4rem;
  border-left: 2px solid var(--accent); margin-left: 0.6rem; }
.journey-list li::before { counter-increment: step; content: counter(step);
  position: absolute; left: -0.9rem; top: 0.6rem; width: 1.6rem; height: 1.6rem;
  background: var(--accent); color: var(--paper); border-radius: 50%;
  text-align: center; line-height: 1.6rem; font-size: 0.85rem; }
.journey-place { font-size: 1.15rem; color: var(--accent); text-decoration: none; font-weight: bold; }
.journey-list .when { color: #777; margin-left: 0.6rem; font-size: 0.9rem; }
.journey-list p { margin: 0.25rem 0 0; color: #444; }
.place-region { color: #777; margin-top: -0.3rem; }
.place-when { color: #555; }
.place-body { max-width: 42rem; }
.crumb a { color: var(--accent); text-decoration: none; }
.letter-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .letter-body { grid-template-columns: 1fr; } }
.scan { width: 100%; border: 1px solid #bbb; cursor: zoom-in;
  background: #fff; }
.transcript { white-space: pre-wrap; }
.uncertain { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.illegible { color: #999; font-style: italic; }
/* editorial footnote (context about people/events mentioned) */
.note { display: flow-root; background: #efe7d6; border: 1px solid #e0d5bd;
  border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1.4rem 0; font-size: 0.95rem; }
.note .note-photo { float: left; width: 110px; margin: 0 1rem 0.4rem 0;
  border: 1px solid #bbb; background: #fff; }
.note p { margin: 0; }
.note .credit { color: #888; font-size: 0.8rem; }
.note a { color: var(--accent); }
.xref { background: #efe7d6; border-left: 3px solid var(--accent);
  padding: 0.5rem 0.9rem; margin: 1.2rem 0; font-size: 0.95rem; font-style: italic; }
.xref a { color: var(--accent); font-style: normal; }
/* lightbox */
.zoom-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
  z-index: 1000; }
.zoom-overlay.open { display: flex; }
.zoom-overlay img { max-width: 95%; max-height: 95%; }
