@font-face {
  font-family: "Roboto";
  src: url("../fonts/Robotolight.woff2"), url("../fonts/Robotolight.woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto.woff2"), url("../fonts/Roboto.woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Robotomedium.woff2"), url("../fonts/Robotomedium.woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Robotobold.woff2"), url("../fonts/Robotobold.woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yeseva One";
  src: url("../fonts/yesevaone.woff2"), url("../fonts/yesevaone.woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  box-sizing: border-box; 
}

:root {
  font-size: 16px;
  --main-fonts: "Roboto", "Arial", sans-serif;
  --color: #ABAFAD;
  --subtitle-color: #7e8d47;
  --sidebar-color: #656562;
  --sidebar-color-hover: #025059;

  --bg: #161416;
  --bg-content: #1f246c46;


  --bg-light-theme-color: #ffffff;
  --light-theme-color: #000000;

  --option-height: 18em;
  --option-width: 4em;
  --gutter: 0.8em;
  --radius: 1.875rem;
  
  
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 320px;

  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--main-fonts);
  color: var(--color);
  line-height: 1.5;
  font-weight: 400;

  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

h1, h2, h3 { 
  line-height: 1.2;
}

h1 
{
  font-size: 2.3rem;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  color: #3f6335;
  font-size: 1.4rem;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: flex;
}

.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  border: 0;
  clip-path: inset(100%);
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.container {
  position: relative;
  max-width: 1286px;
  margin: 0 auto;
  padding: 0 1em;
}

.current {
  color: green;
}

/* STYLES*/
.title {
  padding: 0;
  margin: 0;
}

/*TEMPLATE*/
.page {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2em;
  margin-bottom: 2em;
}

/* GLOBAL STYLES */

/*HEADER*/
.header {
  background-color: #23232C;
  border-bottom: 10px solid #36463D;
  margin-bottom: 50px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  min-width: 320px;
}

.header-sticky + .main {
  margin-top: 130px;
}
.header-sticky + .about-page {
  margin-top: 130px;
}
.header-sticky + .post-page {
  margin-top: 130px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
}

.nav-menu__item {
  margin-right: 1.2em;
}

.nav-menu__item:last-child {
  margin-right: 0;
}

.nav-menu__link {
  font-size: 20px;
  color: #ABAFAD;
  font-weight: 700;
  transition: color 0.3s ease-out, border 0.3s ease-out;
}
.nav-menu__link:hover,
.nav-menu__link:focus,
.nav-menu__link:active {
  color: #91622A;
  text-decoration: underline;
}

/*CONTENT*/
.main {
  
}
.main-page {
  background: var(--bg-content);
}
.content {
  padding: 2em; 
}
.main-content {
  padding: 0 0 0 2em;
  border-left: 10px solid #182528;
}

.author-content, .post-content  {
  padding: 0 2em 0 2em;
  margin-bottom: 2em;
  border-radius: 5px;
}


/*BLOG*/
.blog__wrap {
  border: 10px solid #182528;
  border-right: 0;
}

.blog__item {
  border-bottom: 10px solid #4D1E23;
}
.blog__item:nth-child(2n) {
  border-bottom: 10px solid #134245;
}
.blog__item:last-child {
  border-bottom: 0;
}

.blog-post__link {
  color: #7C4F1A;
  font-size: 1.4rem;
  line-height: 1.1em;
  font-weight: 700;
  border: 5px solid rgba(101,101,98,0.2);
  display: block;
  padding: 0.2em 0.2em 0;
  border-bottom: none;
  border-radius: 0.4em 0.4em 0 0;
  transition: color 0.3s ease-out, border 0.3s ease-out;
}
.blog-post__link:hover,
.blog-post__link:focus,
.blog-post__link:active {
  text-decoration: underline;
  color: #025059;
}

.blog-post__title {
  margin-top: 0;
}

.blog-post__title-link {
  font-size: 1.6rem;
  color: #ABAFAD;
  transition: color 0.3s ease-out, border 0.4s ease-out;
}
.blog-post__title-link:hover,
.blog-post__title-link:focus,
.blog-post__title-link:active {
  text-decoration: underline;
}

.blog-post {
  display: flex;
}

.blog-post__content-wrap {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 1.4em 1.6em 0.8em;
}

.blog-post__description {
  color: #656562;
}

.blog-post__more {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
}

time {
  color: #656562;
  font-weight: 700; 
}

/*ARTICLES*/
.articles {
  margin-bottom: 3em;
}

.articles-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

.articles-list__item {
  border-bottom: 10px solid #182528;
  border-right: 10px solid #182528;
  overflow: hidden;
}
.articles-list__item:nth-child(2) {
  border-bottom: 10px solid #134245;
  border-right: 10px solid #134245;
}
.articles-list__item:nth-child(3) {
  border-bottom: 10px solid #4D1E23;
  border-right: 10px solid #4D1E23;
}

.articles-post__title-link {
  display: flex;
  font-size: 1.1rem;
  color: #ABAFAD;
  font-weight: 700;
  line-height: 1.2em;
  transition: color 0.3s ease-out, border 0.4s ease-out;
}
.articles-post__title-link:hover {
  text-decoration: underline;
}

/*POST-SOCIAL-LINK*/
 .post-social-link {
  color: #3f6335;
  font-weight: 700;
 }

/*SIDEBAR*/
.sidebar__menu, .banner {
  background-color: #23232C;
  border: 10px solid #182528;
  margin: 0 0 2em;
}
.sidebar__menu-item {
  padding: 0.8em;
}
.sidebar__menu-item:nth-child(2n) {
  background-color:#1B2422;
} 
.sidebar__menu-link {
  color: var(--sidebar-color);
  font-size: 20px;
  font-weight: 700;
  transition: color 0.3s ease-out, border 0.4s ease-out;
}
.sidebar__menu-link:hover {
  color: var(--sidebar-color-hover);
  text-decoration: underline;
}
.sidebar__menu-link:focus {
  color: #771A11;
}
.sidebar__menu-link:active {
  color: #025059;
}

.banner {
  padding: 1em;
  line-height: 1.7;
  text-align: center;
  color: #ABAFAD;
}

/*ДЕКОР*/
.decorate {
  border-bottom: 10px solid #182528;
  border-top: 10px solid #182528;
  margin-bottom: 2em;
  display: flex;
  opacity: 0.2;
}
.decorate-girl {
  background-image: url(../images/decorate/6.png);
  background-size: 100px 130px;
  background-repeat: no-repeat;
  margin-bottom: -4em;
}

.line {
  border-right: 10px solid #182528;
  width: 300px;
  font-size: 1.4rem;
  color: #222E38;
  text-transform: uppercase;
  text-align: center;
}
.line:nth-child(2){
  width: 600px;
}
.line-second {
  width: 400px;
}
.line-second:nth-child(2){
  width: 900px;
}

/*ARTICLE*/
.article {
  background-color: #23232C;
  padding: 2em;
  color: #ABAFAD;
  margin-bottom: 4em;
}
.article__img {
  float: left;
  padding-right: 2em ;
  padding-bottom: 1em;
}

.clear {
  clear: both;
}

/*GALLERY*/
.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4em;
  border: 10px solid #182528;
}

.options {
  display: flex;
  flex-direction: row;
  min-width: 4em;
  max-width: calc(var(--total-options) * 11em);
  width: 100%;
  height: var(--option-height);
}
.option {
  background-color: #000;
  margin: var(--gutter);
  flex-grow: 1;
  flex: 0 0 var(--option-width);
  transition: flex-grow 1.25s cubic-bezier(.17, .84, .44, 1);
  background-position: center;
  background-size: cover;
}
.option:not(.active) {
  cursor: pointer;
}
.option.active {
  flex-grow: var(--total-options);
}
@media (max-width: 768px) {
  .options {
    flex-direction: column;
    min-height: 79vh;
    min-width: auto;
  }
}

/*FOOTER*/
.footer {
  background-color: #222E38;
  padding: 1.2em 2em 1em;
  margin-top: auto;
  color: #656562;
}
.footer__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1em;
}
.footer__link {
  color: #025059;
  text-decoration: underline;
}

