@import url(./assets_main/css/fonts.css);

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-accent: rgba(13, 102, 146, 1);
  --color-bg: rgba(232, 232, 232, 1);
  --color-text: rgba(30, 30, 30, 1);

  /* Typography */
  --font-base: "Alexandria", sans-serif;
  --font-size-base: 22px;
  --font-weight-normal: 300;

  /* Borders & Radius */
  --border-color: rgba(217, 217, 217, 1);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

ul,
ol {
  list-style: none;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.link {
  color: var(--color-accent);
}

.link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

#form {
  scroll-margin-top: 100px;
}

/* Animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 1);
  padding: 22px 0px;
  box-shadow: 0px 4px 10px 0px rgba(33, 48, 55, 0.25);
  z-index: 999;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo__icon {
  height: 30px;
  display: block;
}

.header-menu__icon {
  display: block;
}

.main .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

/* Article */
.article {
  background-color: rgba(255, 255, 255, 1);
  padding: 46px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article__title {
  font-family: "Aboreto", sans-serif;
  font-size: 46px;
  font-weight: 400;
  text-transform: uppercase;
}

.article__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(232, 232, 232, 1);
  border-bottom: 1px solid rgba(232, 232, 232, 1);
  padding: 22px 0px;
}

.article__author {
  display: flex;
  align-items: center;
  gap: 18px;
}

.article__avatar {
  width: 50px;
  height: 50px;
}

.article__author-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article__author-name {
  font-size: 18px;
}

.article__author-name--accent {
  font-weight: 400;
  color: var(--color-accent);
}

.article__date {
  font-size: 18px;
  font-weight: 200;
}

.article__action {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.article__action-icon:hover {
  opacity: 0.8;
}

.article__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article h2 {
  font-size: 28px;
  font-weight: 400;
  padding: 10px 0px;
  border-bottom: 1px solid var(--color-accent);
}

.article h3 {
  font-weight: 400;
  font-size: 24px;
}

.article strong {
  color: var(--color-accent);
}

.article__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 30px;
}

/* Comments */
.comments {
  background: #fff;
  padding: 46px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.comments__title {
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 600;
  padding: 10px 0px;
  border-bottom: 2px solid var(--color-accent);
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.comment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(232, 232, 232, 1);
}

.comment.comment--reply {
  margin-left: 70px;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 22px;
}

.comment__avatar {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment__body {
  width: 100%;
  padding-left: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.comment__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.comment__author {
  font-weight: 600;
}

.comment__dot {
  color: var(--color-accent);
  font-size: 22px;
}

.comment__date {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 400;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.comment__action {
  display: flex;
  align-items: center;
  color: var(--color-accent);
  font-size: 16px;
  gap: 10px;
}

.comment__action:hover {
  opacity: 0.8;
}

.comment__icon {
  display: block;
}

.comment__count {
  font-size: 16px;
  color: var(--color-accent);
}

.readmore__link {
  padding: 10px 0px;
  text-align: center;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-accent);
}

.readmore__link:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  background: #fff;
  padding: 22px 0px;
  box-shadow: 0 -4px 10px 0 rgba(33, 48, 55, 0.25);
  text-align: center;
}

.footer__container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__logo-icon {
  height: 30px;
  display: block;
}

.footer__nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-accent);
}

.footer__link {
  font-weight: 400;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer__dot {
  color: var(--color-accent);
  font-weight: 400;
}

.footer__disclaimer {
  font-family: "Aboreto", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.footer__note {
  font-weight: 300;
}

.footer__copyright {
  font-weight: 300;
  font-size: 20px;
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .container {
    max-width: 664px;
  }

  body {
    font-size: 20px;
  }

  .article__title {
    font-size: 32px;
  }

  .article h2 {
    font-size: 24px;
  }

  .article h3 {
    font-size: 22px;
  }

  .comments__title {
    font-size: 26px;
  }

  .readmore__link {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
  }

  .header-logo__icon {
    height: 20px;
  }

  .header {
    padding: 12px;
  }

  .header-menu__icon {
    width: 14px;
  }

  .article {
    padding: 26px 12px;
  }

  .article__title {
    font-size: 26px;
  }

  .article__avatar {
    width: 32px;
    height: 32px;
  }

  .article__author-info {
    gap: 0;
  }

  .article__author-name,
  .article__date {
    font-size: 16px;
  }

  .article__action-icon {
    width: 23px;
    height: 23px;
  }

  body {
    font-size: 18px;
    background-color: #fff;
  }

  .article h2 {
    font-size: 22px;
  }

  .article h3 {
    font-size: 20px;
  }

  .comments {
    padding: 22px 12px;
  }

  .comment__body {
    flex-direction: column;
  }

  .comment.comment--reply {
    margin-left: 30px;
  }

  .readmore__link {
    font-size: 24px;
  }

  .main .container {
    margin-bottom: 0;
  }

  .footer {
    margin: 24px auto 0 auto;
  }

  .footer__container {
    padding: 22px 12px;
  }

  .footer__logo-icon {
    height: 20px;
  }

  .footer__nav {
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .footer__link {
    font-size: 14px;
  }

  .footer__disclaimer,
  .footer__note {
    font-size: 16px;
  }

  .footer__copyright {
    font-size: 14px;
  }
}
