:root {
  color-scheme: dark;
  --bg: #0f1117;
  --card: #171b25;
  --card-hover: #1d2330;
  --border: #2b3242;
  --border-hover: #6ea8fe;
  --text: #f2f2f2;
  --muted: #b8beca;
  --soft: #7f8797;
  --accent: #9ec5ff;
  --accent-bg: #263247;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(80, 120, 255, .22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(255, 170, 60, .14), transparent 30rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

header {
  margin-bottom: 36px;
}

.topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(23, 27, 37, .82);
  color: var(--accent);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
}

.topline:hover {
  border-color: var(--border-hover);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.subtitle {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--soft);
  font-size: .92rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  main {
    width: min(100% - 24px, 1120px);
    padding: 38px 0;
  }

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