/* Products page: the home index, opened up into one quiet grid per product family. */
.page-head { padding-block: clamp(150px, 16vw, 220px) clamp(48px, 6vw, 88px); }
.page-head h1 { margin: 0; max-width: 18ch; font-size: clamp(34px, 5vw, 72px); font-weight: 300; line-height: 1.35; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 48px 0 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  color: var(--oxblood); text-decoration: none; font-size: 15px;
  border: 1px solid var(--hair); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.jump a:hover, .jump a:focus-visible { background: var(--oxblood); color: var(--porcelain); border-color: var(--oxblood); }

.family { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--hair); scroll-margin-top: 96px; }
.family h2 { margin: 0 0 clamp(32px, 4vw, 56px); font-size: clamp(26px, 2.8vw, 38px); font-weight: 300; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); }

.product { min-width: 0; scroll-margin-top: 136px; }
/* the frame is fixed and the photo is absolute, so tall machines cannot stretch their card */
.product figure { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0 0 20px; }
.product figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product figure.empty { border: 1px solid var(--hair); }
.product figure.empty::before { content: ""; width: 10px; height: 10px; background: var(--silver); transform: rotate(45deg); }
.product h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; direction: ltr; text-align: right; }
.product p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-muted); }
/* arriving from a home page link: mark the product that was asked for */
.product:target { outline: 1px solid var(--oxblood); outline-offset: 14px; }
