:root {
  --bg: #0b0d0f;
  --panel: #14171a;
  --text: #e8e6e1;
  --muted: #8b8f94;
  --accent: #e8a951;
  --border: #23282c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-top .handle {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.clock {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  list-style: none;
  margin-top: 40px;
}

.nav-list li a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 13px;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.idx {
  color: var(--muted);
  margin-right: 8px;
}

.nav-list li a:hover .idx,
.nav-list li a.active .idx {
  color: var(--accent);
}

.sidebar-bottom {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Main content ---------- */

.content {
  margin-left: 220px;
  padding: 60px 60px 40px;
  max-width: 700px;
}

.section {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.section:last-of-type {
  border-bottom: none;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.subtitle {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: lowercase;
}

.comment {
  color: var(--accent);
  font-weight: 400;
  margin-right: 6px;
}

.entry {
  margin-bottom: 28px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.entry .meta {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 10px;
}

.entry p {
  color: var(--text);
  font-size: 13.5px;
}

p {
  color: var(--text);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 10px;
  font-size: 13.5px;
}

.contact-list .label {
  color: var(--muted);
  display: inline-block;
  width: 80px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.contact-list a:hover {
  border-bottom-color: var(--accent);
}

.footer {
  color: var(--muted);
  font-size: 11px;
  margin-top: -30px;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 0;
  }

  .sidebar-bottom {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 40px 24px;
  }
}