:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #626262;
  --rule: #e7e7e7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: 42px 22px 88px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New",
    monospace;
  place-items: center;
}

body.index {
  align-items: start;
  padding-top: max(42px, 10vh);
}

main {
  width: min(100%, 300px);
}

.post main {
  width: min(100%, 560px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font: 500 14px/1.2 "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    "Courier New", monospace;
  letter-spacing: 0;
  text-transform: lowercase;
}

ol {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry {
  display: grid;
  gap: 5px;
}

.title {
  font-size: 13px;
  line-height: 1.35;
}

.date,
.page-nav,
.back {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-transform: lowercase;
}

.post article {
  display: grid;
  gap: 18px;
}

.post h1 {
  font-size: 16px;
}

.post p {
  font-size: 13px;
  line-height: 1.7;
}

.post .date {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.page-nav,
.back {
  position: fixed;
  right: 24px;
  bottom: 22px;
}

.page-nav {
  display: grid;
  gap: 6px;
  justify-items: end;
}
