:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #29313a;
}

/* Base layout and links */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  line-height: 1.65;
}

a {
  color: #345b70;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #a64e3c;
}

.container {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

/* Site header and navigation */
.site-header,
.site-footer {
  background: #f1f2f4;
}

.site-header {
  border-bottom: 1px solid #e6e8eb;
}

.header-content {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  color: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  text-decoration: none;
}

/* Main content and typography */
main.container {
  min-height: calc(100vh - 9rem);
  padding-block: 3rem 4rem;
}

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

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.intro {
  max-width: 48rem;
  padding-block: 2rem 1rem;
}

.intro p {
  margin-bottom: 1.5rem;
  color: #59636d;
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1px solid #345b70;
  border-radius: 0.25rem;
  text-decoration: none;
}

/* Article listing and article pages */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.article-card {
  padding: 1.25rem;
  border: 1px solid #eceef0;
  border-radius: 0.35rem;
  background: #f8f8f9;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.article-post>header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

.article-meta {
  margin: 0 0 0.75rem;
  color: #69737d;
  font-size: 0.9rem;
}

.content {
  max-width: 48rem;
  margin-inline: auto;
}

.content>header {
  margin-bottom: 2rem;
}

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

.featured-image {
  display: block;
  margin: 0 auto 2rem;
}

.profile-photo {
  float: right;
  width: 40%;
  max-width: 180px;
  margin: 0 0 1.5rem 1.5rem;
  border-radius: 50%;
}

.content ul,
.content ol {
  margin: 0 0 1.25rem 0;
}

.content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #cbd2d8;
  color: #59636d;
}

.content iframe,
.content embed {
  max-width: 100%;
}

/* Site footer */
.site-footer {
  padding-block: 1.25rem;
  border-top: 1px solid #e6e8eb;
  color: #4b5560;
}

.site-footer p {
  margin: 0;
}

/* Narrow-screen layout */
@media (max-width: 36rem) {
  .header-content {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  main.container {
    padding-block: 2rem 3rem;
  }
}
