:root {
  --bg: #faf8f4;
  --fg: #25231f;
  --muted: #76716a;
  --line: #e7e1d6;
  --accent: #b23a26;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181b;
    --fg: #e8e4dc;
    --muted: #9c978e;
    --line: #2c2d31;
    --accent: #e2765f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.15rem; }
a { color: var(--accent); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.post p a { overflow-wrap: anywhere; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .4rem 1rem; padding-top: 1rem; padding-bottom: .9rem;
}
.logo {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; letter-spacing: .01em;
  color: var(--fg); text-decoration: none;
}
.logo::before {
  content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%;
  background: var(--accent); margin-right: .45em; vertical-align: .06em;
}
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: .95rem; }
.site-header nav a:first-child { margin-left: 0; }
.site-header nav a:hover { color: var(--fg); }

main.wrap { padding-top: 1.75rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.25; }
h1 { font-size: 1.85rem; margin: .2rem 0 .4rem; }
.post h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; }
.post p { margin: 0 0 1em; }
figure { margin: 1.5rem 0; }
figure a { display: block; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--line); }
figcaption { color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: .45rem; text-align: center; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; background: #000; border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .95rem; line-height: 1.4;
}
.post-nav a { color: var(--fg); text-decoration: none; }
.post-nav a:hover { color: var(--accent); }
.post-nav span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .2rem; }
.post-nav .next { text-align: right; }

.intro { color: var(--muted); margin: 0 0 1rem; }
.year { font-size: 1.15rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .35rem; margin: 2rem 0 1.1rem; }
.cards { list-style: none; margin: 0; padding: 0; }
.card { margin: 0 0 1.5rem; }
.card a {
  display: grid; grid-template-columns: 7rem 1fr; gap: .2rem .9rem; align-items: start;
  color: inherit; text-decoration: none;
}
.card img {
  grid-row: span 3; width: 7rem; height: 5.2rem; object-fit: cover; border-radius: 5px; background: var(--line);
}
.card .t { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.3; }
.card a:hover .t { color: var(--accent); }
.card time { color: var(--muted); font-size: .82rem; }
.card .x {
  color: var(--muted); font-size: .92rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card.noimg a { grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .card a { grid-template-columns: 11rem 1fr; }
  .card img { width: 11rem; height: 7.4rem; }
}

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer .wrap { padding-top: 1.2rem; padding-bottom: 2rem; }
