@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf")
    format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf")
    format("truetype");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
}

h1,
h2,
h3 {
  font-weight: 700;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

nav {
  border-bottom: 1px solid #444;
  padding: 10px 0;
}

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

footer {
  padding: 50px 0;
  text-align: center;
}

/* Post list */
.post-list__item {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.post-list__title {
  margin: 0 0 6px;
}

.post-list__title a {
  color: inherit;
  text-decoration: none;
}

.post-list__title a:hover {
  text-decoration: underline;
}

.post-list__meta {
  margin: 0 0 10px;
  color: #666;
  font-size: 0.9em;
}

.post-list__description {
  margin: 0 0 10px;
}

.post-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: monospace;
  font-size: 1em;
  color: #009900;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 0;
  border-bottom: none;
}

.pagination__pages {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__pages a,
.pagination__pages span {
  display: inline-block;
  min-width: 2em;
  padding: 4px 6px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
}

.pagination__pages [aria-current="page"] {
  background: #444;
  border-color: #444;
  color: #fff;
}

.pagination__disabled {
  color: #aaa;
}

/* Single post */
.post__back {
  margin-top: 30px;
}

/* Two-column layout with tags sidebar on the right */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.with-sidebar__aside {
  position: sticky;
  top: 20px;
  padding: 20px 0;
}

.sidebar__title {
  margin: 0 0 12px;
  font-size: 1.1em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-cloud a {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1em;
  color: #009900;
  text-decoration: none;
}

.tag-cloud a:hover {
  border-color: #009900;
}

.tag-cloud a.is-active {
  background: #009900;
  border-color: #009900;
  color: #fff;
}

.tag-cloud__count {
  color: #888;
}

.tag-cloud a.is-active .tag-cloud__count {
  color: #e0f5e0;
}

.post-list__tags a {
  color: inherit;
  text-decoration: none;
}

.post-list__tags a:hover {
  text-decoration: underline;
}

.tag-heading {
  font-family: monospace;
  color: #009900;
}

@media (max-width: 800px) {
  .with-sidebar {
    grid-template-columns: 1fr;
  }

  .with-sidebar__aside {
    position: static;
    border-top: 1px solid #ddd;
  }
}
