:root {
  color-scheme: light;
  --text: #1d1d1f;
  --muted: #626267;
  --line: #e5e5e8;
  --link: #005bbd;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
}

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.container {
  width: min(44rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
}

a {
  color: var(--link);
  text-underline-offset: .2em;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.site-name,
.post-list h2 a {
  color: inherit;
  text-decoration: none;
}

.site-name { font-weight: 650; }

.site-name:hover,
.post-list h2 a:hover {
  color: var(--link);
  text-decoration: underline;
}

main { padding-block: clamp(2.75rem, 8vw, 5.5rem) 4rem; }

h1 {
  margin: 0 0 1.65rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.post-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.post-list li {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

time {
  display: block;
  color: var(--muted);
  font-size: .875rem;
}

.post-list h2 {
  margin: .35rem 0 .3rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.35;
}

.post-list p {
  margin: 0;
  color: var(--muted);
}

article header time { margin-bottom: .65rem; }

article p {
  margin: 0 0 1.25em;
  font-size: 1.125rem;
  line-height: 1.85;
}

article pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f5f5f7;
}

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

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: .9375rem;
}
