/* smallmd default theme — web 1.0 forever */

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  margin: 0;
  padding: 0;
}

table {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
#header {
  padding: 1.5rem 0 0.5rem;
  border-bottom: 2px solid #111;
}

#header h1 {
  margin: 0;
  font-size: 1.6rem;
}

#header h1 a {
  text-decoration: none;
  color: #111;
}

#header h1 a:hover {
  text-decoration: underline;
}

#tagline {
  margin: 0.2rem 0 0;
  color: #555;
  font-style: italic;
  font-size: 0.9rem;
}

/* Nav */
#nav {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.85rem;
}

#nav a {
  color: #00c;
  text-decoration: none;
}

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

#nav a:visited {
  color: #551a8b;
}

/* Main content */
#main {
  padding: 1.5rem 0;
  min-height: 60vh;
}

article h2 {
  font-size: 1.4rem;
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

article h3 { font-size: 1.15rem; }
article h4 { font-size: 1rem; }

a           { color: #00c; }
a:visited   { color: #551a8b; }
a:hover     { text-decoration: underline; }

p { margin: 0.8rem 0; }

/* Code */
code, kbd {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88em;
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 0 3px;
}

pre {
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

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

/* Blockquote */
blockquote {
  border-left: 3px solid #aaa;
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  color: #444;
  font-style: italic;
}

/* Tables */
table.content-table {
  border-collapse: collapse;
  width: 100%;
}

table.content-table th,
table.content-table td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  text-align: left;
}

table.content-table th {
  background: #eee;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
}

/* Meta / dates */
.date { color: #666; }

/* HR */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0;
}

/* Footer */
#footer {
  padding: 0.5rem 0 1.5rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.8rem;
  color: #666;
}

#footer a       { color: #666; }
#footer a:hover { text-decoration: underline; }

/* Responsive: just make it readable on mobile, nothing fancy */
@media (max-width: 600px) {
  body { font-size: 15px; }
  table { padding: 0 0.75rem; }
}

/* Table of contents */
nav.toc {
  background: #f9f9f9;
  border: 1px solid #ddd;
  display: inline-block;
  min-width: 200px;
  padding: 0.6rem 1rem 0.8rem;
  margin: 0 0 1.5rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.85rem;
}

nav.toc::before {
  content: "Contents";
  display: block;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

nav.toc ul       { margin: 0; padding: 0; list-style: none; }
nav.toc ul ul    { padding-left: 1.2rem; }
nav.toc li       { margin: 0.2rem 0; }
nav.toc a        { color: #00c; text-decoration: none; }
nav.toc a:hover  { text-decoration: underline; }
