/* Simple, readable styles for a personal site / technical blog */

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  color: #222;
  background: #fafafa;
  margin: 0;
}

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

header .site-name {
  font-size: 1.3em;
  font-weight: bold;
  margin: 0;
}

nav a {
  margin-right: 16px;
  color: #0b5394;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

h1 { font-size: 2em; line-height: 1.25; margin-bottom: 0.2em; }
h2 { margin-top: 2em; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
h3 { margin-top: 1.5em; }

.meta {
  color: #666;
  font-size: 0.95em;
  margin-top: 0;
}

.summary {
  background: #eef3f8;
  border-left: 4px solid #0b5394;
  padding: 10px 16px;
  margin: 1.5em 0;
}

code, pre {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.9em;
}

code {
  background: #eee;
  padding: 1px 4px;
  border-radius: 3px;
}

pre {
  background: #1e1e1e;
  color: #e6e6e6;
  padding: 14px;
  overflow-x: auto;
  border-radius: 4px;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
}

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

th, td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

th { background: #eee; }

td.hash {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.8em;
  word-break: break-all;
}

.warning {
  background: #fff4e5;
  border-left: 4px solid #e69138;
  padding: 10px 16px;
  margin: 1.5em 0;
}

footer {
  margin-top: 3em;
  padding-top: 12px;
  padding-bottom: 30px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9em;
}

/* ---- Index pages and post lists ---- */

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

.post-list li {
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.post-list a.post-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #0b5394;
  text-decoration: none;
}

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

.post-list .meta {
  margin: 2px 0 4px;
}

.post-list p {
  margin: 4px 0 0;
}

.tag {
  display: inline-block;
  background: #eef3f8;
  color: #0b5394;
  font-size: 0.8em;
  padding: 0 8px;
  border-radius: 10px;
  margin-right: 4px;
}

.hero {
  padding: 30px 0 10px;
}

.hero h1 {
  margin-bottom: 0;
}

.hero .tagline {
  font-size: 1.15em;
  color: #555;
  margin-top: 4px;
}

/* ---- Post body additions ---- */
article p, article li { overflow-wrap: break-word; }
.subtitle { font-size: 1.1em; font-weight: bold; color: #444; margin: 0 0 4px; }
article ol { padding-left: 2em; }
