:root {
  --bg: #050607;
  --text: #d6d9df;
  --muted: #8e94a1;
  --line: #181b20;
  --link: #f4f5f6;
}

* {
  box-sizing: border-box;
}

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

body {
  background: radial-gradient(1200px 700px at 20% -10%, #11141a 0%, transparent 45%), var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.7;
}

.page {
  width: min(860px, 92vw);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

h1,
h2 {
  color: #f2f4f8;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.x-line,
p {
  margin: 0.7rem 0;
}

.x-line,
.muted {
  color: var(--muted);
}

a {
  color: var(--link);
  text-underline-offset: 0.17em;
  text-decoration-thickness: 0.08em;
}

.top a {
  font-weight: 500;
}

section {
  border-top: 1px solid var(--line);
  margin-top: 2.4rem;
  padding-top: 2.2rem;
}

.lead {
  max-width: 72ch;
}

.blog-list {
  padding-left: 1.1rem;
}

.blog-list li {
  margin: 0.5rem 0;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-nav {
  margin-bottom: 1.2rem;
}

.post-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.post-nav a:hover {
  color: var(--link);
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-date {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .page {
    padding-top: 2.6rem;
  }

  .top {
    align-items: center;
  }
}
