/* Minimal technical-blog style. No frameworks, no shadows, no gradients. */

* {
  box-sizing: border-box;
}

body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* Top nav */

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 2px solid #333;
  margin-bottom: 1.5rem;
  font-family: Helvetica, Arial, sans-serif;
}

.topnav .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topnav .brand img {
  display: block;
  height: 18px;
  width: auto;
  max-width: 100%;
}

.topnav .links a {
  margin-left: 1.25rem;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav .links a:first-child {
  margin-left: 0;
}

.topnav a:hover {
  text-decoration: underline;
}

/* Archive-style post table */

.post-table {
  width: 100%;
  border-collapse: collapse;
}

.post-table tr {
  border-bottom: 1px solid #e5e5e5;
}

.post-table td {
  padding: 0.6rem 0;
  vertical-align: top;
}

.post-table .date {
  width: 110px;
  color: #888;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  white-space: nowrap;
  padding-right: 1.25rem;
}

.post-table a {
  color: #1a4b8c;
  text-decoration: none;
}

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

/* Article page */

article h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

article .meta {
  color: #888;
  font-size: 0.9rem;
  font-family: Helvetica, Arial, sans-serif;
  margin-bottom: 0.5rem;
}

article .tags {
  margin-bottom: 2rem;
}

article .tags a {
  display: inline-block;
  font-size: 0.8rem;
  color: #555;
  background: #f0f0f0;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-decoration: none;
  margin-right: 0.35rem;
  font-family: Helvetica, Arial, sans-serif;
}

article h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}

article p {
  margin-bottom: 1.1rem;
}

article pre {
  background: #f6f6f6;
  border: 1px solid #e5e5e5;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  border-radius: 3px;
  line-height: 1.45;
}

article code {
  background: #f6f6f6;
  padding: 0.1rem 0.3rem;
  font-size: 0.9em;
  border-radius: 3px;
}

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

article img {
  max-width: 100%;
}

article blockquote {
  border-left: 3px solid #ccc;
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  color: #555;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: Helvetica, Arial, sans-serif;
}

.back-link:hover {
  text-decoration: underline;
}

/* Series navigation (prev/next part) */

.series-nav {
  display: flex;
  justify-content: space-between;
  margin: 2.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}

.series-nav a {
  color: #1a4b8c;
  text-decoration: none;
  max-width: 45%;
}

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

.series-nav .next {
  text-align: right;
}

/* Archives page grouped by year */

.archive-year {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Tag list page */

.tag-cloud a {
  display: inline-block;
  margin: 0.2rem 0.4rem 0.2rem 0;
  padding: 0.2rem 0.6rem;
  background: #f0f0f0;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}

.tag-cloud a:hover {
  background: #e0e0e0;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #999;
  font-size: 0.85rem;
  font-family: Helvetica, Arial, sans-serif;
}
