:root {
  --bg: #fbfaf7;
  --fg: #23211d;
  --muted: #6f6a61;
  --line: #e7e3da;
  --accent: #b5532f;
  --card: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #ece8e1;
    --muted: #a29c91;
    --line: #2d2b27;
    --accent: #e08a62;
    --card: #1f1d1a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.65 var(--serif);
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 22px;
}
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 600; color: var(--fg); text-decoration: none; letter-spacing: .2px; }
.brand span { color: var(--accent); }
nav a { font: 15px var(--sans); color: var(--muted); text-decoration: none; margin-left: 18px; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current] { color: var(--fg); }

.hero { padding: 56px 0 28px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; font-weight: 600; }
.hero p { color: var(--muted); margin: 0; font-size: 19px; max-width: 34em; }

.posts { list-style: none; margin: 18px 0 40px; padding: 0; }
.posts li { padding: 22px 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.meta { font: 13px/1.4 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.posts h2 { font-size: 24px; margin: 6px 0 6px; font-weight: 600; line-height: 1.3; }
.posts h2 a { color: var(--fg); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { margin: 0; color: var(--muted); }

article { padding: 48px 0 24px; }
article h1 { font-size: 36px; line-height: 1.2; margin: 8px 0 26px; font-weight: 600; }
article h2 { font-size: 24px; margin: 36px 0 10px; }
article p, article li { hyphens: auto; }
article blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}
figure { margin: 30px 0; }
figure svg { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption { font: 14px var(--sans); color: var(--muted); margin-top: 8px; text-align: center; }
.back { display: inline-block; margin-top: 30px; font: 15px var(--sans); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 26px 0; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; font: 14px var(--sans); color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 31px; }
  article h1 { font-size: 29px; }
  nav a { margin-left: 12px; }
}
