:root {
  --bg:          #0a0d0a;
  --bg-panel:    #0f1310;
  --border:      #262b23;
  --text:        #d8dbd0;
  --text-dim:    #6c7365;
  --amber:       #ffb300;
  --amber-dim:   #8a6a1f;
  --amber-glow:  rgba(255, 179, 0, 0.25);
  --red:         #ff5f56;
  --green:       #3fb950;

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
          Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ---------- Terminal window ---------- */

.terminal {
  width: 100%;
  max-width: 720px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 20px 60px rgba(0,0,0,0.5);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #14180f;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
}
.dot--red    { background: var(--red); }
.dot--amber  { background: var(--amber); }
.dot--green  { background: var(--green); }

.titlebar__label {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.screen {
  padding: 28px 26px 34px;
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Boot log ---------- */

.line {
  margin: 0 0 2px;
  color: var(--text-dim);
  font-size: 12.5px;
  white-space: pre-wrap;
}
.line--boot:nth-of-type(4) { margin-bottom: 18px; }

/* ---------- Prompts ---------- */

.prompt {
  margin: 22px 0 8px;
  color: var(--text);
}
.prompt__sym {
  color: var(--amber);
  margin-right: 8px;
}

/* ---------- whoami block ---------- */

.block { margin: 4px 0 0; }

.ascii-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--amber);
  text-shadow: 0 0 18px var(--amber-glow);
}

.lead {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
}

.sub {
  margin: 0;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- Services list ---------- */

.services {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.services li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.services li:last-child { border-bottom: none; }

.tag {
  display: inline-block;
  min-width: 64px;
  color: var(--amber-dim);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */

.contact {
  margin: 4px 0 0;
  font-size: 15px;
}
.contact a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 1px;
}
.contact a:hover,
.contact a:focus-visible {
  color: #ffd166;
  border-bottom-color: currentColor;
}

/* ---------- Cursor ---------- */

.prompt--cursor { margin-bottom: 0; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--amber);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

/* ---------- Reveal animation (staggered by --d) ---------- */

.line, .prompt, .block, .services, .contact {
  opacity: 0;
  animation: reveal 0.01s linear forwards;
  animation-delay: calc(var(--d, 0) * 160ms);
}

@keyframes reveal {
  to { opacity: 1; }
}

/* ---------- CRT scanline overlay (subtle) ---------- */

.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 10;
}

/* ---------- Focus visibility ---------- */

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .line, .prompt, .block, .services, .contact {
    animation: none;
    opacity: 1;
  }
  .cursor {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Footer links ---------- */

.footer-links {
  margin: 30px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber-dim);
}

.footer-links__sep {
  margin: 0 8px;
  color: var(--border);
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
  .screen { padding: 20px 18px 26px; }
  .ascii-title { font-size: 28px; }
  .tag { min-width: 56px; }
}
