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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafafa;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header nav {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

header nav a {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
  text-decoration: none;
}

.byline {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.back-link {
  margin-left: auto;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: #666 !important;
}

.back-link:hover {
  color: #0055cc !important;
}

main {
  margin-top: 2rem;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

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

p {
  margin-bottom: 1rem;
}

a {
  color: #0055cc;
}

a:hover {
  color: #003d99;
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 1.5rem;
}

.post-list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list time {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.post-list p {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #888;
}

footer nav {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

footer nav a {
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1rem;
}

footer nav .back-link {
  margin-left: auto;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: #666 !important;
}

footer nav .back-link:hover {
  color: #0055cc !important;
}

article img {
  max-width: 100%;
  height: auto;
}

code {
  background: #f0f0f0;
  padding: 0.15em 0.3em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}
