:root {
  --bg:       #0d1117;
  --surface:  #161b22;
  --border:   #30363d;
  --green:    #39d353;
  --cyan:     #58a6ff;
  --muted:    #8b949e;
  --text:     #e6edf3;
  --accent:   #f78166;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem 3rem;
}

/* ── Scanline overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.08) 2px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none;
  z-index: 99;
}

/* ── Nav bar ── */
nav {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  padding: 1.1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  color: var(--green);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: .04em;
  margin-right: auto;
  text-decoration: none;
}
.nav-brand span { color: var(--muted); font-weight: normal; }
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links li a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  padding: .35rem .85rem;
  border-radius: 5px;
  transition: color .15s, background .15s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--green);
  background: rgba(57,211,83,.08);
}

.container {
  max-width: 760px;
  width: 100%;
}

/* ── Terminal window chrome ── */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}

.titlebar {
  background: var(--border);
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }
.titlebar-label {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
}

.content { padding: 2rem; }

/* ── Blink cursor ── */
.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Footer ── */
footer {
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  margin-top: 1rem;
}
footer a { color: var(--cyan); text-decoration: none; }
footer a:hover { text-decoration: underline; }
