:root {
  --paper: #f3efe6;
  --ink: #2b2925;
  --muted: #6f6a60;
  --line: #d9d2c3;
  --accent: #7a4e2d;
  --card: #fbf8f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1b19;
    --ink: #e8e3d8;
    --muted: #a39d90;
    --line: #3a3732;
    --accent: #d39a6a;
    --card: #24221f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  max-width: 1180px; margin: 0 auto; padding: 28px 20px 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink); text-decoration: none; font-size: 26px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.mark {
  width: 22px; height: 14px; border: 2px solid var(--accent); border-bottom: 0;
  border-radius: 12px 12px 0 0; display: inline-block;
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 15px/1.4 system-ui, sans-serif; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a.on { color: var(--ink); text-decoration: underline; }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
.intro { max-width: 680px; margin: 36px 0 28px; }
.intro h1 { font-weight: normal; font-size: 30px; line-height: 1.25; margin: 0 0 10px; }
.intro p { color: var(--muted); margin: 0; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px;
}
.card a { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px 12px; font-size: 15px; line-height: 1.35; }
.card time { color: var(--muted); white-space: nowrap; font: 13px/1.6 system-ui, sans-serif; }
.card a:hover .t { text-decoration: underline; text-underline-offset: 3px; }

.pager { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 0; font: 15px system-ui, sans-serif; color: var(--muted); }

.entry { max-width: 1100px; margin: 32px auto 0; }
.kicker { font: 14px system-ui, sans-serif; color: var(--muted); margin: 0 0 6px; }
.kicker a { color: var(--muted); }
.entry h1 { font-weight: normal; font-size: 34px; line-height: 1.2; margin: 0 0 20px; }
.entry figure { margin: 0; }
.entry figure img { width: 100%; max-height: 82vh; object-fit: contain; background: var(--card); }
.entry figcaption { max-width: 700px; margin: 14px 0 0; }
.credit { max-width: 700px; color: var(--muted); font-size: 14px; font-family: system-ui, sans-serif; }
.near { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.near .r { margin-left: auto; text-align: right; }

.prose { max-width: 680px; margin: 36px 0; }
.prose h1 { font-weight: normal; font-size: 30px; }
.prose h2 { font-weight: normal; font-size: 22px; margin-top: 32px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 22px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font: 13px/1.5 system-ui, sans-serif; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .intro h1, .prose h1 { font-size: 25px; }
  .entry h1 { font-size: 27px; }
  .grid { gap: 16px; }
}
