/* ============================================
   Sakla — Minimal academic/tech blog
   Unique CSS (anti-footprint)
   ============================================ */

html { font-size: 16px; }

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #2d2d2d;
  background: #f5f5f0;
}

a { color: #336699; }
a:hover { color: #114477; }

img { max-width: 100%; height: auto; display: block; }

/* Layout shell */
.frame {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top bar ---- */
.topbar {
  border-bottom: 2px solid #445566;
  padding: 20px 0 14px;
  margin-bottom: 0;
}
.topbar__name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2d2d;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.topbar__name:hover { color: #445566; text-decoration: none; }
.topbar__sub {
  font-size: 0.8rem;
  color: #778899;
  margin-top: 2px;
  font-style: italic;
}

/* ---- Navigation ---- */
.nav-strip {
  background: #445566;
  padding: 6px 0;
  margin-bottom: 30px;
}
.nav-strip a {
  color: #dce4e8;
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}
.nav-strip a:hover { color: #fff; }
.nav-strip .sep {
  color: #6b7b8b;
  margin: 0 10px;
  font-size: 0.7rem;
}

/* ---- Main content ---- */
.main-area {
  padding: 0 0 60px;
}

/* ---- Post list (homepage) ---- */
.item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px dashed #ccc;
}
.item:last-child { border-bottom: none; }
.item__title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
}
.item__title a { color: #2d2d2d; text-decoration: none; }
.item__title a:hover { color: #336699; }
.item__date {
  font-size: 0.75rem;
  color: #999;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 6px;
}
.item__excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}
.item__more {
  font-size: 0.78rem;
  font-family: 'Courier New', Courier, monospace;
  text-transform: lowercase;
}

/* ---- Single entry ---- */
.piece {
  margin-bottom: 40px;
}
.piece__heading {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.25;
  margin-bottom: 8px;
}
.piece__info {
  font-size: 0.78rem;
  color: #999;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
}
.piece__info span { margin-right: 14px; }

.piece__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}
.piece__text p { margin-bottom: 16px; }
.piece__text h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #445566;
  margin: 28px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px dotted #bbb;
}
.piece__text h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #556677;
  margin: 22px 0 8px;
}
.piece__text ul, .piece__text ol {
  margin: 0 0 16px 22px;
  font-size: 0.93rem;
}
.piece__text li { margin-bottom: 4px; }
.piece__text blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: #eeeee8;
  border-left: 3px solid #889944;
  font-style: italic;
  color: #555;
  font-size: 0.9rem;
}
.piece__text code {
  font-family: 'Courier New', Courier, monospace;
  background: #e8e8e0;
  padding: 1px 5px;
  font-size: 0.88rem;
  border-radius: 2px;
}
.piece__text pre {
  background: #2d2d2d;
  color: #e0e0d0;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 3px;
}
.piece__text pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Entry footer */
.piece__end {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px dashed #ccc;
  font-size: 0.8rem;
  color: #888;
}
.piece__tags { margin-bottom: 12px; }

/* Related */
.see-also {
  margin-top: 14px;
}
.see-also strong {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: #666;
}
.see-also ul { list-style: none; padding: 0; margin-top: 6px; }
.see-also li {
  padding: 3px 0;
  font-size: 0.85rem;
}
.see-also li::before {
  content: "→ ";
  color: #889944;
}

/* ---- Bottom bar ---- */
.bottom {
  border-top: 2px solid #445566;
  padding: 16px 0;
  text-align: center;
  font-size: 0.75rem;
  color: #999;
}
.bottom__bio {
  margin-top: 4px;
  font-style: italic;
  color: #aaa;
  font-size: 0.72rem;
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
  .topbar__name { font-size: 1.25rem; }
  .piece__heading { font-size: 1.2rem; }
  .item__title { font-size: 1rem; }
  .frame { padding: 0 16px; }
}
