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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   Layout
   =========================== */
.container {
  width: min(680px, 100% - 2rem);
  margin-inline: auto;
  padding-block: 1rem;
}

main {
  flex: 1;
  padding-block: 3rem;
}

/* ===========================
   Header / Hero
   =========================== */
header {
  border-bottom: 1px solid #e5e5e5;
  padding-block: 3rem 2rem;
  text-align: center;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.site-tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #666;
  font-style: italic;
}

/* ===========================
   Section heading
   =========================== */
.section-heading {
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

/* ===========================
   Posts
   =========================== */
#posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post {
  padding-block: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.post:last-child {
  border-bottom: none;
}

.post-date {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.75rem;
}

.read-more {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 1.5px solid #111;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.read-more:hover {
  color: #555;
  border-color: #555;
}

/* ===========================
   Footer
   =========================== */
footer {
  border-top: 1px solid #e5e5e5;
  padding-block: 1.5rem;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: #aaa;
}

/* ===========================
   Post page
   =========================== */
.back-link {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 1.5px solid #111;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.back-link:hover {
  color: #555;
  border-color: #555;
}

.post-body {
  padding-block: 3rem;
}

.post-body .post-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: #333;
}

.post-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-content a {
  color: #111;
  text-underline-offset: 3px;
}

.post-content code {
  font-size: 0.85em;
  background: #f0f0f0;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-content pre {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 480px) {
  .site-title { font-size: 1.8rem; }
}
