:root {
  --bg: #0b0f14;
  --panel: #111826;
  --accent: #4f46e5;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --ring: #60a5fa;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: linear-gradient(180deg, #0b0f14, #0f172a) no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
}

.wrap {
  max-width: 1120px;
  margin: 16px auto;
  padding: 0 16px
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px
}

@media (max-width:820px) {
  .layout {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

.nav a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #0e1624;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px
}

.nav a:hover {
  border-color: var(--accent)
}

.title {
  font-weight: 700;
  margin-bottom: 10px
}

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

/* Site-wide ASCII header */
.site-header {
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 0 16px
}

.ascii-banner {
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(10px, 1.05vw, 13px);
  line-height: 1.05;
  background: #0e1624;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  text-align: center;
}