/* --------------------------------------------------
   Base Typography & Layout
-------------------------------------------------- */

html {
  font-size: 18px;
  line-height: 1.6;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #fafafa;
}

a, a:visited, a:active {
  text-decoration: none !important;
}


.wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.2rem;
}

a {
  text-decoration: none;
  color: #005bbb;
}

a:hover {
  text-decoration: none;
  color: #003f88;
}



/* --------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
}

/* Horizontal navigation */
.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  color: #555;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #000;
}

.home-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  display: block;
}


/* --------------------------------------------------
   Homepage
-------------------------------------------------- */

.home-tagline {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Featured posts layout */
.featured-posts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.featured-card {
  flex: 1 1 calc(33.333% - 2rem);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.featured-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.featured-content {
  padding: 1.4rem 1.6rem;
}

.featured-meta {
  font-size: 0.85rem;
  color: #777;
}

.featured-excerpt {
  margin: 1rem 0 1.4rem;
  color: #444;
}

.read-more {
  font-weight: 600;
  color: #005bbb;
}


/* --------------------------------------------------
   Post Pages
-------------------------------------------------- */

.post-title {
  font-size: 2.2rem;
  margin-top: 1rem;
}

.post-meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-featured-image {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content a {
  text-decoration: underline !important;
}

.post-content a:hover {
  text-decoration: underline !important;
  color: #003f88;
}

.posts-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.posts-list-item {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.posts-list-item a {
  font-weight: 600;
  color: #111;
}

.posts-list-date {
  display: block;
  font-size: 0.85rem;
  color: #777;
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 3rem 0;
  color: #777;
  font-size: 0.9rem;
}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 800px) {
  .featured-card {
    flex: 1 1 100%;
  }

  .featured-image {
    height: 200px;
  }

  .site-nav {
    gap: 0.8rem;
  }
}
