:root {
  --ink: #111;
  --quiet: #6b6b6b;
  --line: #dcdcdc;
  --tile: #efefef;
  --tile-active: #e7e7e7;
  --edge: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 1360px;
  padding: 0 var(--edge);
  background: #fff;
  color: var(--ink);
  font: 16px/1.375 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ol {
  margin: 0;
  padding: 0;
  font: inherit;
}

b {
  font-weight: 700;
}

/* Head */

header {
  padding: 40px 0 56px;
}

h1 {
  font-size: 32px;
  line-height: 1.125;
  letter-spacing: -0.01em;
}

header p {
  margin-top: 12px;
  max-width: 26em;
  color: var(--quiet);
}

/* List */

ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px 24px;
  list-style: none;
}

.item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tile {
  display: flex;
  aspect-ratio: 1;
  padding: 14%;
  background: var(--tile);
  transition: background-color 0.15s;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.blank {
  margin: auto;
  color: #fff;
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.caption {
  display: grid;
  grid-template-columns: 2.25em minmax(0, 1fr) auto;
  column-gap: 8px;
  padding-top: 16px;
}

.number {
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.price {
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
}

h2 b,
h2 span {
  display: block;
}

.text p {
  color: var(--quiet);
}

.text .shop {
  margin-top: 12px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.item:hover .tile {
  background: var(--tile-active);
}

.item:hover .shop {
  text-decoration-color: currentColor;
}

.item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

/* Foot */

footer {
  margin-top: 96px;
  padding: 16px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

noscript p {
  color: var(--quiet);
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --edge: 40px;
  }

  ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 32px;
  }
}

@media (min-width: 1040px) {
  :root {
    --edge: 72px;
  }

  header {
    padding: 64px 0 88px;
  }

  h1 {
    font-size: 40px;
  }

  ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 80px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
}
