:root {
  --black: #232323;
  --white: #ffffff;
  --dark-gray: #8695a4;
  --gray: #efefef;
  --primary-color: #ff6464;
  --secondary-color: #00a8cc;
  font-size: 10px;
}

html,
body {
  font-family: "EB Garamond", serif;
}

body {
  padding: 0;
  max-width: 768px;
  margin: 0 auto;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

body > header,
body > main,
body > footer {
  margin: 0 25px;
}

body > header {
  grid-area: header;
}

body > header .title a:link,
body > header .title a:hover,
body > header .title a:active,
body > header .title a:visited {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 0;
  text-decoration: none;
  color: var(--black);
  font-family: Helvetica, sans-serif;
}

body > header .title a img {
  width: 45px;
  height: auto;
  margin-right: 10px;
}

body > header .title a h1 {
  font-size: 2.4rem;
}

body > header h2 {
  font-family: Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 100;
  text-align: center;
  margin-top: 10px;
}

body > header .search {
  margin-top: 30px;
  max-width: 400px;
  margin: 40px auto 0;
}

body > header .search input {
  border: 1px solid var(--dark-gray);
  border-radius: 25px;
  width: 100%;
  padding: 10px 15px;
  font-family: Helvetica, sans-serif;
  font-size: 1.8rem;
  color: var(--black);
}

body > header .search input::placeholder {
  font-weight: 100;
  color: var(--dark-gray);
}

body > header .search #search-results {
  padding: 0;
}

body > header .search #search-results li {
  list-style: none;
  margin: 10px 0;
  padding: 10px 15px;
  font-family: Helvetica, sans-serif;
  font-size: 1.8rem;
  border: 1px solid var(--gray);
}

body > header .search #search-results a:link,
body > header .search #search-results a:hover,
body > header .search #search-results a:active,
body > header .search #search-results a:visited {
  color: var(--secondary-color);
  text-decoration: none;
}

body > header .search #search-results a:hover li {
  text-decoration: none;
  background-color: var(--gray);
}

body > main {
  grid-area: main;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body > main .post {
  border-bottom: 1px solid var(--gray);
  padding: 30px 0;
}

body > main .post:first-child {
  padding-top: 0;
}

body > main .post:last-child {
  border-bottom: none;
}

body > main .post .post-header h3 {
  font-size: 2.2rem;
}

body > main .post .post-header h3 a:link,
body > main .post .post-header h3 a:visited,
body > main .post .post-header h3 a:hover,
body > main .post .post-header h3 a:active {
  color: var(--black);
  text-decoration: none;
}

body > main .post .post-header h3 a:hover {
  color: var(--secondary-color);
}

body > main .post .post-header span {
  font-size: 2rem;
  font-style: italic;
  display: block;
  margin-top: 10px;
}

body > main .post p {
  font-size: 2rem;
  margin-top: 20px;
  line-height: 3.5rem;
}

body > main .post > span {
  display: block;
  margin-top: 20px;
  text-align: right;
}

body > main .post span a:link,
body > main .post span a:hover,
body > main .post span a:active,
body > main .post span a:visited {
  font-size: 2rem;
  color: var(--secondary-color);
}

body > main .post span a:hover {
  text-decoration: none;
}

body > main article h3 {
  font-size: 2.2rem;
}

body > main article .date,
body > main article .author {
  font-size: 2rem;
  display: block;
  margin-top: 10px;
}

body > main article .date {
  font-style: italic;
}

body > main article .post-body p {
  font-size: 2rem;
  margin-top: 20px;
}

body > main article .post-body p:first-child {
  margin-top: 40px;
}

body > main article .post-author {
  margin-top: 40px;
  padding-top: 40px;
  font-size: 2rem;
  border-top: 1px solid var(--gray);
}

body > main article .post-author .author-bio img {
  width: 100px;
  height: auto;
  margin-top: 20px;
}

body > main article .post-author .author-bio p,
body > main article .post-author .author-bio a {
  display: block;
  margin-top: 20px;
}

body > main article .post-author .author-bio a:link,
body > main article .post-author .author-bio a:visited,
body > main article .post-author .author-bio a:hover,
body > main article .post-author .author-bio a:active {
  color: var(--secondary-color);
  text-decoration: underline;
  text-align: left;
  margin-top: 15px;
}

body > main article .post-author .author-bio a:hover {
  text-decoration: none;
}

body > main article a:link,
body > main article a:visited,
body > main article a:hover,
body > main article a:active {
  display: block;
  text-align: center;
  margin: 70px auto 0;
  color: var(--secondary-color);
  font-size: 1.8rem;
  text-decoration: underline;
}

body > main article a:hover {
  text-decoration: none;
}

body > main article a.hidden {
  margin: 0;
}

body > main .paginator {
  list-style: none;
  display: block;
  padding: 0;
  font-size: 2rem;
  max-width: 300px;
  margin: 50px auto 0;
}

body > main .paginator li {
  display: inline;
  margin-right: 20px;
}

body > main .paginator li:last-child {
  margin-right: 0;
}

body > main .paginator li a:link,
body > main .paginator li a:active,
body > main .paginator li a:hover,
body > main .paginator li a:visited {
  color: var(--secondary-color);
  text-decoration: underline;
}

body > main .paginator li a:hover {
  text-decoration: none;
}

body > main .paginator li.disabled-link {
  color: var(--dark-gray);
}

body > main .not-found {
  text-align: center;
}

body > main .not-found h1 {
  font-size: 2.2rem;
}

body > main .not-found p {
  font-size: 2rem;
  margin-top: 50px;
}

body > main .not-found p span {
  display: block;
  font-size: 1.8rem;
  margin-top: 10px;
  font-style: italic;
}

body > main .not-found a:link,
body > main .not-found a:visited,
body > main .not-found a:hover,
body > main .not-found a:active {
  display: inline-block;
  margin-top: 50px;
  color: var(--secondary-color);
  font-size: 1.8rem;
  text-decoration: underline;
}

body > main .not-found a:hover {
  text-decoration: none;
}

body > footer {
  grid-area: footer;
}

body > footer span {
  display: block;
  margin-top: 50px;
  padding: 50px 0;
  border-top: 1px solid var(--gray);
  text-align: center;
  font-size: 1.6rem;
}

body > p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

@media only screen and (min-width: 769px) {
  body > header .title a h1 {
    font-size: 3rem;
  }

  body > header h2 {
    font-size: 2rem;
  }

  body > header .search input {
    font-size: 2rem;
  }

  body > header .search #search-results li {
    font-size: 2rem;
  }

  body > main {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  body > main .post .post-header h3,
  body > main article h3 {
    font-size: 2.4rem;
  }

  body > main .post .post-header span,
  body > main .post p,
  body > main .post span a:link,
  body > main .post span a:hover,
  body > main .post span a:active,
  body > main .post span a:visited,
  body > main article .date,
  body > main article .author,
  body > main article .post-body p,
  body > main article .post-author,
  body > main article a:link,
  body > main article a:visited,
  body > main article a:hover,
  body > main article a:active,
  body > main .paginator {
    font-size: 2.2rem;
  }

  body > main article .post-author .author-bio {
    display: flex;
  }

  body > main article .post-author .author-bio .author-bio-img {
    flex: 0.25;
  }

  body > main article .post-author .author-bio .author-bio-img img {
    width: 150px;
    height: auto;
  }

  body > main article .post-author .author-bio .author-bio-text {
    flex: 0.75;
  }
}
