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

/* Base Styles */
body {
  font-size: 18px;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1d23;
  background: #e6e8ed;
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3 {
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #2c5f8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #1a3d5c;
}

/* Navigation */
nav {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d4d5da;
}

nav a {
  text-decoration: none;
  color: #1a1d23;
  margin-right: 1.5rem;
}

nav a:hover {
  text-decoration: underline;
}

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

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

.post-list a {
  color: #1a1d23;
  text-decoration: none;
  display: block;
  position: relative;
  padding-left: 1.1rem;
}

.post-list a::before {
  content: "|";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.post-list a:hover::before {
  opacity: 1;
}

.post-title {
  font-weight: 500;
}

.post-sep {
  color: #6b7080;
  margin: 0 0.4rem;
}

.post-subtitle {
  color: #6b7080;
}

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


.versions {
  display: block;
  font-size: 0.8rem;
  color: #6b7080;
  margin-top: 0.2rem;
}

.version {
  cursor: pointer;
}

.version.active {
  color: #1a1d23;
}

.version:not(.active):hover {
  text-decoration: underline;
}

blockquote {
  border-left: 3px solid #d4d5da;
  padding-left: 1rem;
  margin-left: 0;
  color: #4a4e5a;
}

pre {
  background: #e0e1e5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  background: #e0e1e5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* Images */
article img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #d4d5da;
  color: #999;
  font-size: 0.8rem;
}
