/* Late Night Coders - Indie Blog Style */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #fdfbf7;
  color: #2d2d2d;
  line-height: 1.7;
  font-size: 18px;
}

main {
  padding: 20px 40px 50px 40px;
  max-width: 900px;
}

/* Header */
header {
  margin-bottom: 3.5rem;
  text-align: left;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Products */
.products {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.products h2 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 600;
}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateX(4px);
}

.product-card:hover .product-content h3 {
  color: #e67e22;
}

.product-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  /* Prevent image overflow */
}

.product-icon.with-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.product-icon svg rect {
  fill: white !important;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  /* Remove inline behaviors */
  max-width: 100%;
  /* Constraint for Safari */
}

.product-content {
  flex: 1;
}

.product-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.product-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  main {
    padding: 20px 24px 50px 24px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .product-card {
    gap: 1.25rem;
  }

  .product-icon {
    width: 48px;
    height: 48px;
  }

  .product-content h3 {
    font-size: 1.0625rem;
  }

  .product-content p {
    font-size: 0.875rem;
  }
}