* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #000;
  background: #d9d9d9 url("assets/top.png") top center / contain no-repeat;
}

.page-header {
  position: relative;
  flex: 0 0 4rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  padding-inline: 3rem;
  font-size: 1.2rem;
  font-weight: 450;
}

.back {
  position: absolute;
  inset: 0 auto auto 0;
  width: 3rem;
  height: 3rem;
  background: url("assets/back-black.png") center / 2rem no-repeat;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-inline: 0.5rem;
}

.card {
  display: block;
  margin-top: 1rem;
  scroll-margin-top: 1rem;
}

.card img,
.details img {
  display: block;
  width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid #174bd0;
  outline-offset: -2px;
}
