:root {
  font-family: system-ui, sans-serif;
  color: #171717;
  background: #fff;
  line-height: 1.6;
}

body {
  margin: 0;
}

main {
  box-sizing: border-box;
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

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

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
}

header p {
  max-width: 34rem;
  margin-block: 0.75rem 1rem;
  font-size: 1.125rem;
}

a {
  color: #164c9c;
  text-underline-offset: 0.17em;
}

a:hover {
  color: #0e3267;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  color: #24292e;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration-color: #8a919c;
}

.profile-links a:hover {
  color: #164c9c;
  text-decoration-color: currentColor;
}

.profile-links img {
  flex: none;
}

.section-links {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.home-content > h2,
footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.home-content > h2 + p {
  margin-top: 0.875rem;
}

.home-content > p:has(> a > img) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.home-content > p > a > img {
  display: block;
  width: 100%;
  height: auto;
}

:is(.home-content, details.home-more) > ul,
.post-list {
  display: grid;
  gap: 1rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}

:is(.home-content, details.home-more) > ul > li > h3 {
  margin: 0 0 0.25rem;
}

:is(.home-content, details.home-more) > ul > li > ul {
  margin: 0;
  padding-inline-start: 1.25rem;
}

:is(.home-content, details.home-more) > ul > li > ul li + li {
  margin-top: 0.25rem;
}

.home-more {
  margin-top: 1rem;
}

.more-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.35rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  color: #164c9c;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.more-button:hover {
  color: #0e3267;
  text-decoration: underline;
}

.more-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

summary.more-button::-webkit-details-marker {
  display: none;
}

.home-content li p,
.blog-empty,
.post-list time,
article > time,
figcaption,
footer {
  color: #525252;
}

blockquote {
  padding-inline-start: 0.875rem;
  border-inline-start: 2px solid #ddd;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.blog-nav {
  margin-bottom: 1.5rem;
}

.blog-empty,
.post-list,
.post-content {
  margin-top: 1.25rem;
}

.post-list time,
article > time {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

.post-content > * + * {
  margin-top: 1rem;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
}

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

.post-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.post-content :is(th, td) {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  text-align: start;
  vertical-align: top;
}
