/* Solo Theme - Inspired by Ghost's Solo Theme */
:root {
  --font-serif: "Merriweather", Georgia, serif;
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --text-color: #333;
  --light-text-color: #757575;
  --lightest-text-color: #ababab;
  --accent-color: #000;
  --background-color: #fff;
  --light-background: #f9f9f9;
  --border-color: #eaeaea;
}

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

html {
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 2rem 0;
  color: #000;
}

h1 {
  font-size: 4.8rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 3.6rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.4rem;
}

h5 {
  font-size: 2rem;
}

h6 {
  font-size: 1.8rem;
}

p, ul, ol {
  margin-bottom: 3rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.2s ease;
}

a:hover {
  border-color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 2rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 3rem;
  font-style: italic;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.6rem;
  background: var(--light-background);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

pre {
  background: var(--light-background);
  padding: 2rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  border-radius: 5px;
}

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

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 5rem 0;
}

/* Layout */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 5rem 0;
  text-align: center;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-title a {
  color: #000;
  border-bottom: none;
}

nav {
  margin-top: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--light-text-color);
  border-bottom: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-color);
}

/* Main content */
main {
  padding-bottom: 5rem;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: 8rem;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero p {
  font-size: 2.2rem;
  color: var(--light-text-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Profile section on homepage */
.profile-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 3rem;
  text-align: left;
}

.profile-image {
  flex: 0 0 35%;
}

.profile-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-content {
  flex: 1;
}

.profile-content h1 {
  text-align: left;
  margin-bottom: 1rem;
}

.profile-content > p {
  text-align: left;
  font-size: 2.2rem;
  color: var(--light-text-color);
  margin-bottom: 2rem;
}

.profile-bio p {
  margin-bottom: 1.5rem;
}

/* Blog post list */
.recent-posts h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.post-list {
  list-style: none;
}

.post-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 8rem;
  align-items: flex-start;
}

.post-content-wrapper {
  flex: 1;
}

.post-image {
  flex: 0 0 30%;
}

.post-image img {
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.post-image img:hover {
  transform: scale(1.03);
}

.post-title {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.post-title a {
  border-bottom: none;
}

.post-meta {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--light-text-color);
  margin-bottom: 1.5rem;
}

.post-excerpt {
  margin-bottom: 2rem;
}

.read-more {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: none;
}

/* Single post */
.post {
  margin-bottom: 8rem;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.featured-image {
  margin-bottom: 4rem;
}

.featured-image img {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.post-content {
  margin-bottom: 5rem;
}

.post-content h2, 
.post-content h3 {
  margin-top: 4rem;
}

.post-content img {
  margin: 3rem auto;
}

.post-content ul, 
.post-content ol {
  padding-left: 2rem;
}

.post-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  font-family: var(--font-sans);
  font-size: 1.6rem;
}

/* Footer */
footer {
  padding: 5rem 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--light-text-color);
  border-top: 1px solid var(--border-color);
}

/* RSS Link */
.rss-link {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
  border-bottom: none;
  color: var(--light-text-color);
  transition: color 0.2s ease;
}

.rss-link:hover {
  color: #f26522; /* RSS orange color */
}

.rss-icon {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
}

.rss-text {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Media queries */
@media (max-width: 768px) {
  html {
    font-size: 56.25%; /* 9px = 1rem */
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .hero {
    margin-bottom: 5rem;
  }
  
  .profile-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .profile-image {
    flex: 0 0 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .profile-content h1,
  .profile-content > p {
    text-align: center;
  }
  
  .post-item {
    flex-direction: column;
    margin-bottom: 5rem;
  }
  
  .post-image {
    flex: 0 0 100%;
    margin-top: 2rem;
    order: 2;
  }
  
  .post-content-wrapper {
    order: 1;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }
  
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .post-header {
    margin-bottom: 3rem;
  }
}
