/* Personal blog — plain, minima-style (like geohot.github.io/blog) */

:root {
  --text: #111;
  --bg: #fdfdfd;
  --muted: #828282;
  --line: #e8e8e8;
  --link: #2a7ae2;
  --link-visited: #1756a9;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", monospace;
}

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

body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure { margin: 0 0 15px; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { margin-left: 30px; padding: 0; }
li > ul, li > ol { margin-bottom: 0; }

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

blockquote {
  color: var(--muted);
  border-left: 4px solid var(--line);
  padding-left: 15px;
  font-size: 18px;
  font-style: italic;
}
blockquote > :last-child { margin-bottom: 0; }

code, pre {
  font-family: var(--mono);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #eef;
}
code { padding: 1px 5px; }
pre { padding: 8px 12px; overflow-x: auto; }
pre > code { border: 0; padding: 0; background: none; }

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

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.site-header {
  border-top: 5px solid #424242;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
}
.site-header .wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}
.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
}
.site-title, .site-title:visited { color: #424242; }
.site-nav { line-height: 54px; }
.page-link, .page-link:visited { color: var(--text); }

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

.post-list-heading { font-size: 28px; }
.post-list { margin-left: 0; list-style: none; }
.post-list > li { margin-bottom: 30px; }
.post-list h3 { margin-bottom: 0; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-link { display: block; font-size: 24px; }

.post-header { margin-bottom: 30px; }
.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 5px;
}
.post-content { margin-bottom: 30px; }
.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 26px; }
.post-content h4 { font-size: 20px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .wrapper { padding: 0 15px; }
  .post-title { font-size: 34px; }
  .post-link { font-size: 20px; }
  .post-content h2 { font-size: 26px; }
}
