:root {
  font-family: Cardo, Georgia, "Times New Roman", serif;
  color: #292929;
  background: #fff;
  font-size: 17px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }

.toys-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 36px;
}

h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  color: #000;
}

nav {
  display: flex;
  gap: 18px;
  font: 13px Cousine, monospace;
}

a {
  color: #0b5394;
  text-decoration: none;
}

nav a:hover { color: #3d85c6; }

a:focus-visible {
  outline: 2px solid #3d85c6;
  outline-offset: 5px;
  border-radius: 2px;
}

.toy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toy {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}

.toy img {
  display: block;
  width: 88px;
  height: 88px;
}

.toy h2 {
  margin: 0 0 4px;
  font: 17px/1.4 Cousine, monospace;
}

.toy p {
  margin: 0;
  color: #555;
}

.toy:hover h2,
.toy:focus-visible h2 {
  color: #3d85c6;
}

@media (max-width: 600px) {
  .toys-shell {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  header { margin-bottom: 24px; }
  h1 { font-size: 36px; }

  .toy {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
  }

  .toy img {
    width: 72px;
    height: 72px;
  }

  .toy p { font-size: 16px; }
}
