/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-size: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #1a1a1a;
  background-color: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
  margin-top: 1.5em;
}

h3 {
  font-size: 1.375rem;
}

p {
  margin-bottom: 1em;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.25em;
}

code {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 0.9em;
  background-color: #f0f0f0;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1em;
}

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

/* Layout */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.site-logo:hover {
  text-decoration: none;
  color: #0066cc;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #555;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #0066cc;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
  width: 100%;
}

.site-footer {
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

/* Hero section */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.intro {
  font-size: 1.25rem;
  color: #555;
}

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

.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

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

.post-list a {
  font-weight: 500;
  font-size: 1.125rem;
}

.post-list time {
  color: #666;
  font-size: 0.875rem;
}

.post-excerpt {
  width: 100%;
  color: #555;
  margin: 0.5rem 0 0;
}

/* Post article */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-header time {
  color: #666;
  font-size: 0.9rem;
}

.post-content {
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .intro {
    font-size: 1.125rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .post-list li {
    flex-direction: column;
    gap: 0.25rem;
  }
}
