/* I, Humanoid — Cringely-inspired classic blog */
:root {
  --ink: #291c1c;
  --muted: #5a4a4a;
  --rule: #d8d0d0;
  --link: #1a6aa0;
  --link-hover: #0d4d78;
  --nav: #333;
  --accent: #7a1f1f;
  --page: #fff;
  --sidebar-w: 250px;
  --main-w: 640px;
  --wrap: 960px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 1em; }

.wrap {
  width: var(--wrap);
  max-width: 96vw;
  margin: 0 auto;
}

/* Header banner */
.masthead {
  padding: 18px 0 8px;
  text-align: center;
}
.masthead img.banner {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 22px;
  padding: 14px 0 18px;
  font-family: "Arial Black", "Arial Bold", Impact, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--nav);
  border-bottom: 0;
}
.nav a {
  color: #a31717;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Layout */
.layout {
  display: flex;
  gap: 36px;
  padding: 8px 0 60px;
  align-items: flex-start;
}
.main { flex: 1 1 var(--main-w); min-width: 0; }
.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  font-size: 14.5px;
  padding-top: 10px;
}

/* Posts */
.post { margin: 0 0 28px; padding: 0 0 8px; }
.post h2, .article h1 {
  font-family: "Arial Black", "Arial Bold", Impact, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 18px 0 14px;
  color: #333;
}
.post h2 a { color: #111; }
.post h2 a:hover { color: var(--link); }
.dek {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 16px;
  color: #333;
  margin: -6px 0 14px;
}
.post-body, .excerpt {
  font-size: 15px;
  color: var(--ink);
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 8px 0 6px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #666;
}
.meta a { color: var(--link); }
.meta a:hover { text-decoration: underline; }
.meta .cats a { color: var(--link); }
.read-more { white-space: nowrap; color: var(--link); }
.read-more:hover { text-decoration: underline; }
.comments-link { color: #555; font-size: 12.5px; }

/* Article extras */
.pager {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  margin: 4px 0 8px;
  font-size: 13px;
}
.pager a { color: var(--link); }

/* Sidebar */
.widget { margin: 0 0 22px; }
.widget h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #222;
}
.widget p { margin: 0 0 0.5em; }
.widget a { color: var(--link); }
.widget a:hover { text-decoration: underline; }
.promo-title {
  font-size: 17px;
  color: var(--link);
  line-height: 1.3;
  margin: 0 0 6px;
}
.promo-title a { color: var(--link); }
.weblamb-mark {
  font-family: "Arial Black", "Arial Bold", Impact, sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #888;
  margin: 10px 0 4px;
}
.aside-note { color: #333; font-size: 14px; line-height: 1.4; }

input[type="email"],
input[type="text"],
input[type="search"],
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 4px 6px;
  border: 1px solid #999;
  width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
button, .btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  padding: 4px 10px;
  background: #f3f3f3;
  border: 1px solid #999;
  cursor: pointer;
}
button:hover, .btn:hover { background: #e8e8e8; }
.subscribe-row { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

select {
  font-size: 13px;
  padding: 3px;
  width: 100%;
}

.tagcloud { line-height: 1.7; }
.tagcloud a { color: var(--link); margin-right: 6px; }
.tag-lg { font-size: 22px; }
.tag-md { font-size: 16px; }
.tag-sm { font-size: 12px; }

.donate {
  display: inline-block;
  background: #f5c400;
  color: #222 !important;
  font-weight: 700;
  border-radius: 16px;
  padding: 7px 22px;
  border: 1px solid #d4a800;
  text-decoration: none !important;
}
.donate:hover { background: #ffd21f; }
.cards { margin-top: 8px; font-size: 11px; letter-spacing: 1px; color: #666; }

/* Comments */
.comments { margin-top: 36px; }
.comments h3 {
  font-family: "Arial Black", "Arial Bold", Impact, sans-serif;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 16px;
}
.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: #d5d5d5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar svg { width: 36px; height: 36px; fill: #f4f4f4; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: 13px; margin-bottom: 4px; }
.comment-meta .who { color: var(--link); font-weight: 700; }
.comment-meta .when { color: #777; }
.comment-meta .reply-btn {
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  cursor: pointer;
}
.comment-text { font-size: 14.5px; }
.comment-form {
  margin-top: 28px;
  padding-top: 8px;
}
.comment-form h3 {
  font-family: "Arial Black", "Arial Bold", Impact, sans-serif;
  font-weight: 400;
  font-size: 26px;
}
.comment-form label {
  display: block;
  font-size: 13px;
  margin: 10px 0 3px;
}
.form-row { max-width: 420px; }
.hp { position: absolute; left: -9999px; }

.page-title {
  font-family: "Arial Black", "Arial Bold", Impact, sans-serif;
  font-weight: 400;
  font-size: 32px;
  margin: 18px 0 14px;
}

.footer {
  border-top: 1px solid var(--rule);
  padding: 18px 0 40px;
  font-size: 12px;
  color: #777;
  text-align: center;
}

.empty { color: #666; font-style: italic; padding: 20px 0; }

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex-basis: auto; }
  .post h2, .article h1, .page-title { font-size: 26px; }
}
