:root {
  color-scheme: light dark;
  font-family: system-ui;
  font-size: 17px;
  line-height: 1.55;
  --muted: color-mix(in srgb, CanvasText 55%, Canvas);
}

body {
  width: min(760px, calc(100% - 84px));
  margin: 38px auto 48px;
}

a {
  text-decoration: none;
}

header {
  line-height: normal;
}

.page-title,
.site-name {
  margin: 0;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -.02em;
}

h2 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.posts h3,
.entries a {
  letter-spacing: -.015em;
}

.entries a {
  font-weight: 500;
}

.length,
.entries time,
.entries .number {
  color: var(--muted);
  font-size: 11px;
}

.group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
}

.group h2 {
  margin: 3px 0 0;
}

.year {
  display: block;
}

.posts,
.entries {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entries.stacked {
  display: grid;
  gap: 8px;
}

footer {
  display: flex;
  font-size: 14px;
}

.home-link a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.home-link a:hover {
  color: inherit;
}

.home-link span {
  line-height: 1;
  opacity: .8;
}

@media (max-width: 600px) {
  body {
    width: calc(100% - 52px);
  }

  .group {
    grid-template-columns: minmax(0, 1fr);
  }

  .group h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 80%;
    margin: 0;
  }

  main > .group:nth-child(3n + 2) h2 {
    width: 69%;
  }

  main > .group:nth-child(3n) h2 {
    width: 48%;
  }

  .year {
    display: inline;
    margin-left: .6em;
  }
}
