/* end custom stuff */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 1.25rem;
  font-size: 16px;
}

/* Container */
.container {
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* Main heading */
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.about-section {
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.about-toggle {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.2s ease;
}

.about-toggle:hover {
  background-color: #e9ecef;
}

.about-toggle::-webkit-details-marker {
  display: none;
}

.about-toggle::before {
  content: "▸";
  font-size: 1.25rem;
  display: inline-block;
  margin: 0 0.5rem;
  transition: transform 0.2s ease;
}

details[open] .about-toggle::before {
  transform: rotate(90deg);
}

.about-content {
  padding: 1.25rem;
  background-color: #fff;
  border-left: 1px solid #e0e0e0;
  color: #555;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-photo {
  width: auto;
  height: 14.5rem;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0.25rem;
}
.about-text {
  flex: 1;
  text-align: justify;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Year sections */
.year-section {
  margin-bottom: 2.5rem;
}

.year {
  font-size: 1.5rem;
  font-weight: 400;
  color: #95a5a6;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Blog post items */
.blog-post {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.post-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #2c3e50;
  flex: 1;
  transition: color 0.2s ease;
}

.post-date {
  font-size: 1rem;
  color: #95a5a6;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hover effect */
.post-link:hover .post-title {
  color: #acc185;
}

/* Responsive design */
@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    padding-right: 0;
  }

  .about-text {
    text-align: left;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
  }

  .post-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3125rem;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-date {
    font-size: 0.9rem;
  }
}
