:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --ink: #23201c;
  --muted: #6f675d;
  --line: #ece3d6;
  --accent: #d9534f;
  --accent-ink: #b23a36;
  --gold: #c8912f;
  --gold-bg: #fbf0d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.top { background: rgba(251, 247, 241, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); }
.logo-mark { font-size: 24px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.top nav a:hover { background: var(--line); text-decoration: none; }
.top nav a.on { background: var(--ink); color: #fff; }

h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15; margin: 36px 0 10px; letter-spacing: -.01em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; margin: 36px 0 14px; }
.lead { color: var(--muted); font-size: 17px; max-width: 760px; margin: 0 0 22px; }

.jubilees { background: var(--gold-bg); border: 1px solid #f0dcae; border-radius: var(--radius); padding: 4px 20px 16px;
  margin: 0 0 20px; }
.jubilees h2 { font-size: 19px; margin: 14px 0 10px; }
.jubilees ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.jubilees li span { color: var(--muted); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 20px; }
.filters button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.filters button:hover { border-color: #d8c9b4; }
.filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters .alive { margin-left: auto; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; }
.card .photo { aspect-ratio: 4 / 4.4; background: #efe7db; overflow: hidden; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.card .ph { width: 100%; height: 100%; display: grid; place-items: center; font: 600 52px Georgia, serif;
  color: hsl(var(--h) 35% 38%); background: hsl(var(--h) 45% 90%); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card .desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.card .years { margin: 0; font-size: 14px; color: var(--muted); }
.card .age { align-self: flex-start; margin-top: auto; }
.card .credit { font-size: 11px; color: #a39a8e; line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.card.gone .photo img { filter: grayscale(1) contrast(.95); }
.card.gone .ph { filter: grayscale(1); }

.age { display: inline-block; font-size: 13.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: #fdeceb; color: var(--accent-ink); white-space: nowrap; }
.age.jub { background: var(--gold-bg); color: #8a5d12; }
.age.jub::before { content: "★ "; color: var(--gold); }
.gone .age { background: #efebe6; color: #5d5650; }
.gone .age.jub { background: var(--gold-bg); color: #8a5d12; }

.rows { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); }
.rows li { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: baseline;
  padding: 11px 18px; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows .y { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.rows .who { font-size: 15px; }
.rows .who a { font-weight: 600; color: var(--ink); }
.rows li.gone .who a { color: #4a443e; }

[hidden], .hide { display: none !important; }
.empty { color: var(--muted); }

.days { margin: 40px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.days h2 { width: 100%; margin: 0 0 6px; font-size: 20px; }
.days a { background: var(--paper); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  color: var(--ink); font-size: 14.5px; }
.days a.cal { border-color: var(--ink); }
.perm { color: var(--muted); font-size: 14.5px; }

.pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--paper); padding: 14px 18px;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; }
.pick input, .pick button { font: inherit; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pick button { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.month { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 16px; }
.month h2 { font-size: 19px; margin: 12px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.grid .wd { font-size: 11.5px; color: #a39a8e; text-transform: uppercase; }
.grid a { padding: 5px 0; border-radius: 8px; color: var(--ink); font-size: 14.5px; }
.grid a:hover { background: var(--line); text-decoration: none; }
.grid a.now { background: var(--accent); color: #fff; font-weight: 700; }

.prose { max-width: 760px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px 28px 22px; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose li { margin: 4px 0; }

.foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--muted);
  font-size: 13.5px; }
.foot p { margin: 6px 0; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 620px; margin: 0 auto; z-index: 10;
  background: var(--ink); color: #f3ede5; padding: 12px 16px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.cookie a { color: #ffc9c6; }
.cookie button { margin-left: 8px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); border: 0;
  padding: 5px 12px; border-radius: 8px; cursor: pointer; }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .top .wrap { padding-top: 8px; padding-bottom: 8px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: 16px; }
  .card .desc { font-size: 13.5px; }
  .age { font-size: 12.5px; white-space: normal; }
  .rows li { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; }
  .rows .age { justify-self: start; }
  .filters .alive { margin-left: 0; }
  .prose { padding: 4px 18px 18px; }
}
