/* --- Base Variables & Setup --- */
:root {
  --bg-dark: #0f1115;
  --card-bg: #1a1d24;
  --accent: #ff6b6b; /* Adjust to match the 'Peach' branding */
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  --border-radius: 24px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  padding: 2rem;
}

/* --- The Grid Container --- */
.bento-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  /* Mobile-first: 1 column */
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* Defining a base row height helps keep the bento boxes uniform */
  grid-auto-rows: minmax(180px, auto); 
}

/* --- Shared Card Styles --- */
.bento-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* --- Typography & Elements --- */
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.5rem; margin-top: 0; }
p { color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }

.vibe-badge {
  display: inline-block;
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Desktop Grid Layout --- */
@media (min-width: 768px) {
  .bento-grid {
    /* Switch to 4 columns on larger screens */
    grid-template-columns: repeat(4, 1fr);
  }

  /* The Hero card commands the top left */
  .hero-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--card-bg) 0%, #232730 100%);
  }

  /* The Plugin card spans 2 columns wide */
  .plugin-card {
    grid-column: span 2;
    border: 1px solid var(--accent);
  }

  /* The other cards take up 1 grid cell each naturally */
  .blog-card, .lab-card, .events-card {
    grid-column: span 1;
  }
}