* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1.25rem 6rem;
  color: #111;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: #111;
}

a:hover {
  text-decoration: underline;
}

.back {
  display: inline-block;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  margin-bottom: 2rem;
}

.back:hover {
  color: #111;
  text-decoration: none;
}

/* Index: stream of cards */
.stream {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 4px;
}

.card:hover {
  background: #f7f7f7;
  text-decoration: none;
}

.card:hover .title {
  text-decoration: underline;
}

.thumb {
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: cover;
  background: #eee;
}

.thumb.placeholder {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 6px, #ececec 6px, #ececec 12px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.card .title {
  font-size: 14px;
}

.card .meta {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.card .date {
  font-size: 12px;
  color: #999;
}

.tag {
  font-size: 11px;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 0.3rem;
}

footer {
  margin-top: 4rem;
}

footer a {
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

footer a:hover {
  color: #111;
}

/* Login */
.gh-button {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem;
  border-radius: 8px;
}

.gh-button:hover {
  background: #333;
  text-decoration: none;
}

/* Post page */
.post-page {
  line-height: 1.7;
}

.post-page .date {
  font-size: 12px;
  color: #999;
}

.post-page h1 {
  font-size: 16px;
  font-weight: normal;
  margin: 0.2rem 0 1.5rem;
}

.post-page p {
  margin-bottom: 1rem;
  font-size: 14px;
}
