:root {
  --bg: #f6f3ee;
  --fg: #26231f;
  --muted: #6f6a62;
  --line: #ddd6ca;
  --accent: #a8742c;
  --max: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --fg: #e8e3d9;
    --muted: #9a9387;
    --line: #2d2a23;
    --accent: #d9a65a;
  }
}
* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.7;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; z-index: 10; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: .85rem;
}
.top .brand { color: var(--fg); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--accent); }

main, footer { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.hero { text-align: center; padding: 5rem 0 3.5rem; }
.candle { color: var(--accent); font-size: .8rem; margin: 0 0 1.5rem; filter: drop-shadow(0 0 8px var(--accent)); }
h1 { font-weight: normal; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.2; margin: 0 0 1rem; letter-spacing: .01em; }
.lead { color: var(--muted); font-style: italic; margin: 0; }

section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
h2 { font-weight: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.75rem; }
h3 { font-weight: normal; font-size: 1.45rem; margin: 0; line-height: 1.3; }

.entry { padding: 1.75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.entry:last-child { border-bottom: 0; }
.entry p { margin: .75rem 0 0; }
.entry .meta { color: var(--muted); font-size: .85rem; margin: .15rem 0 0; }
.entry .sources { font-size: .8rem; color: var(--muted); }

.byline { color: var(--muted); font-style: italic; }
.prose h1 { font-size: 2rem; text-align: left; }
.prose h2 { margin-top: 2.25rem; }
.note { background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .6rem .9rem; border-left: 3px solid var(--accent); font-size: .85rem; }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; padding-bottom: 3rem; font-size: .8rem; color: var(--muted); }
footer p { margin: .25rem 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, footer { display: none; } body { background: #fff; color: #000; } }

/* Victim grid: 1 column on mobile, 3 on desktop */
section.wide { max-width: 68rem; margin-left: auto; margin-right: auto; }
main:has(.grid) { max-width: 68rem; }
.count { color: var(--muted); font-size: .85rem; margin-top: 1.25rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 62rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; background: color-mix(in srgb, var(--fg) 3%, transparent); scroll-margin-top: 1rem; }
.card .photo { aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--fg) 6%, transparent); display: grid; place-items: center; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.2); }
.card .nophoto { color: var(--accent); font-size: 1.2rem; filter: drop-shadow(0 0 8px var(--accent)); }
.card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.3rem; }
.card .age { color: var(--muted); }
.card p { margin: .35rem 0 0; font-size: .95rem; }
.card .country { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.card .what { font-size: 1rem; }
.card .perp { color: var(--muted); font-size: .85rem; }
.card .perp span { text-transform: capitalize; }
.card .never { margin-top: auto; padding-top: 1rem; color: var(--accent); font-style: italic; }
.card .src { font-size: .75rem; margin-top: .5rem; }

/* Names wall: tiny, barely legible block of text like a physical memorial */
.wall { border-top: 0; padding: 0 0 2.5rem; }
.wall p { margin: 0; font-size: .5rem; line-height: 1.45; letter-spacing: .02em; color: var(--muted); opacity: .5; text-align: justify; hyphens: auto; overflow-wrap: anywhere; }
.wall a { color: inherit; text-decoration: none; }
.card .photo img { filter: none; }

/* Country filter */
.hero.small { padding: 3rem 0 1.5rem; }
.countries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.countries a, .countries span { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--fg); }
.countries a:hover { border-color: var(--accent); color: var(--accent); }
.countries span[aria-current] { border-color: var(--accent); color: var(--accent); }
.countries small { color: var(--muted); margin-left: .25rem; }
.back { margin: 1.5rem 0 0; font-size: .9rem; }
