:root {
  --text: #1f2328;
  --muted: #656d76;
  --link: #0b5cad;
  --border: #d8dee4;
  --code-bg: #f6f8fa;
  --max-width: 46rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--text);
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration-thickness: 0.16em;
}

/* Homepage chrome */

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

.site-header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

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

.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: 0;
}

.post-list a {
  font-weight: 600;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list time {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

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

/* Asciidoctor HTML5 output */

#header h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  line-height: 1.2;
}

#header .details {
  color: var(--muted);
  font-size: 0.95rem;
}

#content {
  margin-top: 1.5rem;
}

h2,
h3,
h4 {
  margin: 2rem 0 0.6rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

li {
  margin: 0.25rem 0;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  border-left: 4px solid var(--border);
  color: var(--muted);
}

pre {
  margin: 1rem 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 1.45;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

:not(pre) > code {
  padding: 0.15em 0.35em;
  background: var(--code-bg);
  border-radius: 4px;
}

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

table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

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

th {
  background: var(--code-bg);
}

hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.admonitionblock {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--link);
  background: var(--code-bg);
}

.admonitionblock td.content {
  padding: 0;
}

.listingblock .title,
.imageblock .title {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

#footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 34rem) {
  body {
    padding-top: 1.5rem;
  }

  .post-list li {
    display: block;
  }

  .post-list time {
    display: block;
    margin-top: 0.15rem;
  }
}
