h1,
h2,
h3 {
  line-height: 1.35;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
}

article > h1 {
  font-size: 1.875rem;
}

h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.content h1 {
  font-size: 1.35rem;
}

.content h2 {
  font-size: 1.15rem;
  letter-spacing: normal;
}

.content h3 {
  font-size: 1rem;
}

p,
li {
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.back-link {
  margin-top: 6rem;
  font-size: 0.9em;
}

.back-link a {
  color: var(--muted);
  text-decoration-thickness: 0.06em;
}

.back-link a:hover {
  color: var(--link);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.post-index-section + .post-index-section {
  margin-top: 3.25rem;
}

.post-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.post-entry {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.post-entry a {
  color: var(--link-entry);
  font-size: 1.08rem;
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, var(--link-entry) 45%, transparent);
}

.post-entry a:hover {
  color: var(--link-entry-hover);
}

.post-entry time,
.post-meta {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
}

.post-entry p {
  margin: 0.8rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.blog-divider {
  width: 9rem;
  margin: 4rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.content {
  margin-top: 2.3rem;
}

.content h1,
.content h2,
.content h3 {
  margin-top: 2.5rem;
}

.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
}

.content pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.content code {
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.15em 0.35em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.content pre code {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.92em;
}

.content blockquote {
  margin: 1.75rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.content blockquote > :first-child {
  margin-top: 0;
}

.content blockquote > :last-child {
  margin-bottom: 0;
}

.content .message {
  margin: 1.75rem 0;
  padding: 1rem 1.1rem;
  background: var(--message-bg);
  border-radius: 6px;
  line-height: 1.8;
}

.content .message > :first-child {
  margin-top: 0;
}

.content .message > :last-child {
  margin-bottom: 0;
}

.footnotes {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9em;
}

.footnotes ol {
  padding-left: 1.5rem;
}

[data-footnote-ref] {
  margin-left: 0.25em;
  color: var(--footnote-link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

[data-footnote-ref]:hover {
  color: var(--footnote-link-hover);
}

[data-footnote-backref] {
  color: var(--footnote-link);
}

@media (max-width: 640px) {
  .post-entry a {
    font-size: 1rem;
  }
}
