/* korynbid — dark theme
   Palette: ink #212833 · slate #3a404b · taupe #988d7d · sand #e0d3b9 */
:root {
  --ink: #212833;
  --slate: #3a404b;
  --taupe: #988d7d;
  --sand: #e0d3b9;
  color-scheme: dark;
}

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

body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--sand);
  background-color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure {
  margin-bottom: 15px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 300; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { margin-left: 30px; }

a { color: var(--sand); text-decoration: none; }
a:visited { color: var(--sand); }
a:hover { color: var(--taupe); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

.wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 30px;
}
.wrapper::after { content: ""; display: table; clear: both; }
@media (max-width: 800px) {
  .wrapper { padding: 0 15px; }
}

/* Header */
.site-header {
  background: var(--slate);
  border-bottom: 1px solid var(--taupe);
  min-height: 56px;
}
.site-title {
  float: left;
  font-size: 26px;
  line-height: 56px;
  letter-spacing: -1px;
  margin: 0;
}
.site-nav { float: right; line-height: 56px; }
.site-nav .page-link { line-height: 1.5; }

/* Content */
.page-content { flex: 1; padding: 40px 0; }

.post-header { margin-bottom: 30px; }
.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1.1;
}
@media (max-width: 800px) { .post-title { font-size: 36px; } }
.post-meta { font-size: 14px; color: var(--taupe); }
.post-content { margin-bottom: 30px; }

/* Code */
pre, code {
  font-size: 15px;
  border: 1px solid var(--slate);
  border-radius: 3px;
  background-color: var(--slate);
}
code { padding: 1px 5px; }
pre { padding: 8px 12px; overflow-x: auto; }
pre > code { border: 0; padding: 0; }

blockquote {
  color: var(--taupe);
  border-left: 4px solid var(--slate);
  padding-left: 15px;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--slate);
  border-top: 1px solid var(--taupe);
  padding: 24px 0;
  font-size: 15px;
  color: var(--taupe);
}
.site-footer .text { margin: 0; }

/* Index: search + categories */
[hidden] { display: none !important; }
.search-box {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 30px;
  font: inherit;
  color: var(--sand);
  background: var(--slate);
  border: 1px solid var(--taupe);
  border-radius: 3px;
}
.search-box::placeholder { color: var(--taupe); }
.search-box:focus-visible { outline: 2px solid var(--taupe); outline-offset: 2px; }
.category { margin-bottom: 30px; }
.category h2 {
  font-size: 22px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--slate);
}
.post-list { list-style: none; margin: 0; }
.post-item { display: flex; justify-content: space-between; gap: 15px; padding: 4px 0; margin: 0; }
.post-item .post-meta { white-space: nowrap; }
.empty { color: var(--taupe); }
.post-content h2, .post-content h3 { margin-top: 24px; }
.post-content img { display: block; margin: 15px 0; }

/* Article footer notice */
.post-notice {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid var(--slate);
  font-size: 14px;
  color: var(--taupe);
}
.post-notice a { text-decoration: underline; }
.post-meta a { text-decoration: underline; }

/* Comments */
.comments { margin-top: 30px; }
