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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f1117;
  color: #e6e6e6;
  /* Column layout so the footer sits at the bottom even on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  padding: 1.5rem 2rem;
}

.wordmark {
  color: #e6e6e6;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark:hover {
  color: #9aa0ab;
}

/* Main */

main {
  /* Grows to fill leftover space, pushing the footer down. */
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.showcase {
  margin-bottom: 3.5rem;
}

.showcase h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.section-note {
  color: #9aa0ab;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  /* Cards are at least 260px wide and wrap on their own — no media queries needed. */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border: 1px solid #2e3440;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  background: #1c2130;
  border-color: #4c566a;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #9aa0ab;
  font-size: 0.925rem;
  line-height: 1.5;
}

.card a {
  display: inline-block;
  margin-top: 0.85rem;
  color: #e6e6e6;
  font-size: 0.925rem;
  text-decoration: none;
  border-bottom: 1px solid #4c566a;
  padding-bottom: 1px;
}

.card a:hover {
  color: #9aa0ab;
}

/* Footer */

.site-footer {
  border-top: 1px solid #2e3440;
  padding: 2rem;
}

.social-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #2e3440;
  border-radius: 8px;
  color: #e6e6e6;
  font-size: 0.925rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover {
  background: #1c2130;
  border-color: #4c566a;
}
