* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #292524;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  background: #173b63;
  color: #fff;
  flex: 0 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  text-align: left;
}

header > a {
  color: #ffe600;
  font-family: "Tiny5", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  margin-left: auto;
  text-align: right;
}

nav a {
  color: #fff;
  margin: 0 .5rem;
  text-decoration: none;
  font-weight: 600;
}

header.site-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-areas: "brand image navigation";
}

header.site-header > a {
  grid-area: brand;
}

header.site-header > .site-header-image {
  grid-area: image;
  display: block;
  width: 100%;
  min-width: 0;
  height: 3.25rem;
  object-fit: cover;
  object-position: center;
  border-radius: 9999px;
}

header.site-header > nav {
  grid-area: navigation;
  margin-left: 0;
}

@media (max-width: 48rem) {
  header.site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand navigation"
      "image image";
  }
}

@media (max-width: 30rem) {
  header.site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "navigation"
      "image";
  }

  header.site-header > nav {
    justify-self: start;
    text-align: left;
  }
}

main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 2rem max(1rem, calc(50% - 31rem));
}

section {
  margin-bottom: 2rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  overflow: hidden;
  border: 1px solid #d6d3d1;
  border-radius: .75rem;
  background: #fff;
}

.blog-card img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
}

.blog-card > div {
  padding: 1rem 1.25rem;
}

.article-image {
  display: block;
  width: min(100%, 52rem);
  margin: 1.5rem auto;
  border-radius: .75rem;
}

body.blog-monochrome img {
  filter: grayscale(1);
}

body.blog-monochrome .blog-card:nth-child(1) img {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(-35deg);
}

body.blog-monochrome .blog-card:nth-child(2) img {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(75deg);
}

body.blog-monochrome .blog-card:nth-child(3) img {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(205deg);
}

body.blog-red img {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(-35deg);
}

body.blog-green img {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(75deg);
}

body.blog-blue img {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(205deg);
}

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

footer {
  background: #173b63;
  color: #d1d5db;
  flex: 0 0 auto;
  padding: 1.25rem;
  text-align: center;
}