/* Full-screen phosphor terminal. Keep the interface monospace and command-driven. */
:root {
  --green-bright: #a4ffa0;
  --green-medium: #79e77a;
  --green-dim: #65b46b;
  --green-dark: #244c2a;
  --text-primary: #9bea98;
  --text-secondary: #83c986;
  --text-dim: #6ba575;
  --text-info: #9edbcb;
  --green-glow: rgba(109, 255, 122, 0.2);
  --glow-rgb: 109, 255, 122;
  --bg-terminal: #060e09;
}
html[data-theme="amber"] {
  --green-bright: #ffdb9a;
  --green-medium: #efb85e;
  --green-dim: #c19b60;
  --green-dark: #554024;
  --text-primary: #efc57f;
  --text-secondary: #d3ad72;
  --text-dim: #b39466;
  --text-info: #f0d7b0;
  --bg-terminal: #100d06;
}
html[data-theme="blue"] {
  --green-bright: #b6edff;
  --green-medium: #7dcbe7;
  --green-dim: #6ba4bd;
  --green-dark: #243f50;
  --text-primary: #9dd9ec;
  --text-secondary: #8ab9cc;
  --text-dim: #789cad;
  --text-info: #c7e4ed;
  --bg-terminal: #060c10;
}
body {
  background: #020604;
}
.terminal {
  padding: 24px 32px 16px;
  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(var(--glow-rgb), 0.018),
      transparent 80%
    ),
    var(--bg-terminal);
  box-shadow: inset 0 0 100px #0007;
}
.terminal-titlebar {
  flex-shrink: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 15px;
  border-bottom: 1px solid var(--green-dark);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.terminal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.power-led {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green-medium);
  box-shadow: 0 0 8px var(--green-glow);
  vertical-align: middle;
  flex-shrink: 0;
}
.title-divider {
  color: var(--green-dim);
}
.terminal-controls {
  display: flex;
  gap: 22px;
  align-items: center;
}
.terminal-version {
  color: var(--text-dim);
  font-size: 10px;
}
#effects-toggle {
  font: 10px var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--green-dark);
  min-height: 36px;
  padding: 8px 12px;
  cursor: pointer;
}
#effects-toggle:hover {
  border-color: var(--green-dim);
  background: rgba(var(--glow-rgb), 0.04);
}
.terminal-container {
  padding: 24px 0 0;
  transform: none;
  min-height: 0;
}
.output {
  line-height: 1.65;
  font-size: 14px;
  padding: 0 14px 18px 0;
  scroll-behavior: auto;
  outline-offset: -2px;
}
.output-result {
  padding-left: 0;
  white-space: pre-line;
}
.output-result:has(.project-card),
.output-result:has(.help-table),
.output-result:has(.welcome-screen) {
  white-space: normal;
}
.output,
.boot-text {
  text-shadow: 0 0 2px rgba(var(--glow-rgb), 0.13);
}
.terminal {
  text-shadow: none;
}
.scanlines {
  opacity: 0.18;
}
.crt-flicker {
  display: none;
}
.terminal::after {
  background: radial-gradient(
    ellipse at center,
    transparent 75%,
    rgba(0, 0, 0, 0.18) 100%
  );
}
.terminal.clean-display .scanlines,
.terminal.clean-display::after {
  display: none;
}
.terminal.clean-display * {
  text-shadow: none !important;
}
.glow-strong {
  text-shadow: 0 0 8px rgba(var(--glow-rgb), 0.18);
}
.welcome-screen {
  max-width: 920px;
  animation: terminal-reveal 0.28s ease-out both;
}
.welcome-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 20px;
  margin-bottom: 19px;
  border-bottom: 1px dashed var(--green-dark);
}
.welcome-logo {
  color: var(--green-medium);
  font: 12px/1.13 var(--font-mono);
  white-space: pre;
  letter-spacing: 0;
  text-shadow: 0 0 13px rgba(var(--glow-rgb), 0.16);
  margin: 0;
}
.welcome-build {
  font-size: 10px;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
  line-height: 1.8;
}
.welcome-screen h1 {
  font: 500 16px/1.6 var(--font-mono);
  color: var(--green-bright);
  margin: 0 0 7px;
}
.welcome-screen h1 span {
  color: var(--text-secondary);
  font-weight: 400;
}
.welcome-bio {
  color: var(--text-secondary);
  max-width: 780px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.system-profile {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 4px 16px;
  font-size: 12px;
  margin-bottom: 22px;
}
.system-profile dt {
  color: var(--text-dim);
}
.system-profile dd {
  color: var(--text-secondary);
}
.directory-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--green-dark);
  padding-bottom: 8px;
  margin-bottom: 3px;
}
.directory-label h2 {
  font: 400 11px var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-dim);
}
.directory-label > span {
  font-size: 10px;
  color: var(--text-dim);
}
.welcome-files {
  display: grid;
}
.welcome-file {
  display: grid;
  grid-template-columns: 24px 165px 1fr 20px;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid rgba(var(--glow-rgb), 0.075);
  color: var(--text-primary);
  text-decoration: none;
  padding-inline: 4px;
  font-size: 12px;
}
.welcome-file:hover {
  background: rgba(var(--glow-rgb), 0.045);
  text-decoration: none;
  text-shadow: none;
}
.file-index {
  font-size: 10px;
  color: var(--text-dim);
}
.file-summary {
  color: var(--text-secondary);
  font-size: 11px;
}
.file-arrow {
  color: var(--green-dim);
}
.welcome-hint {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 18px;
  line-height: 1.8;
}
.inline-command {
  display: inline;
  min-height: 32px;
  font: inherit;
  color: var(--green-bright);
  background: none;
  border: 0;
  padding: 5px 3px;
  cursor: pointer;
}
.inline-command:hover {
  text-decoration: underline;
}
.input-line {
  margin-top: 6px;
  padding: 13px 0;
  border-top: 1px solid var(--green-dark);
}
.prompt {
  color: var(--green-medium);
  font-size: 13px;
}
.command-input {
  font-size: 14px;
  min-height: 28px;
  text-shadow: none;
}
.command-input::placeholder {
  color: var(--text-dim);
  opacity: 0.75;
}
.input-wrapper {
  min-width: 0;
}
.command-input:focus-visible {
  outline: 0;
}
.input-line:focus-within {
  border-top-color: var(--green-dim);
  background: linear-gradient(90deg, rgba(var(--glow-rgb), 0.025), transparent);
}
.input-wrapper:focus-within {
  box-shadow: 0 1px var(--green-dark);
}
.suggestions {
  position: relative;
  padding: 10px 0 12px;
  margin-top: 0;
  gap: 8px;
  border-top: 1px solid var(--green-dark);
}
.cmd-btn {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 12px;
  border: 1px solid var(--green-dark);
  border-radius: 0;
}
.cmd-btn span {
  color: var(--text-dim);
  font-size: 10px;
  margin-left: 8px;
}
.cmd-btn:hover {
  background: rgba(var(--glow-rgb), 0.055);
  box-shadow: none;
  text-shadow: none;
}
.cmd-btn:active {
  transform: translateY(1px);
}
.more-commands {
  margin-left: auto;
}
.more-commands summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--text-secondary);
  border: 1px solid var(--green-dark);
  font-size: 12px;
}
.more-commands summary::-webkit-details-marker {
  display: none;
}
.more-commands[open] summary {
  background: rgba(var(--glow-rgb), 0.06);
  border-color: var(--green-dim);
}
.more-command-list {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: var(--bg-terminal);
  border: 1px solid var(--green-dim);
  padding: 10px;
  box-shadow: 0 -10px 40px #0007;
  z-index: 15;
  min-width: 230px;
}
.more-command-list .cmd-btn {
  text-align: left;
}
.terminal-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0.4px;
  padding: 10px 48px 0 0;
  border-top: 1px solid var(--green-dark);
}
.terminal-status .power-led {
  margin-right: 8px;
  width: 4px;
  height: 4px;
}
.status-separator {
  margin-inline: 8px;
  color: var(--green-dark);
}
.mobile-help {
  display: none;
}
.sound-toggle {
  bottom: 13px;
  right: 32px;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--bg-terminal);
}
.sound-icon {
  font-size: 15px;
}
.output-command {
  padding-block: 10px 8px;
  margin-top: 10px;
  color: var(--green-bright);
  border-top: 1px dashed var(--green-dark);
  animation: command-reveal 0.16s ease-out both;
}
.output-command::before {
  color: var(--text-dim);
}
.output-command:first-child {
  margin-top: 0;
}
.output-result h2 {
  font: 500 16px var(--font-mono);
  margin: 12px 0;
}
.project-card {
  border: 0;
  border-left: 2px solid var(--green-dark);
  padding: 14px 18px;
  margin: 10px 0;
  background: rgba(var(--glow-rgb), 0.018);
  white-space: normal;
  animation: none !important;
}
.project-card:hover {
  border-color: var(--green-dim);
  background: rgba(var(--glow-rgb), 0.03);
  box-shadow: none;
}
.project-title {
  font-size: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  text-shadow: none;
}
.project-desc {
  font-size: 13px;
  line-height: 1.8;
  margin: 7px 0;
  max-width: 820px;
}
.project-links {
  margin: 0;
  gap: 7px;
  flex-wrap: wrap;
}
.project-link {
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 7px;
  font-size: 10px;
  border: 1px solid var(--green-dark);
  color: var(--text-secondary);
}
.project-link svg {
  width: 12px;
  height: 12px;
}
.project-link:hover {
  background: rgba(var(--glow-rgb), 0.06);
}
.project-tag {
  font-size: 10px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 0;
  border-radius: 0;
  background: rgba(var(--glow-rgb), 0.04);
}
.project-year {
  font-size: 10px;
  margin-top: 10px;
}
.project-detail-copy {
  max-width: 800px;
  border-left: 2px solid var(--green-dim);
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.9;
  white-space: normal;
}
.project-detail-copy h2 {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.project-detail-copy p {
  margin-bottom: 12px;
}
.project-detail-copy a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.project-permalink {
  font-size: 11px;
  color: var(--text-dim);
}
.output-ascii {
  font-size: clamp(6px, 1.2vw, 13px);
}
.help-table {
  white-space: normal;
}
.help-row {
  min-height: 30px;
  gap: 12px;
}
.help-cmd {
  min-width: 170px;
}
.output pre {
  scrollbar-width: thin;
}
.fork-badge {
  margin-left: 0;
  opacity: 1;
}
.boot-screen {
  padding: 60px max(24px, calc((100vw - 1100px) / 2));
  background: var(--bg-terminal);
}
.boot-text {
  font-size: 13px;
}
.boot-skip {
  position: absolute;
  bottom: 30px;
  left: max(24px, calc((100vw - 1100px) / 2));
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--green-dim);
  background: none;
  color: var(--text-secondary);
  font: 12px var(--font-mono);
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--green-medium);
  outline-offset: 3px;
}
@keyframes terminal-reveal {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes command-reveal {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .terminal {
    padding: 10px 16px 14px;
  }
  .terminal-titlebar {
    padding-block: 5px 10px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .terminal-title {
    gap: 7px;
  }
  .terminal-controls {
    gap: 8px;
  }
  .terminal-version {
    display: none;
  }
  #effects-toggle {
    min-height: 40px;
    font-size: 9px;
    padding: 8px;
  }
  .terminal-container {
    padding-top: 20px;
  }
  .welcome-logo {
    font-size: clamp(5px, 1.35vw, 10px);
  }
  .welcome-build {
    display: none;
  }
  .welcome-banner {
    padding-bottom: 17px;
    margin-bottom: 16px;
  }
  .welcome-screen h1 {
    font-size: 14px;
  }
  .welcome-screen h1 span {
    display: block;
    font-size: 12px;
  }
  .welcome-bio {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .system-profile {
    font-size: 11px;
    grid-template-columns: 50px 1fr;
    gap: 5px 10px;
    margin-bottom: 20px;
  }
  .welcome-file {
    grid-template-columns: 18px 1fr 15px;
    gap: 8px;
    padding-block: 9px;
    min-height: 58px;
  }
  .file-summary {
    grid-column: 2;
    grid-row: auto;
    font-size: 10px;
  }
  .file-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .file-index {
    grid-row: 1 / span 2;
  }
  .directory-label > span {
    font-size: 9px;
  }
  .welcome-hint {
    font-size: 10px;
    margin-top: 12px;
  }
  .output {
    padding-right: 7px;
    font-size: 13px;
  }
  .suggestions {
    gap: 5px;
    padding-block: 8px;
  }
  .cmd-btn {
    min-height: 44px;
    font-size: 11px;
    padding: 8px 10px;
  }
  .cmd-btn span {
    display: none;
  }
  .more-commands summary {
    min-height: 44px;
    padding: 8px 10px;
    gap: 9px;
    font-size: 11px;
  }
  .terminal-status {
    font-size: 8px;
    padding-right: 38px;
    gap: 8px;
  }
  .keyboard-help {
    display: none;
  }
  .mobile-help {
    display: inline;
    font-size: 7px;
    letter-spacing: 0;
  }
  .sound-toggle {
    right: 15px;
    bottom: 7px;
    width: 32px;
    height: 32px;
  }
  .command-input {
    font-size: 16px;
    min-height: 32px;
  }
  .input-line {
    padding-block: 10px;
  }
  .prompt {
    font-size: 11px;
  }
  .project-title {
    font-size: 14px;
    display: block;
  }
  .project-links {
    display: flex;
    margin-top: 8px;
  }
  .project-link {
    min-height: 44px;
  }
  .project-desc {
    font-size: 12px;
  }
  .project-card {
    padding: 10px 12px;
  }
  .project-tag {
    min-height: 36px;
  }
  .help-row {
    display: block;
    margin-bottom: 12px;
  }
  .help-cmd {
    display: block;
  }
  .nf-logo {
    font-size: 9px;
  }
  .nf-info {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .terminal {
    padding-inline: 12px;
  }
  .terminal-title {
    gap: 5px;
    font-size: 8px;
  }
  .cmd-btn {
    padding-inline: 8px;
  }
  .more-commands summary {
    padding-inline: 8px;
  }
  .terminal-status {
    letter-spacing: 0;
  }
  .mobile-help {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .power-on,
  .welcome-screen,
  .output-command {
    animation: none !important;
  }
  .scanlines {
    opacity: 0.12;
  }
  .output {
    scroll-behavior: auto;
  }
}
/* Fit the useful startup readout into a typical laptop display. */
.welcome-banner {
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.welcome-logo {
  font-size: 10px;
}
.welcome-screen h1 {
  margin-bottom: 5px;
}
.welcome-bio {
  margin-bottom: 10px;
}
.system-profile {
  margin-bottom: 12px;
}
.directory-label {
  align-items: center;
}
.directory-label h2 {
  margin: 0;
}
.welcome-file {
  min-height: 39px;
  grid-template-columns: 24px 215px 1fr 20px;
}
.welcome-hint {
  margin-top: 10px;
}
.welcome-hint .inline-command {
  padding-block: 0;
  min-height: 25px;
}
@media (max-width: 768px) {
  .welcome-logo {
    font-size: clamp(5px, 1.35vw, 10px);
  }
  .welcome-file {
    grid-template-columns: 18px 1fr 15px;
    min-height: 58px;
  }
  .welcome-hint .inline-command {
    min-height: 32px;
  }
  .welcome-screen h1 {
    line-height: 1.6;
  }
}
.welcome-screen .directory-label h2 {
  font: 400 11px/1.5 var(--font-mono);
  margin: 0;
  letter-spacing: 0.3px;
}
.directory-label > span {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .welcome-logo {
    font-size: clamp(6px, 2.1vw, 10px);
  }
  .desktop-break {
    display: none;
  }
  .directory-label {
    gap: 10px;
  }
  .welcome-screen .directory-label h2 {
    font-size: 10px;
  }
  .welcome-hint {
    line-height: 1.7;
  }
}
.cmd-btn,
.more-commands summary,
#effects-toggle {
  min-height: 44px;
}
.sound-toggle {
  width: 44px;
  height: 44px;
  bottom: 8px;
}
.terminal-status {
  min-height: 44px;
  padding-right: 54px;
}
@media (max-width: 768px) {
  .input-line::before {
    margin-right: 7px;
  }
  .sound-toggle {
    width: 44px;
    height: 44px;
    bottom: 5px;
  }
  .terminal-status {
    padding-right: 48px;
  }
  .mobile-help {
    font-size: 8px;
  }
}
