/* ===========================================================
   finncappelli.dev — terminal portfolio
   Token system
   --bg:        #0a0d0b   near-black, faint green-black tint
   --panel:     #0f1411   terminal window body
   --border:    #1c2420   hairline / window chrome
   --text:      #cdd8d1   phosphor off-white
   --dim:       #5c6b62   comments / meta / timestamps
   --amber:     #ffb627   primary accent — prompt, headers, cursor
   --cyan:      #64d8c6   links / success states
   --red:       #ff6b6b   alerts / warnings / sudo easter egg
   Type: 'JetBrains Mono' everywhere, weight does the work of hierarchy
   =========================================================== */

@font-face {
  font-family: 'JetBrains Mono';
  src: local('JetBrains Mono');
}

:root {
  --bg: #0a0d0b;
  --panel: #0f1411;
  --border: #1c2420;
  --text: #cdd8d1;
  --dim: #5c6b62;
  --amber: #ffb627;
  --cyan: #64d8c6;
  --red: #ff6b6b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* faint vignette + scanlines behind the window, purely ambient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.window {
  width: min(880px, 100%);
  max-height: 86vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,182,39,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0c100e;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid rgba(255,255,255,0.06);
}

.dot.red { background: #4a2626; }
.dot.amber { background: #4a3a1a; }
.dot.green { background: #1f3a30; }

.titlebar-label {
  flex: 1;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.badge {
  font-size: 10px;
  color: var(--cyan);
  border: 1px solid rgba(100,216,198,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
}

.screen {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screen::-webkit-scrollbar { width: 8px; }
.screen::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.line {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 2px;
}

.banner {
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 6px;
}

.sub { color: var(--dim); margin-bottom: 14px; }

.boot-line { color: var(--dim); font-size: 13px; }
.boot-ok { color: var(--cyan); }

.section-title {
  color: var(--amber);
  font-weight: 700;
  margin-top: 4px;
}

.meta { color: var(--dim); }

.tag {
  color: var(--cyan);
  font-size: 12px;
  border: 1px solid rgba(100,216,198,0.28);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
}

.bullet { padding-left: 18px; }
.bullet::before { content: "› "; color: var(--dim); }

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(100,216,198,0.45);
}

a:hover, a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

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

.error { color: var(--red); }
.warn { color: var(--red); }

.prompt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 18px;
}

.prompt-label {
  color: var(--amber);
  flex-shrink: 0;
}

.prompt-path { color: var(--cyan); }

#cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  caret-color: var(--amber);
}

#cmd-input:focus { outline: none; }

.hint {
  color: var(--dim);
  font-size: 12px;
  margin-top: 16px;
}

.hint kbd {
  color: var(--text);
  background: #16201b;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 11px;
}

@media (max-width: 640px) {
  body { padding: 10px; font-size: 13.5px; }
  .window { max-height: 92vh; }
  .titlebar-label { display: none; }
}
