:root {
  --bg: #f4f3f0;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --line: #e3e1dc;
  --accent: #d6402b;
  --nav: #1c1c1e;
  --nav-text: #f4f3f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141415;
    --card: #1e1e20;
    --text: #ececee;
    --muted: #9a9aa0;
    --line: #2e2e31;
    --accent: #ff6a52;
    --nav: #0b0b0c;
    --nav-text: #ececee;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 18px; padding-bottom: 12px; }
.logo { font: 800 34px/1 Georgia, "Times New Roman", serif; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.tagline { color: var(--muted); font-style: italic; }
.date { margin-left: auto; color: var(--muted); font-size: 14px; }
nav.wrap { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
nav.wrap::-webkit-scrollbar { display: none; }
nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 15px; color: var(--muted); }
nav a:hover { color: var(--text); background: var(--bg); }
nav a.on { background: var(--nav); color: var(--nav-text); }

main { padding-top: 20px; }
h1.section { font: 700 28px/1.2 Georgia, serif; margin: 8px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hero { margin-bottom: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .pic { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card .meta a { color: var(--accent); font-weight: 600; }
.card h2 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.card .src { margin-top: auto; font-size: 14px; color: var(--accent); }

.card.lead { display: grid; grid-template-columns: 1.4fr 1fr; }
.card.lead .pic { aspect-ratio: auto; min-height: 300px; }
.card.lead h2 { font: 700 28px/1.2 Georgia, serif; }
.card.lead p { font-size: 16px; }
@media (max-width: 760px) {
  .card.lead { display: flex; }
  .card.lead .pic { aspect-ratio: 16 / 9; min-height: 0; }
  .card.lead h2 { font-size: 22px; }
  .date { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: 1fr; }
}

.text { max-width: 720px; }
.text h2 { font-size: 20px; margin-top: 28px; }
.text a { color: var(--accent); }

footer { margin-top: 40px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--accent); }
