* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Space Mono', monospace;
  background: #fff;
  color: #111;
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.top-bar {
  padding: 10px 18px;
  border-bottom: 2px solid #111;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.logo { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.logo a { color: #111; }
.clock { font-size: 11px; color: #999; }

.body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 41px);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  border-right: 2px solid #111;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 41px;
  height: calc(100vh - 41px);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-block {}
.sidebar-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #aaa; margin-bottom: 8px; }

.sidebar a {
  display: block;
  font-size: 12px;
  color: #111;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}
.sidebar a:hover { border-bottom-color: #111; }
.sidebar a.active { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
}

.main-hero {
  border-bottom: 2px solid #111;
  padding: 28px 24px 20px;
}

.main-hero h1 {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 12px;
}

.main-hero p {
  font-size: 13px;
  max-width: 480px;
  color: #333;
  line-height: 1.8;
}

.main-hero p em {
  font-style: normal;
  background: #111;
  color: #fff;
  padding: 0 3px;
}

.main-hero p a { border-bottom: 1px solid #111; }

.entries { flex: 1; }

.entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
  color: #111;
}

.entry:hover { background: #f8f8f5; }

.entry-index {
  font-size: 10px;
  color: #bbb;
  padding: 16px;
  border-right: 1px solid #ddd;
  letter-spacing: 0.05em;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
}

.entry-body { padding: 14px 20px; }
.entry-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.entry-desc { font-size: 11px; color: #888; margin-bottom: 8px; line-height: 1.5; }
.entry-tag { display: inline-block; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid #ddd; padding: 1px 6px; color: #aaa; }
.entry-arrow { float: right; color: #ccc; font-size: 14px; margin-top: -1px; }
.entry:hover .entry-arrow { color: #111; }

@media (max-width: 600px) {
  .body { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 2px solid #111; position: static; height: auto; }
}