:root {
  --text: #111;
  --muted: #555;
  --link: #2a7ae2;
  --bg: #fff;
  --code-bg: #f6f8fa;
  --border: #e8e8e8;
  --max: 800px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

.wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header .wrapper {
  min-height: 3.5rem;
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header-home {
  grid-column: 1;
  justify-self: start;
  white-space: nowrap;
}

.site-brand {
  grid-column: 2;
  text-align: center;
  white-space: nowrap;
}

.site-nav-active {
  color: var(--text);
  cursor: default;
  font-weight: 700;
}

.site-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.4rem 0;
}

.search-page {
  margin-bottom: 2rem;
}

.search-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.search-input {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.search-status {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.4rem;
}

.post-title {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

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

.post-content pre,
.page-content pre {
  overflow: auto;
  padding: 1rem;
  background: var(--code-bg);
  border-radius: 4px;
}

.post-content code,
.page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.post-content :not(pre) > code,
.page-content :not(pre) > code {
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.post-content blockquote:not(.twitter-tweet),
.page-content blockquote:not(.twitter-tweet),
.home blockquote:not(.twitter-tweet) {
  margin: 1.25rem 0;
  padding: 0.65rem 1rem;
  border-left: 4px solid var(--link);
  background: var(--code-bg);
  color: var(--text);
}

.post-content blockquote:not(.twitter-tweet) > :first-child,
.page-content blockquote:not(.twitter-tweet) > :first-child,
.home blockquote:not(.twitter-tweet) > :first-child {
  margin-top: 0;
}

.post-content blockquote:not(.twitter-tweet) > :last-child,
.page-content blockquote:not(.twitter-tweet) > :last-child,
.home blockquote:not(.twitter-tweet) > :last-child {
  margin-bottom: 0;
}

.post-list-filter {
  margin: 0.25rem 0 0.5rem;
}

.post-list-filter .search-status {
  margin: 0.35rem 0 0;
  min-height: 0;
}

.post-list-filter .search-status:not([hidden]) {
  min-height: 1.2rem;
}

.post-list-filter .search-input {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list > li {
  margin: 8px 0 1.25rem;
}

.post-list h3 {
  margin: 0 0 0.125rem;
}

figcaption {
  text-align: center;
  margin-top: -15px;
  margin-bottom: 10px;
}

iframe {
  border-style: none;
  max-width: 100%;
}

.mb-0\.5,
.mb-0 {
  margin-bottom: 0.125rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mx-2 {
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.my-30 {
  margin-top: 30px;
  margin-bottom: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-grow {
  flex-grow: 1;
}

.text-center {
  text-align: center;
}

.fs-1 {
  font-size: 2.5rem;
}

.border {
  border: 1px solid black;
}

.del,
.hljs-deletion {
  background-color: rgba(255, 0, 0, 0.35);
}

.add,
.hljs-addition {
  background-color: rgba(0, 255, 0, 0.35);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
}
