/* Custom styles for uzyn.com */

/* Typography - Noto fonts */
html,
body {
  font-family: "Noto Serif", Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sidebar-about h1 {
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Improve readability on larger screens */
@media (min-width: 48em) {
  .content {
    max-width: 44rem;
  }
}

/* Homepage Introduction Enhancements */
.homepage-intro {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.homepage-intro h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #313131;
  font-weight: 700;
}

.homepage-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #515151;
  margin-bottom: 1.2rem;
}

.homepage-intro .highlights {
  margin-top: 2rem;
}

.homepage-intro .highlights h3 {
  color: #313131;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.homepage-intro .highlights ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.homepage-intro .highlights li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.6;
}

.homepage-intro .highlights li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ac4142;
  font-weight: bold;
}

/* Recent Posts Section */
.recent-posts-section {
  margin-top: 2rem;
}

.recent-posts-section h2 {
  color: #313131;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.post-preview {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.post-preview:last-of-type {
  border-bottom: none;
}

.post-preview .post-title {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

.post-preview .post-title a {
  color: #313131;
  text-decoration: none;
}

.post-preview .post-title a:hover {
  color: #ac4142;
  text-decoration: underline;
}

.post-preview .post-date {
  color: #9a9a9a;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.8rem;
  margin-top: 0.2rem;
}

.post-preview .post-excerpt {
  color: #515151;
  line-height: 1.7;
  margin-top: 0.8rem;
}

.post-preview .post-excerpt h2,
.post-preview .post-excerpt h3,
.post-preview .post-excerpt h4,
.post-preview .post-excerpt h5,
.post-preview .post-excerpt h6 {
  display: none;
}

.post-preview .read-more-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #ac4142;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-preview .read-more-link:hover {
  color: #8b3334;
  text-decoration: underline;
}

/* View All Posts Button */
.more-posts {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.more-posts a {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid #ac4142;
  color: #ac4142;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.more-posts a:hover {
  background-color: #ac4142;
  color: white;
}

/* Sidebar Enhancements */
.sidebar-about h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

.sidebar-about .lead {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Pagination Styles */
.pagination {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.pagination a {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border: 1px solid #e5e5e5;
  color: #515151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #ac4142;
  border-color: #ac4142;
  color: white;
}

/* Make code blocks more readable */
pre {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  overflow-x: auto;
}

code {
  padding: 0.2em 0.4em;
  font-size: 85%;
  background-color: #f5f5f5;
  border-radius: 3px;
}

pre code {
  padding: 0;
  background-color: transparent;
}

/* Post tags styling */
.post-tags {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #e0e0e0;
  font-size: 0.75em;
}

.post-tags .tags-label {
  color: #888;
  margin-right: 0.5em;
  font-weight: 300;
}

.post-tags .tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #555;
  padding: 0.25em 0.75em;
  margin: 0.25em 0.25em 0.25em 0;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 300;
  transition: background-color 0.2s ease;
}

.post-tags .tag:hover {
  background-color: #EFA8A7;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 48em) {
  .homepage-intro h2 {
    font-size: 1.3rem;
  }

  .post-preview .post-title {
    font-size: 1.5rem;
  }

  .more-posts a {
    padding: 0.6rem 1.5rem;
  }
}

/* More Stories Section */
.more-stories-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e5e5;
}

.more-stories-section h2 {
  color: #313131;
  margin-bottom: 2rem;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.more-stories-section .post-preview {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.more-stories-section .post-preview .post-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.more-stories-section .post-preview .post-date {
  margin-bottom: 0;
}

/* Post content header styling */
.post h2 {
  margin-top: 2rem;
}

.post h3 {
  margin-top: 2.5rem;
}

.post h4,
.post h5,
.post h6 {
  margin-top: 1.5rem;
}

/* Keep header links black in posts */
.post h1 a,
.post h2 a,
.post h3 a,
.post h4 a,
.post h5 a,
.post h6 a {
  color: #313131;
}

.post h1 a:hover,
.post h2 a:hover,
.post h3 a:hover,
.post h4 a:hover,
.post h5 a:hover,
.post h6 a:hover {
  color: #313131;
  text-decoration: underline;
}
