:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #000000;
  --muted: #555555;
  --max-width: 650px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 72px auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 28px;
}

.intro {
  color: var(--muted);
}

.posts {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.posts li + li {
  margin-top: 10px;
}

.posts a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  text-decoration: none;
}

.posts a:hover .post-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-year,
time {
  color: var(--muted);
}

.post-title {
  min-width: 0;
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin-bottom: 6px;
}

.article-content {
  margin-top: 28px;
}

.article-content h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.article-content ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.article-content li + li {
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--muted);
}

.not-found p {
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  main {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 48px auto;
  }

  .posts a {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}
