*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  padding: 40px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #242424;
  background: #f7f8fa;

  display: grid;
  place-items: center;
}

main {
  width: 100%;
  max-width: 1000px;
}

header {
  margin-bottom: 32px;
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
}

header p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.demos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.demo {
  min-width: 0;
}

.demo.featured {
  grid-column: 1 / -1;
}

.demo a {
  height: 100%;
  padding: 24px;

  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;

  color: inherit;
  text-decoration: none;

  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.demo a:hover {
  border-color: #b8c2cc;
  box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
  transform: translateY(-2px);
}

.demo a:focus-visible {
  outline: 2px solid #1677d2;
  outline-offset: 2px;
}

.demo img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.demo h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: #1769aa;
}

.demo p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  body {
    padding: 24px 16px;
    place-items: start center;
  }

  header {
    margin-bottom: 24px;
  }

  .demos {
    grid-template-columns: 1fr;
  }

  .demo.featured {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .demo a {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .demo img {
    width: 64px;
    height: 64px;
  }
}