:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f5;
  color: #202124;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f7f7f5;
}

a { color: #2359c4; }

a:focus-visible {
  outline: 3px solid #85a9f3;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-150%);
  background: #202124;
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

main {
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto;
  padding: 0 0 64px;
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  border-bottom: 1px solid #dededb;
}

.brand {
  color: #202124;
  font-size: 0.95rem;
  font-weight: 720;
  text-decoration: none;
}

.intro { padding: 72px 0 52px; }

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.intro p {
  margin: 0;
  max-width: 540px;
  color: #65676b;
  font-size: 1rem;
  line-height: 1.55;
}

#loading-status {
  margin: 0;
  padding: 20px 0;
  color: #85878a;
  font-size: 0.75rem;
}

.product-list {
  overflow: hidden;
  border: 1px solid #dededb;
  background: #fff;
}

.product-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(156px, auto);
  gap: 18px;
  padding: 24px;
}

.product-card + .product-card { border-top: 1px solid #dededb; }

.product-icon {
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.product-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-icon.resolve img {
  width: 79px;
  max-width: none;
  height: 55px;
  transform: translate(-19px, -7px);
}

.product-name {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.product-summary,
.install-copy,
.availability-reason {
  margin: 0;
  color: #65676b;
  font-size: 0.8rem;
  line-height: 1.55;
}

.install-copy { margin-top: 12px; }

.availability-reason {
  margin-top: 5px;
  color: #7a4b00;
}

.product-meta {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 9px;
  text-align: right;
}

.product-meta p {
  margin: 0 0 3px;
  color: #696b6e;
  font-size: 0.72rem;
  white-space: nowrap;
}

.button {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0 16px;
  background: #245fca;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.button.disabled {
  border: 1px solid #d7d8d5;
  background: #efefed;
  color: #696b6e;
}

.error-message {
  border: 1px solid #dededb;
  background: #fff;
  padding: 16px;
  color: #7a4b00;
}

@media (max-width: 680px) {
  main {
    width: min(calc(100% - 28px), 920px);
    padding-bottom: 36px;
  }

  .site-header { min-height: 60px; }
  .intro { padding: 48px 0 40px; }

  .product-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 18px;
  }

  .product-icon {
    width: 34px;
    height: 34px;
  }

  .product-meta {
    grid-column: 2;
    justify-items: stretch;
    text-align: left;
  }

  .product-meta p { white-space: normal; }
}
