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

:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --accent: #021a40;
  --nav-bg: #222222;
  --nav-text: #dddddd;
  --nav-hover: #ffffff;
  --border: #dddddd;
  --max-width: 780px;
}

body {
  margin: 0;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* nav */
header {
  background: var(--nav-bg);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.site-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--nav-hover);
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: var(--nav-text);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 0.9rem;
}

nav ul a:hover { color: var(--nav-hover); }

/* main content */
main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

article { margin-bottom: 2.5rem; }

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: var(--accent);
  line-height: 1.3;
}

h1 { font-size: 1.8rem; margin-top: 0; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h2 a { color: var(--accent); text-decoration: none; }
h2 a:hover { text-decoration: underline; }

/* homepage post titles - larger than in-post subheaders */
.post-title {
  font-size: 1.7rem;
  margin-bottom: 0.15rem;
}

.post-summary {
  margin-bottom: 1rem;
}

.post-divider {
  margin: 2.5rem 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: sans-serif;
  margin-top: -0.5rem;
}

.meta a { color: var(--muted); }

.date-line {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: sans-serif;
  margin-top: 0.1rem;
  margin-bottom: 0.75rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

.post-list li {
  display: flex;
  gap: 1.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list .date {
  font-family: monospace;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.9rem;
  padding-top: 2px;
}

/* code */
pre {
  background: #f4f4f4;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

code {
  font-size: 0.9em;
  background: #f4f4f4;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

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

/* blockquote */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1.2rem;
  color: var(--muted);
  font-style: italic;
}

/* images */
img { max-width: 100%; height: auto; }

/* links */
a { color: var(--accent); }
a:hover { color: #0a3a7a; }

/* footer */
footer {
  max-width: var(--max-width);
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: sans-serif;
}

footer a { color: var(--muted); }

/* pagination */
.pagination {
  display: flex;
  gap: 1rem;
  font-family: sans-serif;
  font-size: 0.9rem;
}
