/* Custom styles for uzyn.com */

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

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

.sidebar-about .site-title {
  display: block;
  font-family: "Michroma", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #fff;
}

.content {
  line-height: 1.6;
}

.content p {
  margin-bottom: 2rem;
}

/* 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 h1,
.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 .site-title {
  margin-top: 0;
  font-size: 2.5rem;
  line-height: 1.1;
}

.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: #2b303b;
  border: 1px solid #3d4452;
  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;
  color: #c0c5ce;
  background-color: transparent;
}

/* Syntax highlighting - base16 ocean dark */
.highlight pre { background-color: #2b303b; color: #c0c5ce; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #65737e; } /* Comments */
.highlight .k, .highlight .kc, .highlight .kd, .highlight .kn,
.highlight .kp, .highlight .kr, .highlight .kt { color: #b48ead; } /* Keywords */
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb,
.highlight .sc, .highlight .sd, .highlight .se, .highlight .sh,
.highlight .si, .highlight .sx, .highlight .sr { color: #a3be8c; } /* Strings */
.highlight .n, .highlight .na, .highlight .nb, .highlight .nc,
.highlight .nd, .highlight .ni, .highlight .ne, .highlight .nf,
.highlight .nl, .highlight .nn, .highlight .no, .highlight .nt,
.highlight .nv, .highlight .nx { color: #c0c5ce; } /* Names */
.highlight .nf, .highlight .nx { color: #8fa1b3; } /* Function names */
.highlight .nc, .highlight .no { color: #ebcb8b; } /* Class names, constants */
.highlight .nt { color: #8fa1b3; } /* Tags */
.highlight .na { color: #8fa1b3; } /* Attributes */
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi,
.highlight .mo, .highlight .il { color: #d08770; } /* Numbers */
.highlight .o, .highlight .ow, .highlight .p { color: #c0c5ce; } /* Operators, punctuation */
.highlight .gd { color: #bf616a; } /* Deleted */
.highlight .gi { color: #a3be8c; } /* Inserted */
.highlight .gh, .highlight .gu { color: #8fa1b3; } /* Headings */
.highlight .ge { font-style: italic; } /* Emphasis */
.highlight .gs { font-weight: bold; } /* Strong */

/* 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: 1em;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  transition: background-color 0.2s ease;
}

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

/* Homepage post preview tags */
.post-preview-tags {
  margin-top: 0.5em;
  font-size: 0.75em;
}

.post-preview-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: 1em;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  transition: background-color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 48em) {
  .homepage-intro h1,
  .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: 2.5rem;
  margin-bottom: 1rem;
}

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

.post h4,
.post h5,
.post h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.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;
}


/* Author Section */
.author-section {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-left: 4px solid #ac4142;
  border-radius: 4px;
}

.author-section .author-text {
  flex: 1;
}

.author-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #313131;
}

.author-section p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.author-section p:last-child {
  margin-bottom: 0;
}

.author-section a {
  color: #ac4142;
  text-decoration: none;
}

.author-section a:hover {
  text-decoration: underline;
}

/* Author Avatar */
.author-avatar {
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.author-avatar--post {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.author-avatar--about {
  width: 180px;
  height: 180px;
  float: right;
  margin: 0 0 1rem 1.5rem;
}

@media (max-width: 600px) {
  .author-section {
    flex-direction: column;
  }
  .author-avatar--about {
    float: none;
    margin: 0 0 1rem 0;
    width: 140px;
    height: 140px;
  }
}

/* Newsletter Section */
.newsletter-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f3f6f9;
  border-left: 4px solid #6a9fb5;
  border-radius: 4px;
}

.newsletter-section h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #313131;
}

.newsletter-section p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form input[type="submit"] {
  padding: 0.5rem 1rem;
  background-color: #6a9fb5;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.newsletter-form input[type="submit"]:hover {
  background-color: #588299;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Sidebar: Currently Working On — Card */
.sidebar-current {
  display: block;
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem 1rem 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 183, 67, 0.10), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #33B743, transparent);
  opacity: 0.85;
}

.sidebar-current:hover {
  border-color: rgba(51, 183, 67, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(51, 183, 67, 0.35);
  text-decoration: none;
}

.sidebar-current-eyebrow {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.sidebar-current-wordmark {
  display: block;
  margin-top: 0.45rem;
  font-family: 'Michroma', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(51, 183, 67, 0.25);
}

.sidebar-current-mascot {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0.85rem auto 0.55rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.sidebar-current-tagline {
  display: block;
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.85rem;
}

.sidebar-current-url {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sidebar-current-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.sidebar-current:hover .sidebar-current-url {
  background: rgba(51, 183, 67, 0.16);
  border-color: rgba(51, 183, 67, 0.4);
  color: #fff;
}

.sidebar-current:hover .sidebar-current-arrow {
  transform: translateX(2px);
}

/* Sidebar social links */
.sidebar .social-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar .social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
}

.sidebar .social-link:hover {
  color: #fff;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* About-page social links */
.content .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.content .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.content .social-link:hover {
  color: #ac4142;
}

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

/* Mobile sidebar compaction (Hyde breakpoint is 48em) */
@media (max-width: 47.99em) {
  .sidebar {
    padding: 1.5rem 1.25rem;
  }

  .sidebar-about .site-title {
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .sidebar-about .lead {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .sidebar-nav {
    margin-bottom: 0.5rem;
  }

  .sidebar-current {
    max-width: 320px;
    margin: 1.25rem auto 0.5rem;
    padding: 1rem 0.9rem 0.85rem;
  }

  .sidebar-current-mascot {
    width: 84px;
    height: 84px;
    margin: 0.65rem auto 0.5rem;
  }

  .sidebar-current-tagline {
    font-size: 0.8rem;
  }

  .sidebar .social-links {
    max-width: 320px;
    margin: 1rem auto 0;
    align-items: flex-start;
  }
}
