:root {
  color-scheme: light dark;
  --background: #fff;
  --foreground: #1f2933;
  --muted: #66717d;
  --accent: #0b5c8e;
  --border: #d8dee4;
  --surface: #f6f8fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #15191d;
    --foreground: #e6edf3;
    --muted: #9da7b1;
    --accent: #79c0ff;
    --border: #30363d;
    --surface: #20262c;
  }
}

* {
  box-sizing: border-box;
}

body {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--foreground);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  color: var(--foreground);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foreground);
  text-decoration: underline;
}

main {
  padding-top: 1.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.home h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.home-images {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0;
}

.home-images img {
  width: 125px;
  height: 125px;
  object-fit: cover;
}

.prose li + li {
  margin-top: .4rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin: 2rem 0 .5rem;
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filters span,
.meta,
.pagination span,
.category-list span {
  color: var(--muted);
}

.filters a[aria-current="page"] {
  color: var(--foreground);
  font-weight: 700;
}

.timeline-post {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-post h2 {
  margin: 0;
}

.timeline-post h2 a {
  color: var(--foreground);
  text-decoration: none;
}

.timeline-post h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.timeline-post > :last-child {
  margin-bottom: 0;
}

.meta {
  margin: .4rem 0;
  font-size: .9rem;
}

.category {
  display: inline-block;
  margin-left: .5rem;
  padding: .05rem .45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .8rem;
  text-decoration: none;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 32rem) {
  body {
    padding-top: 1.25rem;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
