@media (max-width: 760px) {
  :root {
    --gutter: 2.75rem;
  }

  body {
    display: block;
    padding: 0;
  }

  #app,
  .editor-shell {
    min-height: 100vh;
  }

  .editor-shell {
    border: 0;
  }

  .editor-workspace {
    flex-direction: column;
  }

  .nvim-tree-panel {
    width: 100%;
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }

  .line-content {
    padding: 1.15rem 0.9rem;
  }

  .line-number {
    padding-block: 1.15rem;
    padding-right: 0.55rem;
  }

  .project-card > header,
  .project-card > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .status-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .status-line span:first-of-type {
    display: none;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 14px;
  }

  .editor-title span:last-child,
  .command-line button {
    display: none;
  }

  .tab-line button {
    padding-inline: 0.75rem;
  }

  .key-map {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .key-map dd {
    margin-bottom: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: #7d8b7d;
    --border-strong: #b2c0b2;
    --muted: #bac4b6;
  }
}
