* {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --hover: #fafafa;
  --accent: #18181b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --card: #19191c;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --border: #2b2b30;
    --hover: #202024;
    --accent: #f4f4f5;
  }
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 32px;
}

.header {
  margin-bottom: 42px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.category {
  margin-bottom: 38px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.category-title::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 99px;
  background: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  display: block;
  padding: 18px 19px;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transform: translateY(0);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  background: var(--hover);
}

.card-name {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.card-description {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-url {
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--border);
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: var(--text);
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1080px);
    padding-top: 40px;
  }

  .header {
    margin-bottom: 32px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .category {
    margin-bottom: 32px;
  }
}