:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #686868;
  --line: #e6e6e6;
  --link: #0b5cad;
  --code-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

.site-header,
.page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

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

.site-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.page {
  padding: 34px 0 72px;
}

.intro p {
  margin: 0 0 44px;
  color: var(--muted);
  font-size: 22px;
}

.posts h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.post-preview {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.post-preview h2 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.3;
}

.post-preview time,
.post-header time {
  color: var(--muted);
  font-size: 15px;
}

.post-header {
  margin-bottom: 42px;
}

.post-header h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.12;
}

.post h1,
.post h2,
.post h3 {
  margin-top: 2.1em;
  line-height: 1.25;
}

.post h1 {
  font-size: 30px;
}

.post h2 {
  font-size: 24px;
}

.post p,
.post ul,
.post ol,
.post table {
  margin: 1.1em 0;
}

.post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border: 1px solid var(--line);
}

code {
  padding: 0.1em 0.25em;
  border-radius: 4px;
  background: var(--code-bg);
  font-size: 0.9em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f8f8f8;
}

sup {
  line-height: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .post-header h1 {
    font-size: 34px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
