:root {
  --bg: #fafafa;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #475569;
  --line: #e5e7eb;
  --card: #ffffff;
  --thumb: #f1f1f1;
  --tag-bg: #eef2ff;
  --tag-ink: #3730a3;
  --focus: #1d4ed8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 1160px; margin: 0 auto; padding: 56px 24px 24px; }
.intro { text-align: center; max-width: 560px; margin: 0 auto 48px; }
h1 { font-size: 3rem; line-height: 1.1; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.intro p { margin: 0; font-size: 1.05rem; color: var(--muted); }

ul { list-style: none; margin: 0; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: inherit; text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .10); transform: translateY(-2px); border-color: #d4d8de; }
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--thumb); border-bottom: 1px solid var(--line); }
.body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
h2 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.tagline { margin: 0; font-size: .95rem; font-weight: 600; color: var(--soft); }
.desc { margin: 0; font-size: .92rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tags li { background: var(--tag-bg); color: var(--tag-ink); font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 6px; }

footer {
  max-width: 1160px; margin: 40px auto 0; padding: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem;
}
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--ink); text-decoration: underline; }

@media (max-width: 720px) {
  main { padding: 40px 16px 16px; }
  h1 { font-size: 2.4rem; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  footer { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
