:root {
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero {
  padding: 12vh 0 6vh;
}

.brand {
  margin: 0;
}

.brand img {
  width: 260px;
}

.products {
  --title-size: clamp(2.5rem, 7vw, 4rem);
  flex: 1;
  display: grid;
  grid-template-columns: auto auto;
  align-content: start;
  align-items: baseline;
  justify-content: center;
  column-gap: clamp(32px, 8vw, 72px);
  row-gap: 24px;
}

.products-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: var(--title-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.product-list {
  display: contents;
}

.product-list li {
  grid-column: 2;
  list-style: none;
}

.product-card {
  position: relative;
  display: block;
}

.product-card img {
  height: calc(var(--title-size) * 0.72);
  width: auto;
  transition: opacity 0.2s ease;
}

.product-card .product-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover img,
.product-card:focus-visible img {
  opacity: 0;
}

.product-card:hover .product-hover,
.product-card:focus-visible .product-hover {
  opacity: 1;
}

.site-footer {
  padding: 48px 0 32px;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}
