/* Products page — Chrome extensions, layered on the projects page system */
.products-page .page-intro::after {
  content: 'TOOLS';
}
.products-page .product-card {
  min-height: 460px;
  gap: 26px;
}
.products-page .product-card:nth-child(7) {
  background: var(--ink);
  color: #fff;
}
.products-page .product-card:nth-child(8) {
  background: #fff;
}
.products-page .product-card:nth-child(9) {
  background: var(--acid);
}
.products-page .product-card:nth-child(10),
.products-page .product-card:nth-child(15) {
  background: var(--blue);
  color: #fff;
}
.products-page .product-card:nth-child(11),
.products-page .product-card:nth-child(16) {
  background: #fff;
}
.products-page .product-card:nth-child(12) {
  background: var(--orange);
}
.products-page .product-card:nth-child(13) {
  background: var(--ink);
  color: #fff;
}
.products-page .product-card:nth-child(14) {
  background: var(--acid);
}
.products-page .product-card:nth-child(17) {
  background: var(--orange);
}
.products-page .product-card:nth-child(18) {
  background: var(--acid);
}
.products-page .product-card:nth-child(19) {
  background: var(--blue);
  color: #fff;
}
.products-page .product-card:nth-child(20) {
  background: #fff;
}
.products-page .product-card:nth-child(21) {
  background: var(--orange);
}
/* Cards 22 to 32 */
.products-page .product-card:is(:nth-child(22), :nth-child(27), :nth-child(32)) {
  background: var(--acid);
}
.products-page .product-card:is(:nth-child(23), :nth-child(28)) {
  background: var(--blue);
  color: #fff;
}
.products-page .product-card:is(:nth-child(24), :nth-child(29)) {
  background: #fff;
}
.products-page .product-card:is(:nth-child(25), :nth-child(30)) {
  background: var(--ink);
  color: #fff;
}
.products-page .product-card:is(:nth-child(26), :nth-child(31)) {
  background: var(--orange);
}
.product-icon-text {
  display: grid;
  place-items: center;
  color: var(--ink);
  font: 700 34px/1 'Space Grotesk';
  letter-spacing: -0.06em;
}
.product-icon {
  width: 96px;
  height: 96px;
  flex: none;
  align-self: flex-start;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.16);
  box-shadow: 0 10px 26px rgba(21, 21, 21, 0.14);
  object-fit: contain;
  transition: transform 0.45s;
}
.products-page .product-card:hover .product-icon {
  transform: scale(1.06) rotate(-3deg);
}
.product-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}
.product-link span {
  transition: transform 0.25s;
}
.product-link:hover span {
  transform: translate(2px, -2px);
}
.product-link:hover,
.products-page
  .product-card:is(:nth-child(7), :nth-child(13), :nth-child(25), :nth-child(30))
  .product-link {
  background: #fff;
  color: var(--ink);
}
.products-page
  .product-card:is(:nth-child(7), :nth-child(13), :nth-child(25), :nth-child(30))
  .product-link:hover {
  background: var(--acid);
}
.product-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .products-page .product-card:nth-child(n) {
    min-height: 0;
  }
  .product-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-icon,
  .product-link span {
    transition: none;
  }
}
.products-page .product-card h2 {
  overflow-wrap: anywhere;
}
