/*
Theme Name: Simple Blogpost Theme
Author: Anonymous
Description: Simple Blogpost Theme
Version: 1.3.0
*/

body {
  margin: 0;
  padding: 0;
  background: #f6f6f0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

p,
a {
  font-size: 1.15rem;
}

a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
  text-decoration-style: dashed;
}

a:active {
  text-decoration: none;
}

.site__content h2,
.site__content h3,
.site__content h4,
.site__content h5,
.site__content h6 {
  margin-top: 4rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

#container {
  width: 100%;
  max-width: 100%;
}

.site__header {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
  align-items: flex-end;
}

.site__header__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.site__header_links a {
  font-size: 1.2rem;
  font-weight: 500;
  margin-left: 8px;
}

.site__top {
  width: 100%;
  margin-bottom: 32px;
  padding: 0 16px;
}

.site__top img {
  max-width: 100%;
  min-width: 100%;
  border-radius: 4px;
}

.site__title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 56px;
}

.site__content {
  width: 80%;
  margin: 0 auto;
}

.all__posts {
  width: 100%;
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.all__posts h1,
.all__posts h2 {
  width: 100%;
}

.all__posts a {
  width: 33%;
  flex-grow: 1;
  border-radius: 4px;
  padding: 8px;
}

.post__container {
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0px 0px 10px rgb(0 0 0 / 10%);
}

.post__container h3 {
  margin-top: 16px;
  font-size: 1.3rem;
}

.post__container img {
  max-width: 100%;
  border-radius: 4px;
}

#footer {
  background: #2b2b2b;
  color: white;
  margin: 24px -15px;
  border-radius: 4px;
  padding: 32px;
}

#footer a {
  color: white;
}

#footer__posts ul {
  columns: 3;
  list-style: none;
  padding: 0;
}

#footer__posts ul li {
  margin-bottom: 8px;
}

#footer__posts,
#footer__links {
  margin-top: 24px;
}

#footer__posts h2,
#footer__links h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.footer__links__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1200px) {
  .all__posts a {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .all__posts a {
    width: 100%;
  }
}
