:root {
  --color-text: #1a1a1a;
  --color-bg: #fafafa;
  --color-link: #1a56db;
  --color-muted: #6b7280;
  --font-body: Georgia, "Times New Roman", serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 640px;
  --space: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: var(--space);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  max-width: var(--max-width);
  margin: 4rem auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: var(--space);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Nav */
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) 0;
}

nav .site-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space);
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: var(--space);
}

.post-list a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.post-list time {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Post */
.post-header {
  margin-bottom: 2rem;
}

.post-header time {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 4rem auto 2rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}
