:root {
  --bg: #FAFAFA;
  --text: #1a1a1a;
  --text-muted: #878787;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 540px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Navigation */
nav {
  margin-bottom: 5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* Typography */
h1 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

p {
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text-muted);
}

/* Blog list */
.posts {
  list-style: none;
}

.posts li {
  margin-bottom: 1.5rem;
}

.posts a {
  text-decoration: none;
  display: block;
}

.posts a:hover .post-title {
  color: var(--text-muted);
}

.post-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.post-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Article */
article header {
  margin-bottom: 3rem;
}

article .date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

blockquote {
  border-left: 1px solid var(--text-muted);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--text-muted);
}

/* About */
.about-content p {
  color: var(--text);
}

/* Back link */
.back {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4rem;
}

.back a {
  color: var(--text-muted);
}

.back a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 3rem 1.5rem;
  }
}
