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

body {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid #e8e8e4;
}

.logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: #666;
}

.nav-links a:hover {
  color: #111;
}

/* Hero */
.hero {
  max-width: 900px;
  padding: 80px 48px 64px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero p {
  color: #555;
  font-size: 14px;
  max-width: 480px;
}

/* Posts list */
.posts {
  padding: 0 48px 96px;
  max-width: 900px;
}

.posts-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e4;
}

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid #e0e0dc;
}

.post {
  position: relative;
  display: block;
  padding: 16px 20px;
  margin-bottom: 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.post:hover {
  background: #fafaf8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.post::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4d3cb;
  border: 2px solid #fff;
}

.post:hover::before {
  background: #111;
}

.post-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}

.post-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.post-excerpt {
  color: #777;
  font-size: 13px;
}

.tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #998b1f;
  background: #fdf6d8;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Article page */
article {
  max-width: 900px;
  padding: 48px 48px 96px;
}

article h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  line-height: 1.3;
}

article p {
  margin-bottom: 20px;
  color: #333;
}

article a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  color: #555;
}

article h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
}

article h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 12px;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
  border: 1px solid #e8e8e4;
}

article figure {
  margin: 24px 0;
}

article figure img {
  margin: 0 0 8px;
}

article figcaption {
  font-size: 12px;
  color: #999;
  text-align: center;
}

article blockquote {
  border-left: 2px solid #d4d3cb;
  padding-left: 20px;
  margin: 24px 0;
  color: #666;
  font-style: italic;
}

article ul, article ol {
  margin: 16px 0;
  padding-left: 24px;
  color: #333;
}

article li {
  margin-bottom: 8px;
}

article code {
  background: #f5f5f2;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

article pre {
  background: #f5f5f2;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #e8e8e4;
}

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

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
}

article th, article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e8e8e4;
}

article th {
  font-weight: 600;
  color: #555;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

article hr {
  border: none;
  border-top: 1px solid #e8e8e4;
  margin: 40px 0;
}

article .embed {
  position: relative;
  padding-bottom: 56.25%;
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
}

article .embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 32px;
}

.post-meta a {
  color: #666;
  transition: color 0.15s;
}

.post-meta a:hover {
  color: #111;
}

/* Footer */
footer {
  padding: 32px 48px;
  border-top: 1px solid #e8e8e4;
  font-size: 12px;
  color: #bbb;
}

/* Responsive */
@media (max-width: 600px) {
  nav { padding: 20px 24px; }
  .hero { padding: 48px 24px 40px; }
  .hero h1 { font-size: 24px; }
  .posts { padding: 0 24px 64px; }
  article { padding: 32px 24px 64px; }
  article h1 { font-size: 22px; }
  footer { padding: 24px; }
  .nav-links { gap: 20px; }
}
