:root {
  --bg: #0a0a0a;
  --panel: #101010;
  --panel-raised: #161616;
  --border: #1f1f1f;
  --border-subtle: #171717;
  --text: #d8d8d8;
  --text-secondary: #8a8a8a;
  --text-muted: #5a5a5a;
  --muted: #8a8a8a;
  --accent: #bfbfbf;
  --white: #f0f0f0;
  --success: #4ade80;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  line-height: 1.7;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--white);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: min(780px, calc(100% - 32px));
  margin: 40px auto;
}

.terminal {
  border: 1px solid var(--border);
  background: var(--panel);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2a2a;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.content {
  padding: 28px 20px 36px;
}

.line,
.cmd {
  margin-bottom: 18px;
  color: var(--accent);
  word-break: break-word;
}

h1,
h2,
p {
  margin-top: 0;
}

p {
  max-width: 70ch;
}

.muted {
  color: var(--muted);
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Common UI Components */
.cta-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  color: var(--bg);
  font-weight: 600;
  border-radius: 4px;
  margin-right: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.chip {
  padding: 6px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #0d0d0d;
  font-size: 0.9rem;
}

.toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.toggle-btn:hover {
  background: #1a1a1a;
  color: var(--white);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
