:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #1c1a17;
  --muted: #6b645a;
  --line: #e2d9c8;
  --accent: #b2441c;
  --todo: #fff1a8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1e1b16;
    --ink: #efe8db;
    --muted: #a69d8e;
    --line: #34302a;
    --accent: #e8875f;
    --todo: #5a4b00;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.65 Charter, "Iowan Old Style", Georgia, serif; }
a { color: var(--accent); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 18px; }
.brand { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 20px; font: 600 15px/1 system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }

main { padding: 52px 0 72px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 26px; margin: 44px 0 10px; }
.lede { font-size: 21px; color: var(--muted); margin: 0 0 40px; max-width: 34em; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--accent); }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tile .blank { aspect-ratio: 16 / 9; background: var(--line); }
.tile .body { padding: 16px 20px 20px; }
.tile h2 { font-size: 22px; margin: 0 0 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.out { font: 600 12px/1 system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; display: inline-block; }

.todo { background: var(--todo); border-radius: 4px; padding: 0 4px; }
.todo::before { content: "TODO "; font: 700 11px/1 system-ui, sans-serif; letter-spacing: 0.08em; vertical-align: 2px; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer.site .wrap { padding-top: 22px; padding-bottom: 34px; }
footer.site p { margin: 4px 0; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  nav.site a { margin: 0 16px 0 0; }
}
