@import url(lower.css);

article,
.buttons {
  width: min(100%, 800px);
  margin-inline: auto;
}
.main {
  margin-top: var(--header-h);
  padding-top: max(5vw, 30px);
  h1 {
    font-size: clamp(1.4em, 2.4vw, 36px);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
}
time {
  color: var(--primary-c);
}
.categories {
  margin-bottom: 10px;
}
.thumbnail {
  margin-bottom: 2rem;
  img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
}

.body {
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  img {
    width: 100%;
  }
  h2 {
    font-size: clamp(1.2em, 1.8vw, 28px);
    font-weight: 500;
  }
  h3 {
    font-size: var(--fz);
    font-weight: 500;
  }
  ul {
    padding-left: 1.2em;
    list-style-type: disc;
  }
  ol {
    padding-left: 1.2em;
    list-style-type: style;
  }
  a {
    color: var(--link-c);
    border-bottom: 1px solid;
    transition: opacity .3s;
    &:hover {
      opacity: .6;
    }
  }
}
.buttons {
  margin-top: max(5vw, 50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back {
  display: flex;
  align-items: center;
  gap: 1em;
  border-radius: 4px;
  &:hover span {
    color: #fff;
    border-color: transparent;
    background-color: var(--primary-c);
  }
  span {
    display: grid;
    font-size: 22px;
    width: 1.6em;
    border: 1px solid;
    border-radius: 50%;
    aspect-ratio: 1;
    place-items: center;
    transition-property: color, border-color, background-color;
    transition-duration: 0.4s;
  }
}
.pager {
  display: flex;
  gap: 2em;
  a {
    display: flex;
    align-items: center;
    gap: 1em;
    span {
      display: grid;
      font-size: 22px;
      width: 1.6em;
      border-radius: 50%;
      aspect-ratio: 1;
      place-items: center;
      border: 1px solid;
      @media (any-hover: hover) {
        border-color: transparent;
        background-color: transparent;
        transition-property: color background-color;
        transition-duration: 0.4s;
      }
    }
    @media (any-hover: hover) {
      &:hover span {
        background-color: var(--primary-c);
        color: #fff;
      }
    }
  }
}

@media (width < 500px) {
  .buttons {
    flex-direction: column;
    gap: 2em;
  }
  .back {
    align-self: start;
  }
  .pager {
    width: 100%;
    justify-content: space-between;
    a {
      gap: 0.6em;
    }
  }
}