/*ABOUT PAGE*/
.about {
  padding: 1em 1em 0;
  background-color: #23232C;
  color: #ABAFAD;
  line-height: 1.7;
  text-align: center;
  border-right: 10px solid #182528;
  border-bottom: 10px solid #182528;
  margin-bottom: 2em;
}

/*POST-PAGE*/
/* .post {
  padding: 1.8em;
  line-height: 1.7;
  background-color: #25a521;
  border-right: 10px solid #182528;
  border-bottom: 10px solid #182528;
  overflow: hidden;
}
.post-list {
  margin: 2em 4em;
  list-style: disc;
} */

/* .light-theme {
  color: var(--light-theme-color);
  background: var(--bg-light-theme-color);
}  */

/*АДАПТИВ*/
/*1120*/
@media (max-width: 1120px) {
  .blog__wrap {
    border-left: 0;
  }
}

/*900px*/
@media (max-width: 900px) {
  .content {
    padding: 0;
  }

  .articles {
    margin-bottom: 2em;
  }
  .articles-post__img,
  .blog-post__img {
    width: 100%;
  }

  .blog {
    margin-bottom: 2em;
  }
  .blog-post {
    flex-wrap: wrap;
  }
  .blog-post__img {
    display: none;
  }
  .blog-post__content-wrap {
    padding-left: 0;
  }

  .decorate-hidden, .decorate  {
    display: none;
  }
}

/*700*/
@media (max-width: 700px){
  .page {
    display: block;
  }
  .main-content {
    padding: 0 0 0 1.5em;
  }
  .author-content {
    padding: 1.5em; 
  }
}

/*600*/
@media (max-width: 600px) {
  .main-content {
    padding: 0;
    border-left: none;
  }

  .header {
    border: 0;
  }
  .header-sticky + .main {
    margin-top: 100px;
  }
  .header-sticky + .about-page {
    margin-top: 100px;
  }
  .header-sticky + .post-page {
    margin-top: 100px;
  }

  .articles-list {
    display: block;
  }

  .blog-post__link,
  time {
    display: none;
  }
  .blog-post__description {
    display: none;
  }
  .blog-post__img {
    display: block;
  }

  .post-container {
    padding: 0;
  }
  .post-content, .author-content {
    padding: 1.2em;
  }

  .banner {
    padding: 0;
  }
}

/*320*/
@media (max-width: 320px) {
  .footer {
    padding: 2em 0;
  }
  .footer__wrap {
    text-align: center;
  }
  .footer__copy {
    margin: 0 0 0.4em;
  }
  .footer__copy:last-child {
    margin: 0;
  }
}
