* { box-sizing: border-box; }

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 18px;
  color: #222;
  background: #fff;
}

#wrapper {
  max-width: 1500px;
  margin: 0 auto;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

#site-header {
  background: #1a3e6e;
  color: #fff;
  padding: 1.5rem;
  border-bottom: 3px solid #0d2440;
}

#site-header .site-title {
  color: #fff;
  font-size: 3.2rem;
  font-weight: bold;
  text-decoration: none;
  font-family: "Courier Prime", "Courier New", monospace;
  letter-spacing: 0.02em;
  display: block;
}

#site-header .site-description {
  margin: 0.4rem 0 0;
  color: #cdd8e6;
  font-size: 0.95rem;
  font-family: "Courier Prime", "Courier New", monospace;
}

#tabs {
  background: #f0f2f5;
  border-bottom: 1px solid #ccc;
  padding: 0 1.5rem;
  display: flex;
}

#tabs a {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  color: #1a3e6e;
  text-decoration: none;
  font-weight: bold;
  border-right: 1px solid #ccc;
  font-size: 0.95rem;
}

#tabs a:hover {
  background: #e2e6eb;
  text-decoration: none;
}

#layout {
  display: flex;
  align-items: flex-start;
}

#sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #f0f2f5;
  border-right: 1px solid #ccc;
  padding: 1rem;
  min-height: 400px;
}

#sidebar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a3e6e;
  border-bottom: 1px solid #c3cad4;
  padding-bottom: 0.25rem;
  margin: 1rem 0 0.5rem;
}

#sidebar h3:first-child { margin-top: 0; }

#sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar li {
  padding: 0.2rem 0;
  border-bottom: 1px dotted #d5d9df;
}

#sidebar a {
  color: #0645ad;
  text-decoration: none;
  font-size: 0.85rem;
}

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

#content {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
}

.post-summary {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.post-summary h2 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.post-summary h2 a,
article h1 a {
  color: #0645ad;
  text-decoration: none;
}

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

.post-meta,
.post-date {
  color: #777;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

a { color: #0645ad; }
a:hover { text-decoration: underline; }

article h1 {
  font-size: 1.8rem;
  font-family: "Courier Prime", "Courier New", monospace;
  color: #1a3e6e;
  border-bottom: 2px solid #1a3e6e;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}

pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

code {
  background: #f0f0f0;
  padding: 0.1rem 0.3rem;
  font-size: 0.9em;
}

#site-footer {
  background: #f0f2f5;
  border-top: 1px solid #ccc;
  color: #888;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem;
}

@media (max-width: 600px) {
  #layout { flex-direction: column; }
  #sidebar { width: auto; border-right: none; border-bottom: 1px solid #ccc; }
}
