
/* Comfortable, readable typography */
html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Paragraphs */
p {
  line-height: 1.8;
  margin-block: 1.1em;
}

/* Clear hierarchy */
h1, h2, h3, h4 {
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* Keep smaller text comfortable */
small, figcaption {
  line-height: 1.6;
}

/* Code should remain easy to distinguish */
pre, code {
  font-size: 0.9em;
}

/* Avoid oversized text on small screens */
@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  body {
    line-height: 1.75;
  }
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color, #888);
}

.post-navigation__previous,
.post-navigation__next {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 48%;
}

.post-navigation__next {
  margin-left: auto;
  text-align: right;
}

.post-navigation a {
  overflow-wrap: anywhere;
  text-decoration: none;
}

.post-navigation a:hover {
  text-decoration: underline;
}

.post-navigation span {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .post-navigation {
    gap: 1rem;
  }
}
