.article__header {
  grid-column-start: 1;
  grid-column-end: -1;
  background-color: var(--accent-color);
}

.article__header-inner {
  box-sizing: border-box;
  padding: var(--offset);
  padding-top: clamp(20px, 3%, 130px);
}

.article__title {
  margin: 0;
  font-size: var(--font-size-xl);
  line-height: var(--font-line-height-xl);
  font-weight: normal;
}

.article__title-code {
  overflow-wrap: break-word;
  font-size: var(--font-size-xl);
  line-height: var(--font-line-height-xl);
  font-family: var(--font-family);
  letter-spacing: var(--letter-spacing);
}

.article__category {
  margin-top: 0;
  margin-bottom: 6px;
  display: flex;
  gap: 4px;
  font-family: var(--font-family);
  font-size: 20px;
  line-height: 22px;
  letter-spacing: var(--letter-spacing);
}

.article__category-devider {
  opacity: 0.6;
}

.article__image {
  margin-bottom: 60px;
  margin-bottom: clamp(20px, 2%, 60px);
}

.article__description {
  margin-top: 10px;
  margin-bottom: 0;
}

.article__description-code {
  font-size: var(--font-size-m);
  line-height: var(--font-line-height-m);
  letter-spacing: var(--letter-spacing);
  font-family: var(--font-family);
}

.article__placeholder {
  --placeholder-bg-opacity: calc(var(--is-dark-theme-on) * 0.5 + var(--is-light-theme-on) * 0.7);
  margin-top: 10px;
  margin-bottom: 0;
  position: relative;
  z-index: 0;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.article__placeholder::before {
  content: "";
  opacity: var(--placeholder-bg-opacity);
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-background);
  border-radius: 6px;
}

.article__placeholder-icon {
  position: relative;
  top: 0.125em;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}

.article__read-time {
  margin-top: 0.8em;
  margin-bottom: 0;
  font-size: var(--font-size-s);
}

.article__aside {
  font-size: var(--font-size-s);
  line-height: var(--font-line-height-s);
}

.article__nav {
  font-size: var(--font-size-m);
  line-height: 1.6;
}

.article__meta {
  padding: var(--offset);
  padding-top: 0;
  line-height: 1.6;
}

.article__persons {
  padding: 30px 0;
}

.article__edit-button {
  vertical-align: top;
  will-change: transform;
}

.article__update-date {
  margin-top: 10px;
  margin-bottom: 0;
}

.article__content {
  padding: calc(var(--offset) * 2) var(--offset);
}

.article:not(.article--with-cover) .article__header-inner {
  margin-left: 0;
}

@media not all and (width >= 1024px) {
  .article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .article__aside {
    display: contents;
  }

  .article__meta {
    order: 1;
    margin-top: 30px;
    display: grid;
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .article__persons {
    margin-right: 2em;
    padding-top: 0;
    padding-bottom: 0;
  }

  .article__edit-button {
    align-self: start;
    grid-row-end: span 2;
  }

  .article__content {
    display: contents;
  }

  .article__content-inner {
    padding: inherit;
  }
}

@media not all and (width >= 768px) {
  .article__meta {
    margin-top: 80px;
    display: block;
  }

  .article__persons {
    padding-bottom: 17px;
  }

  .contributors__item:not(:first-child) {
    margin-top: 14px;
  }
}

@media (width >= 768px) {
  .article__category {
    display: none;
  }
}

@media (width >= 1024px) {
  .article__title {
    font-size: var(--font-size-xxl);
    line-height: var(--font-line-height-xxl);
  }

  .article__title-code {
    font-size: var(--font-size-xxl);
    line-height: var(--font-line-height-xxl);
  }

  .article__nav {
    font-size: inherit;
  }

  .article__layout {
    display: contents;
  }

  .article__aside {
    --header-offset: calc(var(--header-height) * 1px);
    position: sticky;
    top: var(--header-offset, 0);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-row-end: span 2;
    height: 100%;
    max-height: calc(100vh - var(--header-offset, 0px));
    transition: 0.2s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: top, height;
    transition-duration: 0.2s;
  }

  .article__persons {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .article__content {
    grid-column-start: 2;
    grid-column-end: span 1;
    padding-top: var(--offset);
    padding-bottom: var(--offset);
  }

  .article--with-cover .article__header {
    display: grid;
    grid-template-columns: var(--columns-template);
  }

  .article--with-cover .article__header-inner {
    grid-column-start: 2;
    grid-column-end: span 1;
  }
}

@media (width >= 1680px) {
  .article__aside {
    padding-right: var(--offset);
  }

  .article__persons {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
