@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg:    #0c0c0c;
  --fg:    #c9d1d9;
  --mid:   rgba(201,209,217,0.45);
  --low:   rgba(201,209,217,0.18);
  --line:  rgba(201,209,217,0.07);
  --accent: #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  animation: fade 0.35s ease both;
}

@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

a { color: inherit; text-decoration: none; }

.w {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ── nav ── */
nav {
  padding: 2.5rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-size: 12.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  opacity: 0.85;
  animation: blink 1.1s step-end infinite;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--mid);
  font-size: 12.5px;
  transition: color 0.1s;
}
.nav-links a:hover { color: var(--fg); }

@media (max-width: 500px) {
  .nav-links { gap: 1.1rem; }
}
