/* Simple, clean look. Edit freely. */

:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --border: #e3e1dc;
  --accent: #2f5bd3;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* Phones: less padding, smaller title */
@media (max-width: 600px) {
  body { padding: 24px 16px; }
  h1 { font-size: 1.6rem !important; }
}

header { margin-bottom: 32px; }

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

header p {
  color: var(--muted);
  margin: 0;
}

/* 1 column on phones, 2 columns on tablets and laptops */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  aspect-ratio: 2 / 1;      /* matches the screenshots' shape */
  object-fit: contain;      /* shows the whole image, never cuts it */
  background: #f0efeb;      /* fills any small gap if an image has a different shape */
  border-bottom: 1px solid var(--border);
  display: block;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h2 {
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.card p {
  margin: 0 0 16px;
  color: #444444;
  flex: 1;               /* pushes the link to the bottom so cards line up */
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.card a:hover { text-decoration: underline; }

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
