/* Minimal, readable dark theme */

:root {
  --background: #111111;
  --surface: #191919;
  --text: #eeeeee;
  --muted: #aaaaaa;
  --link: #9ecbff;
  --border: #333333;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.site {
  width: min(90%, 760px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.35rem;
}

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

a:hover,
a:focus {
  text-decoration: none;
}

.site-header {
  margin-bottom: 3rem;
}

.intro {
  margin-top: 0.6rem;
  color: var(--muted);
}

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

.post-header h1 {
  margin-bottom: 0.4rem;
}

time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.post-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: 0;
}

.post-list time {
  flex: 0 0 auto;
}

.post-nav {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site {
    width: min(92%, 760px);
    padding-top: 32px;
  }

  .post-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}
