html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 640px;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: clamp(3.5rem, 14vh, 6.5rem) 1.5rem 3.5rem;
}

a,
a:visited {
  color: inherit;
  font-style: italic;
  text-decoration: underline;
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
}

h1 {
  margin: 0;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 4rem);
  line-height: 1.1;
  user-select: none;
}

.meta {
  margin-top: 0.75rem;
  font-style: italic;
  color: #555;
}

/* Post list */

.posts {
  margin: clamp(2.25rem, 6vh, 3.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.posts li {
  margin-bottom: 2rem;
}

.posts time {
  display: block;
  font-style: italic;
  color: #555;
}

.posts h2 {
  margin: 0.25rem 0;
  font-weight: 400;
  font-size: 1.5rem;
}

.posts p {
  margin: 0;
}

/* Post body */

article {
  margin-top: clamp(2.25rem, 6vh, 3.75rem);
  line-height: 1.7;
}

article h2,
article h3 {
  font-style: italic;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}

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

article blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 1px solid #000;
  font-style: italic;
}

article code {
  font-family: Menlo, Consolas, monospace;
  font-size: 0.9em;
}

article pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid #000;
}

article hr {
  border: none;
  border-top: 1px solid #000;
  margin: 2rem 0;
}
