@font-face {
  font-display: swap;
  font-family: "Lato";
  font-weight: 400;
  src: url("../font/Lato-Regular.ttf")
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-weight: 700;
  src: url("../font/Lato-Bold.ttf")
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-weight: 900;
  src: url("../font/Lato-Black.ttf")
}

* {
  font-family: "Lato", sans-serif;
}

::selection {
  background-color: #e6f336;
}

html {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fffefd;
  margin: 0;
  padding: 0;
}

.progress {
  display: flex;
  position: fixed;
  height: 2px;
  top: 0;
  width: 100%;
}

.progress .bar {
  background-color: #8d5c57;
}

header {
  align-items: center;
  background-color: rgba(0,0,0,0.015);
  border-radius: 50px;
  display: flex;
  flex-direction: row;
  margin: 12px;
  overflow: hidden;
  padding: 12px;
}

.header-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  max-width: 700px;
  min-width: 350px;
  overflow: hidden;
  width: 100%;
}

header .header-wrapper .menu {
  display: none;
  background-color: #fff;
  background: url("../img/sprite.svg#menu") no-repeat center, #ffffff;
  border-radius: 50%;
  cursor: pointer;
  height: 45px;
  margin-right: 6px;
  width: 45px;
}

header .header-wrapper .logo {
  margin-right: 6px;
}

header .header-wrapper h1 {
  font-size: 16pt;
  font-weight: 900;
  max-width: 190px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

main {
  margin: 0 auto;
  max-width: 700px;
  padding: 24px;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
}

.author {
  display: block;
  font-size: 14pt;
  margin-bottom: 2px;
  text-align: center;
}

p {
  font-family: "Georgia", sans-serif;
  font-size: 14pt;
  line-height: 2rem;
  text-indent: 60px;
}

time {
  display: block;
  color: #8d5c57;
  text-align: center;
}

hr {
  border: 0;
  border-bottom: 1px solid #ede6d8;
}

.comments-section {
  display: flex;
  flex-direction: column;
}

.comments-section .action-bar {
  align-items: center;
  color: #8d5c57;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 2px;
}

.comments-section .action-bar .likes {
  background: url("../img/sprite.svg#heart") no-repeat center left;
  background-size: 48px auto;
  color: #000;
  cursor: pointer;
  height: 32px;
  font-size: 11pt;
  line-height: 32px;
  padding-left: 30px;
}

.comments-section .action-bar .likes.liked {
  background-image: url("../img/sprite.svg#heart-red");
}

.comments-section .action-bar .heading {
  font-size: 12pt;
  font-weight: 700;
}

.comments-section .comments {
  background-color: rgba(0,0,0,0.015);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.comments-section .comments .comment {
  display: flex;
  flex-direction: column;
}

.comments-section .comments .comment:not(:last-of-type) {
  border-bottom: 1px solid #dcdcdc;
  margin-bottom: 12px;
}

.comments-section .comments .comment .comment-by {
  font-size: 12pt;
  font-weight: 700;
  margin-bottom: 4px;
}

.comments-section .comments .comment .comment-date {
  font-size: 10pt;
}

.comments-section .comments .comment .comment-message {
  font-family: "Lato", sans-serif;
  font-size: 12pt;
  line-height: 1.25rem;
  margin: 12px 0;
  text-indent: 0;
}

.comments-section .form-container {
  display: flex;
  flex-direction: column;
}

.comments-section .form-container.margined {
  border-top: 1px solid #dcdcdc;
  margin-top: 12px;
  padding-top: 12px;
}

.comments-section .form-container label {
  color: #5d5d5d;
  display: flex;
  flex-direction: column;
  font-size: 10pt;
}

.comments-section .form-container label:not(:first-of-type) {
  margin-top: 24px;
}

.comments-section .form-container label input, 
.comments-section .form-container label textarea {
  font-size: 12pt;
  margin-top: 8px;
}

.comments-section input, textarea { 
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  padding: 12px;
  resize: none;
}

.comments-section input:focus, textarea:focus {
  border-color: #8d5c57;
}

.comments-section button {
  background-color: #fff;
  border: 1px solid #8d5c57;
  box-sizing: border-box;
  border-radius: 4px;
  color: #8d5c57;
  cursor: pointer;
  font-size: 11pt;
  margin-top: 18px;
  outline: none;
  padding: 12px 18px;
}

.comments-section button:active {
  background-color: #f9f9f9;
}

@media screen and (max-width: 1023px) {

  header .header-wrapper .menu {
    display: block;
  }
}

@media screen and (max-width: 767px) {

  header .header-wrapper .menu {
    display: block;
  }

  header .header-wrapper h1 {
    font-size: 14pt;
  }

  main {
    padding-top: 6px;
  }

  h2 {
    font-size: 1.5rem;
    text-align: left;
  }

  p {
    text-indent: 0;
  }

  .author,
  time {
    text-align: left;
  }

  .comments-section .comments {
    padding: 12px;
  }
}

@media screen and (max-width: 399px) {
  header .header-wrapper .logo {
    display: none;
  }
}