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

/* Base */
html {
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #000;
  background-color: #fff;
}

/* Layout */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

/* Header */
.header {
  padding: 1.25rem 1rem 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-size: 16px;
}

.nav-link:hover {
  color: #0066cc;
}

.header-social {
  display: flex;
  gap: 0.75rem;
}

.header-social .social-icon {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  padding: 2rem 1rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  color: #555;
  font-size: 0.85rem;
}

/* Home Page */
.home {
  padding-top: 0;
}

.home-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-item {
  display: flex;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
}

.social-link:hover {
  color: #0066cc;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.8;
}

/* Recent Posts on Home */
.recent-posts {
  margin-top: 0;
}

.recent-posts h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Posts List */
.posts-list h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.post-card {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #eee;
}

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

.post-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-card h3 a:hover {
  color: #0066cc;
}

.post-excerpt {
  color: #000;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.post-date {
  color: #555;
  font-size: 0.85rem;
}

/* Single Post */
.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-header .post-date {
  color: #555;
  font-size: 0.875rem;
}

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

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.25rem 0 0.5rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content a {
  color: #0066cc;
  text-decoration: underline;
}

.post-content a:hover {
  color: #0052a3;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.75;
}

.post-content li {
  margin-bottom: 0.25rem;
}

.post-content blockquote {
  border-left: 3px solid #ccc;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #333;
  font-style: italic;
}

/* Code */
.post-content code {
  font-family: 'SF Mono', 'Fira Code', 'Monaco', monospace;
  font-size: 0.85em;
  background-color: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-content pre {
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Post Footer */
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Profile Photo */
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 15px;
}

/* Resume */
.resume h2 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.resume .job {
  margin-bottom: 2rem;
}

.resume .job-header {
  margin-bottom: 0.75rem;
}

.resume .job-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.resume .job-company {
  font-weight: 500;
}

.resume .job-role {
  color: #555;
}

.resume .job-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.resume ul {
  margin: 0;
  padding-left: 1.25rem;
}

.resume li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .home-title {
    font-size: 2rem;
  }

  .post-title,
  .posts-list h1 {
    font-size: 1.75rem;
  }
}
