/* Landing Page Styles - Lost Garden Inspired */

/* Container */
.landing-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Site Header */
.site-header {
  padding: 50px 0 0 0;
}

.site-header h1 {
  font-size: 42px;
  font-weight: 600;
  color: #df3636;
  margin: 0 0 0 0;
  text-align: left;
  font-family: Futura;
}

.site-header .tagline {
  font-size: 14px;
  color: #555;
  margin: 0;
  max-width: 500px;
  line-height: 1.5;
}

.site-header .site-intro {
  font-size: 16px;
  color: #666;
  margin: 40px 0 0 0;
  max-width: 600px;
  line-height: 1.6;
}

.site-header .site-intro a {
  color: #5badf0;
  text-decoration: none;
}

.site-header .site-intro a:hover {
  text-decoration: underline;
}

/* Section Headers */
.section-header {
  margin: 50px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: left;
}

.section-header a {
  font-size: 14px;
  color: #5badf0;
  text-decoration: none;
}

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

/* Recent Posts - Asymmetric Layout */
.recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.recent-featured {
  grid-row: span 2;
}

.recent-featured img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.recent-featured .date {
  font-size: 13px;
  color: #999;
  margin: 12px 0 6px;
}

.recent-featured h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px 0;
  line-height: 1.3;
  text-align: left;
}

.recent-featured h3 a {
  color: #364e4a;
  text-decoration: none;
}

.recent-featured h3 a:hover {
  color: #5badf0;
}

.recent-featured .summary {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

.recent-small {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.recent-small img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.recent-small .info {
  flex: 1;
}

.recent-small .date {
  font-size: 12px;
  color: #999;
  margin: 0 0 4px;
}

.recent-small h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: left;
}

.recent-small h3 a {
  color: #364e4a;
  text-decoration: none;
}

.recent-small h3 a:hover {
  color: #5badf0;
}

.recent-small .summary {
  font-size: 13px;
  color: #757575;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured Articles */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-article .info {
  flex: 1;
}

.featured-article .date {
  font-size: 12px;
  color: #999;
  margin: 0 0 4px;
}

.featured-article h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-align: left;
}

.featured-article h3 a {
  color: #c45a00;
  text-decoration: none;
}

.featured-article h3 a:hover {
  text-decoration: underline;
}

.featured-article .summary {
  font-size: 15px;
  color: #757575;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* All Posts - Text only grid */
.all-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 40px;
}

.all-post-item .date {
  font-size: 12px;
  color: #999;
  margin: 0 0 4px;
}

.all-post-item h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-align: left;
}

.all-post-item h3 a {
  color: #c45a00;
  text-decoration: none;
}

.all-post-item h3 a:hover {
  text-decoration: underline;
}

.all-post-item .summary {
  font-size: 13px;
  color: #757575;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sketches Preview */
.sketches-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.sketch-thumb {
  flex-shrink: 0;
}

.sketch-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.sketch-thumb .caption {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.landing-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.landing-pagination a,
.landing-pagination span {
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.landing-pagination a:hover {
  background: #f5f5f5;
}

.landing-pagination .current {
  background: #364e4a;
  color: #fff;
  border-color: #364e4a;
}

/* Responsive */
@media (max-width: 768px) {
  /* Make recent posts scroll horizontally like sketchbook */
  .recent-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .recent-featured {
    flex-shrink: 0;
    width: 70vw;
    max-width: 350px;
    scroll-snap-align: start;
  }
  
  .recent-featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  
  .recent-small {
    flex-shrink: 0;
    width: 70vw;
    max-width: 350px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .recent-small img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  
  /* Fix text sizing for recent-small on mobile */
  .recent-small .info {
    padding: 12px;
  }
  
  .recent-small h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
  }
  
  .recent-small .date {
    margin: 0 0 6px 0;
  }
  
  .recent-small .summary {
    font-size: 15px;
  }
  
  /* Make featured articles scroll horizontally like sketchbook */
  .featured-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .featured-article {
    flex-shrink: 0;
    width: 60vw;
    max-width: 340px;
    scroll-snap-align: start;
  }
  
  .featured-article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  
  .all-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .site-header h1 {
    font-size: 32px;
  }
}
