:root {
  --ink: #121316;
  --coal: #1c1e23;
  --steel: #2b2e35;
  --line: #3a3e47;
  --red: #d71a1a;
  --hot: #ff3b3b;
  --silver: #c9cbcf;
  --mist: #8f939b;
  --white: #ffffff;
  --display: "barlow-condensed", "Arial Narrow", Impact, sans-serif;
  --body: "source-sans-3", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(215, 26, 26, 0.35), transparent 55%), var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.4;
}

.links {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.top {
  text-align: center;
}

.logo {
  width: 120px;
  height: auto;
}

.name {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 44px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tag {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--silver);
}

.seen {
  max-width: 520px;
  margin: 24px auto 0;
}

.seen-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  text-transform: uppercase;
  text-align: center;
}

.seen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seen .tile {
  border-color: var(--red);
}

.seen .tile-name {
  font-size: 17px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 28px auto 40px;
}

.btn {
  display: block;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--coal);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  border-color: var(--hot);
  transform: translateY(-2px);
}

.btn-red {
  border-color: var(--red);
  background: var(--red);
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-red:hover {
  background: var(--hot);
  border-color: var(--hot);
}

a:focus-visible {
  outline: 3px solid var(--hot);
  outline-offset: 3px;
}

.art {
  scroll-margin-top: 16px;
}

.art-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 36px;
  text-transform: uppercase;
  text-align: center;
}

.art-note {
  margin: 4px 0 20px;
  color: var(--silver);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--coal);
  color: var(--white);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.tile:hover {
  border-color: var(--hot);
  transform: translateY(-3px);
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.tile-name {
  padding: 10px 10px 2px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.tile-price {
  margin-top: auto;
  padding: 4px 10px 12px;
  color: var(--hot);
  font-weight: 700;
  font-size: 15px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 40px;
}

.foot a {
  color: var(--silver);
}
