/* makedist-minimal — clean technical */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #fff;
  --text: #111;
  --muted: #777;
  --link: #0060b0;
  --link-hover: #004080;
  --code-bg: #f6f6f6;
  --border: #eee;
  --max-width: 680px;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #b0cfe0;
  text-underline-offset: 2px;
}

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

p { margin: 0 0 1.25rem; }

/* ===== Site header ===== */
.site-header {
  padding: 3rem 0 0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-title:visited { color: var(--text); }
.site-title:hover { text-decoration: none; }

.site-nav {
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
}

.site-nav a:visited { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav .sep { color: #ddd; margin: 0 0.5rem; }

/* ===== Divider ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ===== Homepage ===== */
.bio {
  margin: 1.5rem 0 0;
}

.bio p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.social-links {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  text-transform: lowercase;
}

.social-links a:visited { color: var(--muted); }
.social-links a:hover { color: var(--text); }
.social-links .sep { color: #ddd; margin: 0 0.4rem; }

.section-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--link);
}

.all-posts-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.all-posts-link:visited { color: var(--muted); }
.all-posts-link:hover { color: var(--text); }

/* ===== Post list ===== */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  gap: 1.5rem;
}

.post-list-item a {
  color: var(--text);
  text-decoration: none;
}

.post-list-item a:visited { color: var(--text); }
.post-list-item a:hover { text-decoration: underline; text-decoration-color: #ccc; }

.post-list-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Page title ===== */
.page-title {
  margin: 0 0 1.5rem;
}

/* ===== Single post ===== */
.post-header {
  margin-bottom: 2.5rem;
}

.post-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* ===== Featured image ===== */
.post-feature {
  margin: 0 0 2rem;
}

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

.post-feature figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== Post content ===== */
.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
}

.post-content blockquote,
.post-content blockquote.quote {
  border-left: 2px solid var(--border);
  margin: 1.25rem 0;
  padding: 0.1rem 1rem;
  color: var(--muted);
}

.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.post-content li { margin-bottom: 0.25rem; }

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ===== Code ===== */
.post-content code,
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.post-content pre,
pre {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 4px;
  line-height: 1.55;
}

.post-content pre code,
pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

.highlight { margin: 1.25rem 0; }
.highlight pre { margin: 0; }

/* ===== Tables ===== */
.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-content th {
  background: var(--code-bg);
  font-weight: 600;
}

/* ===== Info box ===== */
.alert.alert-info {
  background: var(--code-bg);
  border-left: 2px solid var(--muted);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  border-radius: 3px;
  font-size: 0.9rem;
}

.alert.alert-info p:last-child { margin-bottom: 0; }

/* ===== Tags footer ===== */
.post-tags-footer {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-tags-footer a {
  color: var(--muted);
  text-decoration: none;
}

.post-tags-footer a:visited { color: var(--muted); }
.post-tags-footer a:hover { color: var(--text); }
.post-tags-footer .sep { color: #ddd; margin: 0 0.25rem; }

/* ===== Post nav ===== */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.post-nav-prev,
.post-nav-next { max-width: 45%; }

.post-nav a { color: var(--muted); text-decoration: none; }
.post-nav a:visited { color: var(--muted); }
.post-nav a:hover { color: var(--text); }
.post-nav-next { text-align: right; margin-left: auto; }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.pagination a { color: var(--muted); text-decoration: none; padding: 0.25rem 0.5rem; }
.pagination a:visited { color: var(--muted); }
.pagination a:hover { color: var(--text); }
.pagination .active { color: var(--text); font-weight: 600; }

/* ===== Publications ===== */
.publications-list { list-style: none; padding: 0; margin: 0; }

.publication { margin-bottom: 1.25rem; }
.pub-title { font-weight: 600; }
.pub-title a { color: var(--text); }
.pub-title a:visited { color: var(--text); }
.pub-title a:hover { text-decoration-color: var(--text); }
.pub-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.1rem; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  color: #ccc;
  font-size: 0.8rem;
  padding: 1.5rem 0 3rem;
}

/* ===== Responsive embeds ===== */
.post-content iframe { max-width: 100%; }

/* ===== Chroma — neutral light ===== */
.chroma { color: var(--text); background: var(--code-bg); }
.chroma .err { color: #c00; }
.chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr { color: #708; font-weight: 600; }
.chroma .kt { color: #708; }
.chroma .s, .chroma .sa, .chroma .sb, .chroma .sc, .chroma .dl, .chroma .sd, .chroma .s2,
.chroma .se, .chroma .sh, .chroma .si, .chroma .sx, .chroma .sr, .chroma .s1, .chroma .ss { color: #a31515; }
.chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs, .chroma .cp, .chroma .cpf { color: #998; font-style: italic; }
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: #164; }
.chroma .na { color: #008080; }
.chroma .nb { color: #008080; }
.chroma .nc { color: #458; font-weight: 600; }
.chroma .nf, .chroma .fm { color: #900; }
.chroma .nn { color: #458; }
.chroma .o, .chroma .ow { color: #708; }
.chroma .p { color: var(--text); }
.chroma .gd { color: #c00; background: #fee; }
.chroma .gi { color: #0a0; background: #efe; }
.chroma .ge { font-style: italic; }
.chroma .gs { font-weight: 600; }
.chroma .ln, .chroma .lnt { color: #aaa; margin-right: 0.5em; }
.chroma .hl { background: rgba(0,0,0,0.04); display: block; }
