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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8f7f4;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: #c4b5fd;
  max-width: 480px;
  margin: 0 auto;
}
.hero-sub code {
  background: rgba(255,255,255,0.12);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Posts grid */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.07);
}
.card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7c3aed;
}
.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.card p {
  font-size: 0.93rem;
  color: #555;
  flex: 1;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  align-self: flex-start;
}
.read-more:hover { text-decoration: underline; }

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.8rem;
  color: #999;
}
