/* Fluid typography values */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1rem);
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

.nav {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.nav .nav-brand a {
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.2rem);
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 150px);
}
.nav .nav-links {
  display: flex;
  gap: 1rem;
}
.nav .nav-links a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1rem);
  transition: color 0.3s ease;
}
.nav .nav-links a:hover, .nav .nav-links a.active {
  color: #0056b3;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 80px - 100px);
}

.hero {
  text-align: left;
  padding: 2rem 0;
  max-width: 700px;
}
.hero .hero-content-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-direction: column;
  text-align: center;
}
.hero .hero-content-wrapper .hero-text {
  flex: 1;
  max-width: 600px;
  line-height: 1;
}
.hero .hero-content-wrapper .hero-image {
  flex-shrink: 0;
  text-align: center;
  max-width: 350px;
  width: 100%;
}
.hero .hero-content-wrapper .hero-image .profile-picture {
  max-width: 350px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}
.hero .hero-content-wrapper .hero-image .profile-picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hero .hero-name {
  font-size: clamp(4rem, 2rem + 10vw, 8rem);
  font-weight: 700;
  margin: 0;
  color: #333333;
  line-height: 1.1;
}
.hero p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1rem);
  color: #555555;
  max-width: 100%;
  margin: 0;
  margin-bottom: 2rem;
}
.hero .hero-links a,
.hero .action-link {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 1rem;
  color: #0056b3;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
}
.hero .hero-links a:hover,
.hero .action-link:hover {
  border-bottom: 2px solid #0056b3;
}

.about-preview,
.latest-posts {
  display: none;
}

.site-footer {
  background-color: #f8f9fa;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
  height: 100px;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
  }
  .nav-brand a {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 150px);
    white-space: nowrap;
  }
  .nav-links {
    gap: 1rem;
  }
  .hero-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-content-wrapper .hero-text {
    max-width: 100%;
    order: 2;
    display: flex;
    justify-content: center;
  }
  .hero-content-wrapper .hero-image {
    order: 1;
    margin-bottom: 1rem;
    max-width: 280px;
  }
  .hero-content-wrapper .hero-image .profile-picture {
    max-width: 280px;
    border-radius: 15px;
    border: none;
  }
  .hero {
    text-align: center;
    padding: 2rem 0;
  }
  .hero-name {
    /* Could adjust clamp or set a different size here if needed */
    /* Example: font-size: clamp(3rem, 1.5rem + 10vw, 5rem); */
  }
  p {
    /* font-size: 1rem; */ /* Removed */
  }
}
@media (min-width: 1024px) {
  .hero-content-wrapper {
    flex-direction: row;
    text-align: left;
  }
  .hero-text {
    order: 2;
  }
  .hero-image {
    order: 1;
  }
  .nav {
    justify-content: space-between;
  }
}
/* === Blog Post Styles === */
.post {
  max-width: 800px;
  margin: 2rem auto;
}

.post-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}
.post-header h1 {
  font-size: clamp(1.8rem, 1.5rem + 2vw, 2.8rem);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-meta {
  font-size: 0.9rem;
  color: #6c757d;
}

.post-content {
  line-height: 1.7;
}
.post-content h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content img,
.post-content picture {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* === Blog List Styles === */
.post-list-container {
  max-width: 900px;
  margin: 2rem auto;
}
.post-list-container h1 {
  font-size: clamp(1.8rem, 1.5rem + 2vw, 2.8rem);
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list .post-list-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dashed #eee;
}
.post-list .post-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.post-list .post-list-item h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 0.5rem;
}
.post-list .post-list-item h2 a {
  text-decoration: none;
  color: #333333;
  transition: color 0.3s ease;
}
.post-list .post-list-item h2 a:hover {
  color: #0056b3;
}

/* Re-use post-meta style from single post */
/* .post-meta { ... } */
/* === About Page Styles === */
.about {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.about .about-content h1 {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
  text-align: center;
}
.about .about-content p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  line-height: 1.8;
  color: #333333;
  margin-bottom: 1.5rem;
  font-weight: normal;
  font-style: normal;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.profile-picture.spin {
  animation: spin 1s ease-in-out;
}

.profile-picture {
  cursor: pointer; /* Indicate interactivity */
}
