:root {
  color-scheme: light;
  font-family: "Work Sans", sans-serif;
  color: #20242a;
  background: #fff;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #145b83;
}

a:hover,
a:focus-visible {
  color: #0b3c59;
}

.site-header {
  border-bottom: 1px solid #d9e0e5;
  background: #E2EEF8;
}

.header-inner,
.content,
.site-footer {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.site-title {
  color: inherit;
  font-family: "Newsreader", serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

nav,
.language-switch {
  display: flex;
  gap: 1rem;
}

nav a,
.language-switch a {
  font-family: "Newsreader", serif;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Newsreader", serif;
}

.language-switch {
  margin-left: auto;
  font-size: .9rem;
}

.content {
  min-height: 70vh;
  padding-block: 2rem 4rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.intro {
  margin-bottom: 3rem;
}

.year {
  margin-top: 2rem;
  border-bottom: 1px solid #e4e8eb;
  padding-bottom: .35rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  display: flex;
  gap: .65rem;
  margin-block: .6rem;
}

.post-list time,
.date {
  color: #59636c;
  white-space: nowrap;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-block: .25rem;
}

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

.article-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f3f5f6;
  border-radius: .35rem;
}

.article-content pre,
.article-content code,
.article-content kbd,
.article-content samp {
  font-family: "JetBrains Mono", monospace;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
}

.tags a {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 1rem;
  background: #edf2f5;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid #d9e0e5;
  padding-block: 1rem 2rem;
  color: #59636c;
  font-size: .9rem;
}

@media (max-width: 38rem) {
  .header-inner {
    padding-block: .75rem;
  }

  .language-switch {
    margin-left: 0;
  }

  .post-list li {
    display: block;
  }

  .post-list time {
    display: block;
    font-size: .9rem;
  }
}
